s-n;if(t.topi+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(l.scrollTop=c)}var h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft,f=ft(e)-(e.options.fixedGutter?r.gutters.offsetWidth:0),d=t.right-t.left>f;return d&&(t.right=t.left+f),t.left<10?l.scrollLeft=0:t.leftf+h-3&&(l.scrollLeft=t.right+(d?0:10)-f),l}function lr(e,t){null!=t&&(ur(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function sr(e){ur(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ar(e,t,r){null==t&&null==r||ur(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r)}function ur(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;cr(e,Wt(e,t.from),Wt(e,t.to),t.margin)}}function cr(e,t,r,n){var i=or(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});ar(e,i.scrollLeft,i.scrollTop)}function hr(e,t){Math.abs(e.doc.scrollTop-t)<2||(Bi||Hr(e,{top:t}),fr(e,t,!0),Bi&&Hr(e),Or(e,100))}function fr(e,t,r){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function dr(e,t,r,n){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,nr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function pr(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+ut(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+ht(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}function gr(e,t){t||(t=pr(e));var r=e.display.barWidth,n=e.display.barHeight;vr(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&er(e),vr(e,pr(e)),r=e.display.barWidth,n=e.display.barHeight}function vr(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}function mr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&uo(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new $o[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),No(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,r){"horizontal"==r?dr(e,t):hr(e,t)},e),e.display.scrollbars.addClass&&s(e.display.wrapper,e.display.scrollbars.addClass)}function yr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Zo},function(e){jo?jo.ops.push(e):e.ownsGroup=jo={ops:[e],delayedCallbacks:[]}}(e.curOp)}function br(e){!function(e,t){var r=e.ownsGroup;if(r)try{!function(e){var t=e.delayedCallbacks,r=0;do{for(;r=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Qo(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}(t[r]);for(var i=0;i1&&(l=!0)),null!=u.scrollLeft&&(dr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-h)>1&&(l=!0)),!l)break}return i}(t,B(i,e.scrollToPos.from),B(i,e.scrollToPos.to),e.scrollToPos.margin);!function(e,t){if(!ge(e,"scrollCursorIntoView")){var r=e.display,i=r.sizer.getBoundingClientRect(),o=null;if(t.top+i.top<0?o=!0:t.bottom+i.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!Qi){var l=n("div","",null,"position: absolute;\n top: "+(t.top-r.viewOffset-at(e.display))+"px;\n height: "+(t.bottom-t.top+ht(e)+r.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(l),l.scrollIntoView(o),e.display.lineSpace.removeChild(l)}}}(t,o)}var l=e.maybeHiddenMarkers,s=e.maybeUnhiddenMarkers;if(l)for(var a=0;at)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Lo&&ne(e.doc,t)i.viewFrom?Tr(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)Tr(e);else if(t<=i.viewFrom){var o=Mr(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):Tr(e)}else if(r>=i.viewTo){var l=Mr(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):Tr(e)}else{var s=Mr(e,t,t,-1),a=Mr(e,r,r+n,1);s&&a?(i.view=i.view.slice(0,s.index).concat(qe(e,s.lineN,a.lineN)).concat(i.view.slice(a.index)),i.viewTo+=n):Tr(e)}var u=i.externalMeasured;u&&(r=i.lineN&&t=n.viewTo)){var o=n.view[Kt(e,t)];if(null!=o.node){var l=o.changes||(o.changes=[]);-1==f(l,r)&&l.push(r)}}}function Tr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Mr(e,t,r,n){var i,o=Kt(e,t),l=e.display.view;if(!Lo||r==e.doc.first+e.doc.size)return{index:o,lineN:r};for(var s=e.display.viewFrom,a=0;a0){if(o==l.length-1)return null;i=s+l[o].size-t,o++}else i=s-t;t+=i,r+=i}for(;ne(e.doc,r)!=r;){if(o==(n<0?0:l.length-1))return null;r+=n*l[o-(n<0?1:0)].size,o+=n}return{index:o,lineN:r}}function Nr(e){for(var t=e.display.view,r=0,n=0;n=e.display.viewTo)){var r=+new Date+e.options.workTime,n=Pe(e,t.highlightFrontier),i=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(n.line>=e.display.viewFrom){var l=o.styles,s=o.text.length>e.options.maxHighlightLength?Ae(t.mode,n.state):null,a=He(e,o,n,!0);s&&(n.state=s),o.styles=a.styles;var u=o.styleClasses,c=a.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var h=!l||l.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),f=0;!h&&fr)return Or(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),i.length&&wr(e,function(){for(var t=0;t=n.viewFrom&&r.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Nr(e))return!1;ir(e)&&(Tr(e),r.dims=Rt(e));var s=i.first+i.size,a=Math.max(r.visible.from-e.options.viewportMargin,i.first),u=Math.min(s,r.visible.to+e.options.viewportMargin);n.viewFromu&&n.viewTo-u<20&&(u=Math.min(s,n.viewTo)),Lo&&(a=ne(e.doc,a),u=ie(e.doc,u));var c=a!=n.viewFrom||u!=n.viewTo||n.lastWrapHeight!=r.wrapperHeight||n.lastWrapWidth!=r.wrapperWidth;!function(e,t,r){var n=e.display;0==n.view.length||t>=n.viewTo||r<=n.viewFrom?(n.view=qe(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=qe(e,t,n.viewFrom).concat(n.view):n.viewFromr&&(n.view=n.view.slice(0,Kt(e,r)))),n.viewTo=r}(e,a,u),n.viewOffset=se(k(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var h=Nr(e);if(!c&&0==h&&!r.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var d=function(e){if(e.hasFocus())return null;var t=l();if(!t||!o(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&o(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}(e);return h>4&&(n.lineDiv.style.display="none"),function(e,r,n){function i(t){var r=t.nextSibling;return Xi&&ro&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),r}var o=e.display,l=e.options.lineNumbers,s=o.lineDiv,a=s.firstChild;for(var u=o.view,c=o.viewFrom,h=0;h-1&&(p=!1),Qe(e,d,c,n)),p&&(t(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(D(e.options,c)))),a=d.node.nextSibling}else{var g=nt(e,d,c,n);s.insertBefore(g,a)}c+=d.size}for(;a;)a=i(a)}(e,n.updateLineNumbers,r.dims),h>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=l()&&(e.activeElt.focus(),e.anchorNode&&o(document.body,e.anchorNode)&&o(document.body,e.focusNode))){var t=window.getSelection(),r=document.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),t.removeAllRanges(),t.addRange(r),t.extend(e.focusNode,e.focusOffset)}}(d),t(n.cursorDiv),t(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,c&&(n.lastWrapHeight=r.wrapperHeight,n.lastWrapWidth=r.wrapperWidth,Or(e,400)),n.updateLineNumbers=null,!0}function Dr(e,t){for(var r=t.viewport,n=!0;(n&&e.options.lineWrapping&&t.oldDisplayWidth!=ft(e)||(r&&null!=r.top&&(r={top:Math.min(e.doc.height+ut(e.display)-dt(e),r.top)}),t.visible=rr(e.display,e.doc,r),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&Wr(e,t);n=!1){er(e);var i=pr(e);jt(e),gr(e,i),Pr(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Hr(e,t){var r=new Qo(e,t);if(Wr(e,r)){er(e),Dr(e,r);var n=pr(e);jt(e),gr(e,n),Pr(e,n),r.finish()}}function Fr(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function Pr(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+ht(e)+"px"}function Er(e){var r=e.display.gutters,i=e.options.gutters;t(r);for(var o=0;o-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function Ir(e){var t=e.wheelDeltaX,r=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==r&&e.detail&&e.axis==e.VERTICAL_AXIS?r=e.detail:null==r&&(r=e.wheelDelta),{x:t,y:r}}function Rr(e){var t=Ir(e);return t.x*=el,t.y*=el,t}function Br(e,t){var r=Ir(t),n=r.x,i=r.y,o=e.display,l=o.scroller,s=l.scrollWidth>l.clientWidth,a=l.scrollHeight>l.clientHeight;if(n&&s||i&&a){if(i&&ro&&Xi)e:for(var u=t.target,c=o.view;u!=l;u=u.parentNode)for(var h=0;h=0){var l=I(o.from(),i.from()),s=z(o.to(),i.to()),a=o.empty()?i.from()==i.head:o.from()==o.head;n<=t&&--t,e.splice(--n,2,new rl(a?s:l,a?l:s))}}return new tl(e,t)}function Ur(e,t){return new tl([new rl(e,t||e)],0)}function Vr(e){return e.text?H(e.from.line+e.text.length-1,g(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Kr(e,t){if(F(e,t.from)<0)return e;if(F(e,t.to)<=0)return Vr(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=Vr(t).ch-t.to.ch),H(r,n)}function jr(e,t){for(var r=[],n=0;n1&&e.remove(s.line+1,p-1),e.insert(s.line+1,y)}$e(e,"change",e,t)}function Zr(e,t,r){function n(e,i,o){if(e.linked)for(var l=0;ls-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(rn(e.done),g(e.done)):e.done.length&&!g(e.done).ranges?g(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),g(e.done)):void 0}(i,i.lastOp==n)))l=g(o.changes),0==F(t.from,t.to)&&0==F(t.from,l.to)?l.to=Vr(t):o.changes.push(tn(e,t));else{var a=g(i.done);for(a&&a.ranges||ln(e.sel,i.done),o={changes:[tn(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,l||pe(e,"historyAdded")}function on(e,t,r,n){var i=e.history,o=n&&n.origin;r==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,r,n){var i=t.charAt(0);return"*"==i||"+"==i&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,g(i.done),t))?i.done[i.done.length-1]=t:ln(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=r,n&&!1!==n.clearRedo&&rn(i.undone)}function ln(e,t){var r=g(t);r&&r.ranges&&r.equals(e)||t.push(e)}function sn(e,t,r,n){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),function(r){r.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=r.markedSpans),++o})}function an(e){if(!e)return null;for(var t,r=0;r-1&&(g(s)[h]=u[h],delete u[h])}}}return n}function hn(e,t,r,n){if(n){var i=e.anchor;if(r){var o=F(t,i)<0;o!=F(r,i)<0?(i=t,t=r):o!=F(t,r)<0&&(t=r)}return new rl(i,t)}return new rl(r||t,t)}function fn(e,t,r,n,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),mn(e,new tl([hn(e.sel.primary(),t,r,i)],0),n)}function dn(e,t,r){for(var n=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:s.to>t.ch))){if(i&&(pe(a,"beforeCursorEnter"),a.explicitlyCleared)){if(o.markedSpans){--l;continue}break}if(!a.atomic)continue;if(r){var u=a.find(n<0?1:-1),c=void 0;if((n<0?a.inclusiveRight:a.inclusiveLeft)&&(u=Ln(e,u,-n,u&&u.line==t.line?o:null)),u&&u.line==t.line&&(c=F(u,r))&&(n<0?c<0:c>0))return Cn(e,u,t,n,i)}var h=a.find(n<0?-1:1);return(n<0?a.inclusiveLeft:a.inclusiveRight)&&(h=Ln(e,h,n,h.line==t.line?o:null)),h?Cn(e,h,t,n,i):null}}return t}function Sn(e,t,r,n,i){var o=n||1,l=Cn(e,t,r,o,i)||!i&&Cn(e,t,r,o,!0)||Cn(e,t,r,-o,i)||!i&&Cn(e,t,r,-o,!0);return l||(e.cantEdit=!0,H(e.first,0))}function Ln(e,t,r,n){return r<0&&0==t.ch?t.line>e.first?B(e,H(t.line-1)):null:r>0&&t.ch==(n||k(e,t.line)).text.length?t.line0)){var c=[a,1],h=F(u.from,s.from),d=F(u.to,s.to);(h<0||!l.inclusiveLeft&&!h)&&c.push({from:u.from,to:s.from}),(d>0||!l.inclusiveRight&&!d)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),a+=c.length-3}}return i}(e,t.from,t.to);if(n)for(var i=n.length-1;i>=0;--i)Nn(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text,origin:t.origin});else Nn(e,t)}}function Nn(e,t){if(1!=t.text.length||""!=t.text[0]||0!=F(t.from,t.to)){var r=jr(e,t);nn(e,t,r,e.cm?e.cm.curOp.id:NaN),Wn(e,t,r,j(e,t));var n=[];Zr(e,function(e,r){r||-1!=f(n,e.history)||(Pn(e.history,t),n.push(e.history)),Wn(e,t,null,j(e,t))})}}function On(e,t,r){if(!e.cm||!e.cm.state.suppressEdits||r){for(var n,i=e.history,o=e.sel,l="undo"==t?i.done:i.undone,s="undo"==t?i.undone:i.done,a=0;a=0;--d){var p=h(d);if(p)return p.v}}}}function An(e,t){if(0!=t&&(e.first+=t,e.sel=new tl(v(e.sel.ranges,function(e){return new rl(H(e.anchor.line+t,e.anchor.ch),H(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Lr(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;ne.lastLine())){if(t.from.lineo&&(t={from:t.from,to:H(o,k(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=T(e,t.from,t.to),r||(r=jr(e,t)),e.cm?function(e,t,r){var n=e.doc,i=e.display,o=t.from,l=t.to,s=!1,a=o.line;e.options.lineWrapping||(a=O(re(k(n,o.line))),n.iter(a,l.line+1,function(e){if(e==i.maxLine)return s=!0,!0}));n.sel.contains(t.from,t.to)>-1&&ve(e);$r(n,t,r,Gt(e)),e.options.lineWrapping||(n.iter(a,o.line+t.text.length,function(e){var t=ae(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0));(function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontierr;n--){var i=k(e,n).stateAfter;if(i&&(!(i instanceof Io)||n+i.lookAhead0||0==s&&!1!==l.clearWhenEmpty)return l;if(l.replacedWith&&(l.collapsed=!0,l.widgetNode=i("span",[l.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||l.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(l.widgetNode.insertLeft=!0)),l.collapsed){if(te(e,t.line,t,r,l)||t.line!=r.line&&te(e,r.line,t,r,l))throw new Error("Inserting collapsed marker partially overlapping an existing one");Lo=!0}l.addToHistory&&nn(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var a,u=t.line,h=e.cm;if(e.iter(u,r.line+1,function(e){h&&l.collapsed&&!h.options.lineWrapping&&re(e)==h.display.maxLine&&(a=!0),l.collapsed&&u!=t.line&&N(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new U(l,u==t.line?t.ch:null,u==r.line?r.ch:null)),++u}),l.collapsed&&e.iter(t.line,r.line+1,function(t){oe(e,t)&&N(t,0)}),l.clearOnEnter&&No(l,"beforeCursorEnter",function(){return l.clear()}),l.readOnly&&(So=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),l.collapsed&&(l.id=++il,l.atomic=!0),h){if(a&&(h.curOp.updateMaxLine=!0),l.collapsed)Lr(h,t.line,r.line+1);else if(l.className||l.title||l.startStyle||l.endStyle||l.css)for(var f=t.line;f<=r.line;f++)kr(h,f,"text");l.atomic&&wn(h.doc),$e(h,"markerAdded",h,l)}return l}function Gn(e){return e.findMarks(H(e.first,0),e.clipPos(H(e.lastLine())),function(e){return e.parent})}function Un(e){for(var t=function(t){var r=e[t],n=[r.primary.doc];Zr(r.primary.doc,function(e){return n.push(e)});for(var i=0;i-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var u=e.dataTransfer.getData("Text");if(u){var c;if(t.state.draggingText&&!t.state.draggingText.copy&&(c=t.listSelections()),yn(t.doc,Ur(r,r)),c)for(var h=0;h=0;t--)Dn(e.doc,"",n[t].from,n[t].to,"+delete");sr(e)})}function ri(e,t,r){var n=S(e.text,t+r,r);return n<0||n>e.text.length?null:n}function ni(e,t,r){var n=ri(e,t.ch,r);return null==n?null:new H(t.line,n,r<0?"after":"before")}function ii(e,t,r,n,i){if(e){var o=he(r,t.doc.direction);if(o){var l,s=i<0?g(o):o[0],a=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=mt(t,r);l=i<0?r.text.length-1:0;var c=yt(t,u,l).top;l=L(function(e){return yt(t,u,e).top==c},i<0==(1==s.level)?s.from:s.to-1,l),"before"==a&&(l=ri(r,l,1))}else l=i<0?s.to:s.from;return new H(n,l,a)}}return new H(n,i<0?r.text.length:0,i<0?"before":"after")}function oi(e,t){var r=k(e.doc,t),n=re(r);return n!=r&&(t=O(n)),ii(!0,e,n,t,1)}function li(e,t){var r=k(e.doc,t),n=function(e){for(var t;t=ee(e);)e=t.find(1,!0).line;return e}(r);return n!=r&&(t=O(n)),ii(!0,e,r,t,-1)}function si(e,t){var r=oi(e,t.line),n=k(e.doc,r.line),i=he(n,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(0,n.text.search(/\S/)),l=t.line==r.line&&t.ch<=o&&t.ch;return H(r.line,l?0:o,r.sticky)}return r}function ai(e,t,r){if("string"==typeof t&&!(t=vl[t]))return!1;e.display.input.ensurePolled();var n=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r&&(e.display.shift=!1),i=t(e)!=vo}finally{e.display.shift=n,e.state.suppressEdits=!1}return i}function ui(e,t,r,n){var i=e.state.keySeq;if(i){if(Zn(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:ml.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),ci(e,i+" "+t,r,n))return!0}return ci(e,t,r,n)}function ci(e,t,r,n){var i=function(e,t,r){for(var n=0;n-1&&(F((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(F(i.to(),t)>0||t.xRel<0)?function(e,t,r,n){var i=e.display,o=!1,l=xr(e,function(t){Xi&&(i.scroller.draggable=!1),e.state.draggingText=!1,de(document,"mouseup",l),de(document,"mousemove",s),de(i.scroller,"dragstart",a),de(i.scroller,"drop",l),o||(be(t),n.addNew||fn(e.doc,r,null,null,n.extend),Xi||Ki&&9==ji?setTimeout(function(){document.body.focus(),i.input.focus()},20):i.input.focus())}),s=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},a=function(){return o=!0};Xi&&(i.scroller.draggable=!0);e.state.draggingText=l,l.copy=!n.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop();No(document,"mouseup",l),No(document,"mousemove",s),No(i.scroller,"dragstart",a),No(i.scroller,"drop",l),Zt(e),setTimeout(function(){return i.input.focus()},20)}(e,n,t,o):function(e,t,r,n){function i(t){if(0!=F(m,t))if(m=t,"rectangle"==n.unit){for(var i=[],o=e.options.tabSize,l=h(k(u,r.line).text,r.ch,o),s=h(k(u,t.line).text,t.ch,o),a=Math.min(l,s),g=Math.max(l,s),v=Math.min(r.line,t.line),y=Math.min(e.lastLine(),Math.max(r.line,t.line));v<=y;v++){var b=k(u,v).text,w=d(b,a,o);a==g?i.push(new rl(H(v,w),H(v,w))):b.length>w&&i.push(new rl(H(v,w),H(v,d(b,g,o))))}i.length||i.push(new rl(r,r)),mn(u,Gr(p.ranges.slice(0,f).concat(i),f),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var x,C=c,S=vi(e,t,n.unit),L=C.anchor;F(S.anchor,L)>0?(x=S.head,L=I(C.from(),S.anchor)):(x=S.anchor,L=z(C.to(),S.head));var T=p.ranges.slice(0);T[f]=function(e,t){var r=t.anchor,n=t.head,i=k(e.doc,r.line);if(0==F(r,n)&&r.sticky==n.sticky)return t;var o=he(i);if(!o)return t;var l=ce(o,r.ch,r.sticky),s=o[l];if(s.from!=r.ch&&s.to!=r.ch)return t;var a=l+(s.from==r.ch==(1!=s.level)?0:1);if(0==a||a==o.length)return t;var u;if(n.line!=r.line)u=(n.line-r.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=ce(o,n.ch,n.sticky),h=c-l||(n.ch-r.ch)*(1==s.level?-1:1);u=c==a-1||c==a?h<0:h>0}var f=o[a+(u?-1:0)],d=u==(1==f.level),p=d?f.from:f.to,g=d?"after":"before";return r.ch==p&&r.sticky==g?t:new rl(new H(r.line,p,g),n)}(e,new rl(B(u,L),x)),mn(u,Gr(T,f),yo)}}function o(t){var r=++b,s=Vt(e,t,!0,"rectangle"==n.unit);if(s)if(0!=F(s,m)){e.curOp.focus=l(),i(s);var c=rr(a,u);(s.line>=c.to||s.liney.bottom?20:0;h&&setTimeout(xr(e,function(){b==r&&(a.scroller.scrollTop+=h,o(t))}),50)}}function s(t){e.state.selectingText=!1,b=1/0,be(t),a.input.focus(),de(document,"mousemove",w),de(document,"mouseup",x),u.history.lastSelOrigin=null}var a=e.display,u=e.doc;be(t);var c,f,p=u.sel,g=p.ranges;n.addNew&&!n.extend?(f=u.sel.contains(r),c=f>-1?g[f]:new rl(r,r)):(c=u.sel.primary(),f=u.sel.primIndex);if("rectangle"==n.unit)n.addNew||(c=new rl(r,r)),r=Vt(e,t,!0,!0),f=-1;else{var v=vi(e,r,n.unit);c=n.extend?hn(c,v.anchor,v.head,n.extend):v}n.addNew?-1==f?(f=g.length,mn(u,Gr(g.concat([c]),f),{scroll:!1,origin:"*mouse"})):g.length>1&&g[f].empty()&&"char"==n.unit&&!n.extend?(mn(u,Gr(g.slice(0,f).concat(g.slice(f+1)),0),{scroll:!1,origin:"*mouse"}),p=u.sel):pn(u,f,c,yo):(f=0,mn(u,new tl([c],0),yo),p=u.sel);var m=r;var y=a.wrapper.getBoundingClientRect(),b=0;var w=xr(e,function(e){Le(e)?o(e):s(e)}),x=xr(e,s);e.state.selectingText=x,No(document,"mousemove",w),No(document,"mouseup",x)}(e,n,t,o)}(t,n,o,e):Se(e)==r.scroller&&be(e):2==i?(n&&fn(t.doc,n),setTimeout(function(){return r.input.focus()},20)):3==i&&(ao?bi(t,e):Zt(t)))}}function vi(e,t,r){if("char"==r)return new rl(t,t);if("word"==r)return e.findWordAt(t);if("line"==r)return new rl(H(t.line,0),B(e.doc,H(t.line+1,0)));var n=r(e,t);return new rl(n.from,n.to)}function mi(e,t,r,n){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&be(t);var l=e.display,s=l.lineDiv.getBoundingClientRect();if(o>s.bottom||!me(e,r))return xe(t);o-=s.top-l.viewOffset;for(var a=0;a=i){return pe(e,r,e,A(e.doc,o),e.options.gutters[a],t),xe(t)}}}function yi(e,t){return mi(e,t,"gutterClick",!0)}function bi(e,t){st(e.display,t)||function(e,t){if(!me(e,"gutterContextMenu"))return!1;return mi(e,t,"gutterContextMenu",!1)}(e,t)||ge(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function wi(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),St(e)}function xi(e){Er(e),Lr(e),nr(e)}function Ci(e,t,r){if(!t!=!(r&&r!=Cl)){var n=e.display.dragFunctions,i=t?No:de;i(e.display.scroller,"dragstart",n.start),i(e.display.scroller,"dragenter",n.enter),i(e.display.scroller,"dragover",n.over),i(e.display.scroller,"dragleave",n.leave),i(e.display.scroller,"drop",n.drop)}}function Si(e){e.options.lineWrapping?(s(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(uo(e.display.wrapper,"CodeMirror-wrap"),ue(e)),Ut(e),Lr(e),St(e),setTimeout(function(){return gr(e)},100)}function Li(e,t){var o=this;if(!(this instanceof Li))return new Li(e,t);this.options=t=t?c(t):{},c(Sl,t,!1),zr(t);var l=t.value;"string"==typeof l&&(l=new al(l,t.mode,null,t.lineSeparator,t.direction)),this.doc=l;var s=new Li.inputStyles[t.inputStyle](this),a=this.display=new function(e,t,r){var o=this;this.input=r,o.scrollbarFiller=n("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=n("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=i("div",null,"CodeMirror-code"),o.selectionDiv=n("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=n("div",null,"CodeMirror-cursors"),o.measure=n("div",null,"CodeMirror-measure"),o.lineMeasure=n("div",null,"CodeMirror-measure"),o.lineSpace=i("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var l=i("div",[o.lineSpace],"CodeMirror-lines");o.mover=n("div",[l],null,"position: relative"),o.sizer=n("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=n("div",null,null,"position: absolute; height: "+go+"px; width: 1px;"),o.gutters=n("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=n("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=n("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),Ki&&ji<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),Xi||Bi&&to||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,r.init(o)}(e,l,s);a.wrapper.CodeMirror=this,Er(this),wi(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),mr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new ho,keySeq:null,specialChars:null},t.autofocus&&!to&&a.input.focus(),Ki&&ji<11&&setTimeout(function(){return o.display.input.reset(!0)},20),function(e){function t(){o.activeTouch&&(l=setTimeout(function(){return o.activeTouch=null},1e3),(s=o.activeTouch).end=+new Date)}function i(e,t){if(null==t.left)return!0;var r=t.left-e.left,n=t.top-e.top;return r*r+n*n>400}var o=e.display;No(o.scroller,"mousedown",xr(e,gi)),Ki&&ji<11?No(o.scroller,"dblclick",xr(e,function(t){if(!ge(e,t)){var r=Vt(e,t);if(r&&!yi(e,t)&&!st(e.display,t)){be(t);var n=e.findWordAt(r);fn(e.doc,n.anchor,n.head)}}})):No(o.scroller,"dblclick",function(t){return ge(e,t)||be(t)});ao||No(o.scroller,"contextmenu",function(t){return bi(e,t)});var l,s={end:0};No(o.scroller,"touchstart",function(t){if(!ge(e,t)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(t)&&!yi(e,t)){o.input.ensurePolled(),clearTimeout(l);var r=+new Date;o.activeTouch={start:r,moved:!1,prev:r-s.end<=300?s:null},1==t.touches.length&&(o.activeTouch.left=t.touches[0].pageX,o.activeTouch.top=t.touches[0].pageY)}}),No(o.scroller,"touchmove",function(){o.activeTouch&&(o.activeTouch.moved=!0)}),No(o.scroller,"touchend",function(r){var n=o.activeTouch;if(n&&!st(o,r)&&null!=n.left&&!n.moved&&new Date-n.start<300){var l,s=e.coordsChar(o.activeTouch,"page");l=!n.prev||i(n,n.prev)?new rl(s,s):!n.prev.prev||i(n,n.prev.prev)?e.findWordAt(s):new rl(H(s.line,0),B(e.doc,H(s.line+1,0))),e.setSelection(l.anchor,l.head),e.focus(),be(r)}t()}),No(o.scroller,"touchcancel",t),No(o.scroller,"scroll",function(){o.scroller.clientHeight&&(hr(e,o.scroller.scrollTop),dr(e,o.scroller.scrollLeft,!0),pe(e,"scroll",e))}),No(o.scroller,"mousewheel",function(t){return Br(e,t)}),No(o.scroller,"DOMMouseScroll",function(t){return Br(e,t)}),No(o.wrapper,"scroll",function(){return o.wrapper.scrollTop=o.wrapper.scrollLeft=0}),o.dragFunctions={enter:function(t){ge(e,t)||Ce(t)},over:function(t){ge(e,t)||(!function(e,t){var i=Vt(e,t);if(i){var o=document.createDocumentFragment();Yt(e,i,o),e.display.dragCursor||(e.display.dragCursor=n("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),r(e.display.dragCursor,o)}}(e,t),Ce(t))},start:function(t){return function(e,t){if(Ki&&(!e.state.draggingText||+new Date-ul<100))Ce(t);else if(!ge(e,t)&&!st(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!$i)){var r=n("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",qi&&(r.width=r.height=1,e.display.wrapper.appendChild(r),r._top=r.offsetTop),t.dataTransfer.setDragImage(r,0,0),qi&&r.parentNode.removeChild(r)}}(e,t)},drop:xr(e,Vn),leave:function(t){ge(e,t)||Kn(e)}};var a=o.input.getField();No(a,"keyup",function(t){return di.call(e,t)}),No(a,"keydown",xr(e,fi)),No(a,"keypress",xr(e,pi)),No(a,"focus",function(t){return Qt(e,t)}),No(a,"blur",function(t){return Jt(e,t)})}(this),Xn(),yr(this),this.curOp.forceUpdate=!0,Qr(this,l),t.autofocus&&!to||this.hasFocus()?setTimeout(u(Qt,this),20):Jt(this);for(var h in Ll)Ll.hasOwnProperty(h)&&Ll[h](o,t[h],Cl);ir(this),t.finishInit&&t.finishInit(this);for(var f=0;f150)){if(!n)return;r="prev"}}else u=0,r="not";"prev"==r?u=t>o.first?h(k(o,t-1).text,null,l):0:"add"==r?u=a+e.options.indentUnit:"subtract"==r?u=a-e.options.indentUnit:"number"==typeof r&&(u=a+r),u=Math.max(0,u);var f="",d=0;if(e.options.indentWithTabs)for(var g=Math.floor(u/l);g;--g)d+=l,f+="\t";if(d1)if(Tl&&Tl.text.join("\n")==t){if(n.ranges.length%Tl.text.length==0){a=[];for(var u=0;u=0;h--){var f=n.ranges[h],d=f.from(),p=f.to();f.empty()&&(r&&r>0?d=H(d.line,d.ch-r):e.state.overwrite&&!l?p=H(p.line,Math.min(k(o,p.line).text.length,p.ch+g(s).length)):Tl&&Tl.lineWise&&Tl.text.join("\n")==t&&(d=p=H(d.line,0))),c=e.curOp.updateInput;var m={from:d,to:p,text:a?a[h%a.length]:s,origin:i||(l?"paste":e.state.cutIncoming?"cut":"+input")};Mn(e.doc,m),$e(e,"inputRead",e,m)}t&&!l&&Oi(e,t),sr(e),e.curOp.updateInput=c,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Ni(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||wr(t,function(){return Mi(t,r,0,null,"paste")}),!0}function Oi(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var s=0;s-1){l=ki(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(k(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=ki(e,i.head.line,"smart"));l&&$e(e,"electricInput",e,i.head.line)}}}function Ai(e){for(var t=[],r=[],n=0;n=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var o=ce(i,r.ch,r.sticky),l=i[o];if("ltr"==e.doc.direction&&l.level%2==0&&(n>0?l.to>r.ch:l.from=l.from&&f>=c.begin)){var d=h?"before":"after";return new H(r.line,f,d)}}var p=function(e,t,n){for(var o=function(e,t){return t?new H(r.line,a(e,1),"before"):new H(r.line,e,"after")};e>=0&&e0==(1!=l.level),u=s?n.begin:a(n.end,-1);if(l.from<=u&&u0?c.end:a(c.begin,-1);return null==v||n>0&&v==t.text.length||!(g=p(n>0?0:i.length-1,n,u(v)))?null:g}(e.cm,a,t,r):ni(a,t,r))){if(n||!function(){var n=t.line+r;return!(n=e.first+e.size)&&(t=new H(n,t.ch,t.sticky),a=k(e,n))}())return!1;t=ii(i,e.cm,a,t.line,r)}else t=o;return!0}var l=t,s=r,a=k(e,t.line);if("char"==n)o();else if("column"==n)o(!0);else if("word"==n||"group"==n)for(var u=null,c="group"==n,h=e.cm&&e.cm.getHelper(t,"wordChars"),f=!0;!(r<0)||o(!f);f=!1){var d=a.text.charAt(t.ch)||"\n",p=w(d,h)?"w":c&&"\n"==d?"n":!c||/\s/.test(d)?null:"p";if(!c||f||p||(p="s"),u&&u!=p){r<0&&(r=1,o(),t.sticky="after");break}if(p&&(u=p),r>0&&!o(!f))break}var g=Sn(e,t,l,s,!0);return P(l,g)&&(g.hitSide=!0),g}function Fi(e,t,r,n){var i,o=e.doc,l=t.left;if("page"==n){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),a=Math.max(s-.5*zt(e.display),3);i=(r>0?t.bottom:t.top)+r*a}else"line"==n&&(i=r>0?t.bottom+3:t.top-3);for(var u;(u=Ht(e,l,i)).outside;){if(r<0?i<=0:i>=o.height){u.hitSide=!0;break}i+=5*r}return u}function Pi(e,t){var r=vt(e,t.line);if(!r||r.hidden)return null;var n=k(e.doc,t.line),i=pt(r,n,t.line),o=he(n,e.doc.direction),l="left";if(o){l=ce(o,t.ch)%2?"right":"left"}var s=bt(i.map,t.ch,l);return s.offset="right"==s.collapse?s.end:s.start,s}function Ei(e,t){return t&&(e.bad=!0),e}function zi(e,t,r){var n;if(t==e.display.lineDiv){if(!(n=e.display.lineDiv.childNodes[r]))return Ei(e.clipPos(H(e.display.viewTo-1)),!0);t=null,r=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var i=0;i=15&&(qi=!1,Xi=!0);var lo,so=ro&&(Yi||qi&&(null==oo||oo<12.11)),ao=Bi||Ki&&ji>=9,uo=function(t,r){var n=t.className,i=e(r).exec(n);if(i){var o=n.slice(i.index+i[0].length);t.className=n.slice(0,i.index)+(o?i[1]+o:"")}};lo=document.createRange?function(e,t,r,n){var i=document.createRange();return i.setEnd(n||e,r),i.setStart(e,t),i}:function(e,t,r){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch(e){return n}return n.collapse(!0),n.moveEnd("character",r),n.moveStart("character",t),n};var co=function(e){e.select()};Ji?co=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:Ki&&(co=function(e){try{e.select()}catch(e){}});var ho=function(){this.id=null};ho.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var fo,po,go=30,vo={toString:function(){return"CodeMirror.Pass"}},mo={scroll:!1},yo={origin:"*mouse"},bo={origin:"+move"},wo=[""],xo=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Co=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/,So=!1,Lo=!1,ko=null,To=function(){function e(e){return e<=247?r.charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?n.charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}function t(e,t,r){this.level=e,this.from=t,this.to=r}var r="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,l=/[LRr]/,s=/[Lb1n]/,a=/[1n]/;return function(r,n){var u="ltr"==n?"L":"R";if(0==r.length||"ltr"==n&&!i.test(r))return!1;for(var c=r.length,h=[],f=0;f=this.string.length},zo.prototype.sol=function(){return this.pos==this.lineStart},zo.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},zo.prototype.next=function(){if(this.post},zo.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},zo.prototype.skipToEnd=function(){this.pos=this.string.length},zo.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},zo.prototype.backUp=function(e){this.pos-=e},zo.prototype.column=function(){return this.lastColumnPos0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}var i=function(e){return r?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},zo.prototype.current=function(){return this.string.slice(this.start,this.pos)},zo.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},zo.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},zo.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var Io=function(e,t){this.state=e,this.lookAhead=t},Ro=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};Ro.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Ro.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Ro.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ro.fromSaved=function(e,t,r){return t instanceof Io?new Ro(e,Ae(e.mode,t.state),r,t.lookAhead):new Ro(e,Ae(e.mode,t),r)},Ro.prototype.save=function(e){var t=!1!==e?Ae(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Io(t,this.maxLookAhead):t};var Bo=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r},Go=function(e,t,r){this.text=e,_(this,t),this.height=r?r(this):1};Go.prototype.lineNo=function(){return O(this)},ye(Go);var Uo,Vo={},Ko={},jo=null,Xo=null,Yo={left:0,right:0,top:0,bottom:0},_o=function(e,t,r){this.cm=r;var i=this.vert=n("div",[n("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=n("div",[n("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(i),e(o),No(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),No(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ki&&ji<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};_o.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==n&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},_o.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},_o.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},_o.prototype.zeroWidthHack=function(){var e=ro&&!Zi?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ho,this.disableVert=new ho},_o.prototype.enableZeroWidthBar=function(e,t,r){function n(){var i=e.getBoundingClientRect();("vert"==r?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,n)}e.style.pointerEvents="auto",t.set(1e3,n)},_o.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var qo=function(){};qo.prototype.update=function(){return{bottom:0,right:0}},qo.prototype.setScrollLeft=function(){},qo.prototype.setScrollTop=function(){},qo.prototype.clear=function(){};var $o={native:_o,null:qo},Zo=0,Qo=function(e,t,r){var n=e.display;this.viewport=t,this.visible=rr(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=ft(e),this.force=r,this.dims=Rt(e),this.events=[]};Qo.prototype.signal=function(e,t){me(e,t)&&this.events.push(arguments)},Qo.prototype.finish=function(){for(var e=0;e=0&&F(e,n.to())<=0)return r}return-1};var rl=function(e,t){this.anchor=e,this.head=t};rl.prototype.from=function(){return I(this.anchor,this.head)},rl.prototype.to=function(){return z(this.anchor,this.head)},rl.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},zn.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var r=e,n=e+t;r1||!(this.children[0]instanceof zn))){var s=[];this.collapse(s),this.children=[new zn(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var l=i.lines.length%25+25,s=l;s10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;ne.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=n&&e&&this.collapsed&&Lr(e,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&wn(e.doc)),e&&$e(e,"markerCleared",e,this,n,i),t&&br(e),this.parent&&this.parent.clear()}},ol.prototype.find=function(e,t){null==e&&"bookmark"==this.type&&(e=1);for(var r,n,i=0;i=0;a--)Mn(this,n[a]);s?vn(this,s):this.cm&&sr(this.cm)}),undo:Sr(function(){On(this,"undo")}),redo:Sr(function(){On(this,"redo")}),undoSelection:Sr(function(){On(this,"undo",!0)}),redoSelection:Sr(function(){On(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,r){e=B(this,e),t=B(this,t);var n=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var l=o.markedSpans;if(l)for(var s=0;s=a.to||null==a.from&&i!=e.line||null!=a.from&&i==t.line&&a.from>=t.ch||r&&!r(a.marker)||n.push(a.marker.parent||a.marker)}++i}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var r=t.markedSpans;if(r)for(var n=0;ne)return t=e,!0;e-=o,++r}),B(this,H(r,t))},indexFromPos:function(e){var t=(e=B(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to0)i=new H(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),H(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var l=k(e.doc,i.line-1).text;l&&(i=new H(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),H(i.line-1,l.length-1),i,"+transpose"))}r.push(new rl(i,i))}e.setSelections(r)})},newlineAndIndent:function(e){return wr(e,function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;ne&&0==F(t,this.pos)&&r==this.button};var wl,xl,Cl={toString:function(){return"CodeMirror.Init"}},Sl={},Ll={};Li.defaults=Sl,Li.optionHandlers=Ll;var kl=[];Li.defineInitHook=function(e){return kl.push(e)};var Tl=null,Ml=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ho,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ml.prototype.init=function(e){function t(e){if(!ge(i,e)){if(i.somethingSelected())Ti({lineWise:!1,text:i.getSelections()}),"cut"==e.type&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var t=Ai(i);Ti({lineWise:!0,text:t.text}),"cut"==e.type&&i.operation(function(){i.setSelections(t.ranges,0,mo),i.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var r=Tl.text.join("\n");if(e.clipboardData.setData("Text",r),e.clipboardData.getData("Text")==r)return void e.preventDefault()}var l=Di(),s=l.firstChild;i.display.lineSpace.insertBefore(l,i.display.lineSpace.firstChild),s.value=Tl.text.join("\n");var a=document.activeElement;co(s),setTimeout(function(){i.display.lineSpace.removeChild(l),a.focus(),a==o&&n.showPrimarySelection()},50)}}var r=this,n=this,i=n.cm,o=n.div=e.lineDiv;Wi(o,i.options.spellcheck),No(o,"paste",function(e){ge(i,e)||Ni(e,i)||ji<=11&&setTimeout(xr(i,function(){return r.updateFromDOM()}),20)}),No(o,"compositionstart",function(e){r.composing={data:e.data,done:!1}}),No(o,"compositionupdate",function(e){r.composing||(r.composing={data:e.data,done:!1})}),No(o,"compositionend",function(e){r.composing&&(e.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),No(o,"touchstart",function(){return n.forceCompositionEnd()}),No(o,"input",function(){r.composing||r.readFromDOMSoon()}),No(o,"copy",t),No(o,"cut",t)},Ml.prototype.prepareSelection=function(){var e=Xt(this.cm,!1);return e.focus=this.cm.state.focused,e},Ml.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ml.prototype.showPrimarySelection=function(){var e=window.getSelection(),t=this.cm,r=t.doc.sel.primary(),n=r.from(),i=r.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||i.line=t.display.viewFrom&&Pi(t,n)||{node:s[0].measure.map[2],offset:0},u=i.linee.firstLine()&&(n=H(n.line-1,k(e.doc,n.line-1).length)),i.ch==k(e.doc,i.line).text.length&&i.linet.viewTo-1)return!1;var o,l,s;n.line==t.viewFrom||0==(o=Kt(e,n.line))?(l=O(t.view[0].line),s=t.view[0].node):(l=O(t.view[o].line),s=t.view[o-1].node.nextSibling);var a,u,c=Kt(e,i.line);if(c==t.view.length-1?(a=t.viewTo-1,u=t.lineDiv.lastChild):(a=O(t.view[c+1].line)-1,u=t.view[c+1].node.previousSibling),!s)return!1;for(var h=e.doc.splitLines(function(e,t,r,n,i){function o(){u&&(a+=c,u=!1)}function l(e){e&&(o(),a+=e)}function s(t){if(1==t.nodeType){var r=t.getAttribute("cm-text");if(null!=r)return void l(r||t.textContent.replace(/\u200b/g,""));var a,h=t.getAttribute("cm-marker");if(h){var f=e.findMarks(H(n,0),H(i+1,0),function(e){return function(t){return t.id==e}}(+h));return void(f.length&&(a=f[0].find(0))&&l(T(e.doc,a.from,a.to).join(c)))}if("false"==t.getAttribute("contenteditable"))return;var d=/^(pre|div|p)$/i.test(t.nodeName);d&&o();for(var p=0;p1&&f.length>1;)if(g(h)==g(f))h.pop(),f.pop(),a--;else{if(h[0]!=f[0])break;h.shift(),f.shift(),l++}for(var d=0,p=0,v=h[0],m=f[0],y=Math.min(v.length,m.length);dn.ch&&b.charCodeAt(b.length-p-1)==w.charCodeAt(w.length-p-1);)d--,p++;h[h.length-1]=b.slice(0,b.length-p).replace(/^\u200b+/,""),h[0]=h[0].slice(d).replace(/\u200b+$/,"");var C=H(l,d),S=H(a,f.length?g(f).length-p:0);return h.length>1||h[0]||F(C,S)?(Dn(e.doc,h,C,S,"+input"),!0):void 0},Ml.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ml.prototype.reset=function(){this.forceCompositionEnd()},Ml.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ml.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Ml.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||wr(this.cm,function(){return Lr(e.cm)})},Ml.prototype.setUneditable=function(e){e.contentEditable="false"},Ml.prototype.onKeyPress=function(e){0!=e.charCode&&(e.preventDefault(),this.cm.isReadOnly()||xr(this.cm,Mi)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ml.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ml.prototype.onContextMenu=function(){},Ml.prototype.resetPosition=function(){},Ml.prototype.needsContentAttribute=!0;var Nl=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ho,this.hasSelection=!1,this.composing=null};Nl.prototype.init=function(e){function t(e){if(!ge(i,e)){if(i.somethingSelected())Ti({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var t=Ai(i);Ti({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,mo):(n.prevInput="",l.value=t.text.join("\n"),co(l))}"cut"==e.type&&(i.state.cutIncoming=!0)}}var r=this,n=this,i=this.cm,o=this.wrapper=Di(),l=this.textarea=o.firstChild;e.wrapper.insertBefore(o,e.wrapper.firstChild),Ji&&(l.style.width="0px"),No(l,"input",function(){Ki&&ji>=9&&r.hasSelection&&(r.hasSelection=null),n.poll()}),No(l,"paste",function(e){ge(i,e)||Ni(e,i)||(i.state.pasteIncoming=!0,n.fastPoll())}),No(l,"cut",t),No(l,"copy",t),No(e.scroller,"paste",function(t){st(e,t)||ge(i,t)||(i.state.pasteIncoming=!0,n.focus())}),No(e.lineSpace,"selectstart",function(t){st(e,t)||be(t)}),No(l,"compositionstart",function(){var e=i.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}}),No(l,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Nl.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=Xt(e);if(e.options.moveInputWithCursor){var i=At(e,r.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+l.top-o.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+l.left-o.left))}return n},Nl.prototype.showSelection=function(e){var t=this.cm.display;r(t.cursorDiv,e.cursors),r(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Nl.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&co(this.textarea),Ki&&ji>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",Ki&&ji>=9&&(this.hasSelection=null))}},Nl.prototype.getField=function(){return this.textarea},Nl.prototype.supportsTouch=function(){return!1},Nl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!to||l()!=this.textarea))try{this.textarea.focus()}catch(e){}},Nl.prototype.blur=function(){this.textarea.blur()},Nl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Nl.prototype.receivedFocus=function(){this.slowPoll()},Nl.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Nl.prototype.fastPoll=function(){function e(){r.poll()||t?(r.pollingFast=!1,r.slowPoll()):(t=!0,r.polling.set(60,e))}var t=!1,r=this;r.pollingFast=!0,r.polling.set(20,e)},Nl.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||Wo(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=r.value;if(i==n&&!t.somethingSelected())return!1;if(Ki&&ji>=9&&this.hasSelection===i||ro&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||n||(n=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,s=Math.min(n.length,i.length);l1e3||i.indexOf("\n")>-1?r.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Nl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Nl.prototype.onKeyPress=function(){Ki&&ji>=9&&(this.hasSelection=null),this.fastPoll()},Nl.prototype.onContextMenu=function(e){function t(){if(null!=l.selectionStart){var e=i.somethingSelected(),t=""+(e?l.value:"");l.value="⇚",l.value=t,n.prevInput=e?"":"",l.selectionStart=1,l.selectionEnd=t.length,o.selForContextMenu=i.doc.sel}}function r(){if(n.contextMenuPending=!1,n.wrapper.style.cssText=c,l.style.cssText=u,Ki&&ji<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=a),null!=l.selectionStart){(!Ki||Ki&&ji<9)&&t();var e=0,r=function(){o.selForContextMenu==i.doc.sel&&0==l.selectionStart&&l.selectionEnd>0&&""==n.prevInput?xr(i,kn)(i):e++<10?o.detectingSelectAll=setTimeout(r,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(r,200)}}var n=this,i=n.cm,o=i.display,l=n.textarea,s=Vt(i,e),a=o.scroller.scrollTop;if(s&&!qi){i.options.resetSelectionOnContextMenu&&-1==i.doc.sel.contains(s)&&xr(i,mn)(i.doc,Ur(s),mo);var u=l.style.cssText,c=n.wrapper.style.cssText;n.wrapper.style.cssText="position: absolute";var h=n.wrapper.getBoundingClientRect();l.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(Ki?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var f;if(Xi&&(f=window.scrollY),o.input.focus(),Xi&&window.scrollTo(null,f),o.input.reset(),i.somethingSelected()||(l.value=n.prevInput=" "),n.contextMenuPending=!0,o.selForContextMenu=i.doc.sel,clearTimeout(o.detectingSelectAll),Ki&&ji>=9&&t(),ao){Ce(e);var d=function(){de(window,"mouseup",d),setTimeout(r,20)};No(window,"mouseup",d)}else setTimeout(r,50)}},Nl.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},Nl.prototype.setUneditable=function(){},Nl.prototype.needsContentAttribute=!1,function(e){function t(t,n,i,o){e.defaults[t]=n,i&&(r[t]=o?function(e,t,r){r!=Cl&&i(e,t,r)}:i)}var r=e.optionHandlers;e.defineOption=t,e.Init=Cl,t("value","",function(e,t){return e.setValue(t)},!0),t("mode",null,function(e,t){e.doc.modeOption=t,Yr(e)},!0),t("indentUnit",2,Yr,!0),t("indentWithTabs",!1),t("smartIndent",!0),t("tabSize",4,function(e){_r(e),St(e),Lr(e)},!0),t("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var r=[],n=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,r.push(H(n,o))}n++});for(var i=r.length-1;i>=0;i--)Dn(e.doc,t,r[i],H(r[i].line,r[i].ch+t.length))}}),t("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,r){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),r!=Cl&&e.refresh()}),t("specialCharPlaceholder",je,function(e){return e.refresh()},!0),t("electricChars",!0),t("inputStyle",to?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),t("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),t("rtlMoveVisually",!io),t("wholeLineUpdateBefore",!0),t("theme","default",function(e){wi(e),xi(e)},!0),t("keyMap","default",function(e,t,r){var n=ei(t),i=r!=Cl&&ei(r);i&&i.detach&&i.detach(e,n),n.attach&&n.attach(e,i||null)}),t("extraKeys",null),t("configureMouse",null),t("lineWrapping",!1,Si,!0),t("gutters",[],function(e){zr(e.options),xi(e)},!0),t("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?Bt(e.display)+"px":"0",e.refresh()},!0),t("coverGutterNextToScrollbar",!1,function(e){return gr(e)},!0),t("scrollbarStyle","native",function(e){mr(e),gr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),t("lineNumbers",!1,function(e){zr(e.options),xi(e)},!0),t("firstLineNumber",1,xi,!0),t("lineNumberFormatter",function(e){return e},xi,!0),t("showCursorWhenSelecting",!1,jt,!0),t("resetSelectionOnContextMenu",!0),t("lineWiseCopyCut",!0),t("pasteLinesPerSelection",!0),t("readOnly",!1,function(e,t){"nocursor"==t&&(Jt(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),t("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),t("dragDrop",!0,Ci),t("allowDropFileTypes",null),t("cursorBlinkRate",530),t("cursorScrollMargin",0),t("cursorHeight",1,jt,!0),t("singleCursorHeightPerLine",!0,jt,!0),t("workTime",100),t("workDelay",100),t("flattenSpans",!0,_r,!0),t("addModeClass",!1,_r,!0),t("pollInterval",100),t("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),t("historyEventDelay",1250),t("viewportMargin",10,function(e){return e.refresh()},!0),t("maxHighlightLength",1e4,_r,!0),t("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),t("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),t("autofocus",null),t("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0)}(Li),function(e){var t=e.optionHandlers,r=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,r){var n=this.options,i=n[e];n[e]==r&&"mode"!=e||(n[e]=r,t.hasOwnProperty(e)&&xr(this,t[e])(this,r,i),pe(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](ei(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,r=0;rr&&(ki(this,i.head.line,e,!0),r=i.head.line,n==this.doc.sel.primIndex&&sr(this));else{var o=i.from(),l=i.to(),s=Math.max(r,o.line);r=Math.min(this.lastLine(),l.line-(l.ch?0:1))+1;for(var a=s;a0&&pn(this.doc,n,new rl(o,u[n].to()),mo)}}}),getTokenAt:function(e,t){return Re(this,e,t)},getLineTokens:function(e,t){return Re(this,H(e),t,!0)},getTokenTypeAt:function(e){e=B(this.doc,e);var t,r=Fe(this,k(this.doc,e.line)),n=0,i=(r.length-1)/2,o=e.ch;if(0==o)t=r[2];else for(;;){var l=n+i>>1;if((l?r[2*l-1]:0)>=o)i=l;else{if(!(r[2*l+1]o&&(e=o,i=!0),n=k(this.doc,e)}else n=e;return Mt(this,n,{top:0,left:0},t||"page",r||i).top+(i?this.doc.height-se(n):0)},defaultTextHeight:function(){return zt(this.display)},defaultCharWidth:function(){return It(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,r,n,i){var o=this.display,l=(e=At(this,B(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==n)l=e.top;else if("above"==n||"near"==n){var a=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==n||e.bottom+t.offsetHeight>a)&&e.top>t.offsetHeight?l=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=a&&(l=e.bottom),s+t.offsetWidth>u&&(s=u-t.offsetWidth)}t.style.top=l+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),r&&function(e,t){var r=or(e,t);null!=r.scrollTop&&hr(e,r.scrollTop),null!=r.scrollLeft&&dr(e,r.scrollLeft)}(this,{left:s,top:l,right:s+t.offsetWidth,bottom:l+t.offsetHeight})},triggerOnKeyDown:Cr(fi),triggerOnKeyPress:Cr(pi),triggerOnKeyUp:di,triggerOnMouseDown:Cr(gi),execCommand:function(e){if(vl.hasOwnProperty(e))return vl[e].call(null,this)},triggerElectric:Cr(function(e){Oi(this,e)}),findPosH:function(e,t,r,n){var i=1;t<0&&(i=-1,t=-t);for(var o=B(this.doc,e),l=0;l0&&l(t.charAt(r-1));)--r;for(;n.5)&&Ut(this),pe(this,"refresh",this)}),swapDoc:Cr(function(e){var t=this.doc;return t.cm=null,Qr(this,e),St(this),this.display.input.reset(),ar(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,$e(this,"swapDoc",this,t),t}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ye(e),e.registerHelper=function(t,n,i){r.hasOwnProperty(t)||(r[t]=e[t]={_global:[]}),r[t][n]=i},e.registerGlobalHelper=function(t,n,i,o){e.registerHelper(t,n,o),r[t]._global.push({pred:i,val:o})}}(Li);var Ol="iter insert remove copy getEditor constructor".split(" ");for(var Al in al.prototype)al.prototype.hasOwnProperty(Al)&&f(Ol,Al)<0&&(Li.prototype[Al]=function(e){return function(){return e.apply(this.doc,arguments)}}(al.prototype[Al]));return ye(al),Li.inputStyles={textarea:Nl,contenteditable:Ml},Li.defineMode=function(e){Li.defaults.mode||"null"==e||(Li.defaults.mode=e),function(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Fo[e]=t}.apply(this,arguments)},Li.defineMIME=function(e,t){Po[e]=t},Li.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Li.defineMIME("text/plain","null"),Li.defineExtension=function(e,t){Li.prototype[e]=t},Li.defineDocExtension=function(e,t){al.prototype[e]=t},Li.fromTextArea=function(e,t){function r(){e.value=a.getValue()}if(t=t?c(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=l();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}var i;if(e.form&&(No(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var s=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=s}}catch(e){}}t.finishInit=function(t){t.save=r,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,r(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(de(e.form,"submit",r),"function"==typeof e.form.submit&&(e.form.submit=i))}},e.style.display="none";var a=Li(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return a},function(e){e.off=de,e.on=No,e.wheelEventPixels=Rr,e.Doc=al,e.splitLines=Ao,e.countColumn=h,e.findColumn=d,e.isWordChar=b,e.Pass=vo,e.signal=pe,e.Line=Go,e.changeEnd=Vr,e.scrollbarModel=$o,e.Pos=H,e.cmpPos=F,e.modes=Fo,e.mimeModes=Po,e.resolveMode=Me,e.getMode=Ne,e.modeExtensions=Eo,e.extendMode=Oe,e.copyState=Ae,e.startState=De,e.innerMode=We,e.commands=vl,e.keyMap=gl,e.keyName=Jn,e.isModifierKey=Zn,e.lookupKey=$n,e.normalizeKeyMap=qn,e.StringStream=zo,e.SharedTextMarker=ll,e.TextMarker=ol,e.LineWidget=nl,e.e_preventDefault=be,e.e_stopPropagation=we,e.e_stop=Ce,e.addClass=s,e.contains=o,e.rmClass=uo,e.keyNames=hl}(Li),Li.version="5.32.0",Li});
\ No newline at end of file
diff --git a/js/form-field-dependency.js b/js/form-field-dependency.js
new file mode 100755
index 0000000..5da6163
--- /dev/null
+++ b/js/form-field-dependency.js
@@ -0,0 +1,912 @@
+'use strict';
+
+
+
+
+
+(function ($) {
+
+
+
+
+ $.fn.formFieldDependency = function (options) {
+
+
+
+
+
+ /**
+ * Plugin Settings
+ * @type {void|*}
+ */
+ var settings = $.extend({
+ 'attribute' : 'data-depends',
+ 'rules' : {}
+ }, options);
+
+
+
+
+
+ /**
+ * Check array exists on array
+ * @param needleArray
+ * @param haystackArray
+ * @param strict
+ * @returns {boolean}
+ */
+ var arrayInArraysHelper = function (needleArray, haystackArray, strict) {
+
+
+
+
+
+
+
+ if (typeof strict == 'undefined') {
+ strict = false;
+ }
+
+ if (needleArray == null) {
+ needleArray = [];
+ }
+
+ if (strict == true) {
+ if ((needleArray.sort().join(',').toLowerCase()) == (haystackArray.sort().join(',').toLowerCase())) {
+ return true;
+ }
+ return false;
+ }
+ else {
+ for (var i = 0; i < needleArray.length; i++) {
+ if (haystackArray.indexOf(needleArray[i]) >= 0) {
+ return true;
+ }
+ }
+ return false;
+ }
+ };
+
+ /**
+ * Check string exist on array value
+ * @param needleString
+ * @param haystackArray
+ * @returns {boolean}
+ */
+ var stringInArraysHelper = function (needleString, haystackArray) {
+
+ if (($.inArray(needleString, haystackArray) >= 0) && $.isArray(haystackArray)) {
+ return true;
+ }
+ else {
+ return false;
+ }
+ };
+
+ /**
+ * Check value is empty or not
+ * @param value
+ * @returns {boolean}
+ */
+
+ var isEmpty = function (value) {
+
+ if (typeof value == 'null' || typeof value == 'undefined') {
+ return true;
+ }
+
+ if (typeof value == 'string') {
+ return ($.trim(value) == '') ? true : false;
+ }
+
+ if (typeof value == 'string') {
+ return ($.trim(value) == '') ? true : false;
+ }
+
+ if (typeof value == 'object') {
+ if ($.isArray(value)) {
+ var _tmp = $.map(value, function (val, i) {
+ return ($.trim(val) == '') ? null : val;
+ });
+ return $.isEmptyObject(_tmp);
+ }
+ else {
+ return $.isEmptyObject(value);
+ }
+ }
+ };
+
+ /**
+ * For Regular Expression Dependency
+ * @param element
+ * @param depObject
+ * @param parent
+ * @param useEvent
+ */
+ var typeRegExpDependency = function (element, depObject, parent, useEvent) {
+
+ if (typeof useEvent == 'undefined') {
+ useEvent = false;
+ }
+
+ if( typeof $(parent).prop("tagName")=='undefined' ){
+ return false;
+ }
+
+ var tag = $(parent).prop("tagName").toLowerCase();
+ var type = $(parent).prop("type").toLowerCase();
+ var name = tag + ':' + type;
+ var value = $.trim($(parent).val());
+
+ switch (name) {
+ case "input:text":
+ case "input:password":
+ case "input:number":
+ case "input:date":
+ case "input:email":
+ case "input:url":
+ case "input:tel":
+ case "textarea:textarea":
+
+ var modifier = ( typeof depObject.modifier == 'undefined' ) ? '' : depObject.modifier;
+ var pattern = new RegExp(depObject.pattern, modifier);
+
+ if (pattern.test(value)) {
+ $(element).show();
+ }
+ else {
+ $(element).hide();
+ }
+ break;
+ }
+
+ if (useEvent) {
+ $(document.body).on('keyup', $(parent), function (e) {
+ e.stopPropagation();
+ typeRegExpDependency(element, depObject, parent, false);
+ });
+ }
+ };
+
+ /**
+ * For Empty TextBox
+ * @param element
+ * @param depObject
+ * @param parent
+ * @param useEvent
+ */
+ var typeEmptyDependency = function (element, depObject, parent, useEvent) {
+
+
+ if (typeof useEvent == 'undefined') {
+ useEvent = false;
+ }
+
+ if( typeof $(parent).prop("tagName")=='undefined' ){
+ return false;
+ }
+
+ var tag = $(parent).prop("tagName").toLowerCase();
+ var type = $(parent).prop("type").toLowerCase();
+ var name = tag + ':' + type;
+ var value = $(parent).val();
+
+ switch (name) {
+ case "input:text":
+ case "input:password":
+ case "input:number":
+ case "input:date":
+ case "input:email":
+ case "input:url":
+ case "input:tel":
+ case "textarea:textarea":
+ case "select:select-one":
+
+ if ($.trim(value) == '') {
+ $(element).show();
+ }
+ else {
+ $(element).hide();
+ }
+ break;
+
+ case "input:checkbox":
+ if ($(parent).is(':checked') && $.trim(value) != '') {
+ $(element).hide();
+ }
+ else {
+ $(element).show();
+ }
+ break;
+
+ case "select:select-multiple":
+
+ if (isEmpty(value)) {
+ $(element).show();
+ }
+ else {
+ $(element).hide();
+ }
+
+ break;
+ }
+
+ if (useEvent) {
+ $(document.body).on('keyup change', $(parent), function (e) {
+ e.stopPropagation();
+ typeEmptyDependency(element, depObject, parent, false);
+
+
+ });
+ }
+ };
+
+ /**
+ * For non empty TextBox
+ * @param element
+ * @param depObject
+ * @param parent
+ * @param useEvent
+ */
+ var typeNotEmptyDependency = function (element, depObject, parent, useEvent) {
+
+ if (typeof useEvent == 'undefined') {
+ useEvent = false;
+ }
+
+ if( typeof $(parent).prop("tagName")=='undefined' ){
+ return false;
+ }
+
+ var tag = $(parent).prop("tagName").toLowerCase();
+ var type = $(parent).prop("type").toLowerCase();
+ var name = tag + ':' + type;
+ var value = $(parent).val();
+
+ switch (name) {
+ case "input:text":
+ case "input:password":
+ case "input:number":
+ case "input:date":
+ case "input:email":
+ case "input:url":
+ case "input:tel":
+ case "textarea:textarea":
+ case "select:select-one":
+
+ if ($.trim(value) != '') {
+ $(element).show();
+ }
+ else {
+ $(element).hide();
+ }
+ break;
+
+ case "input:checkbox":
+ if ($(parent).is(':checked') && $.trim(value) != '') {
+ $(element).show();
+ }
+ else {
+ $(element).hide();
+ }
+ break;
+
+ case "select:select-multiple":
+
+ if (isEmpty(value)) {
+ $(element).hide();
+ }
+ else {
+ $(element).show();
+ }
+
+ break;
+ }
+
+ if (useEvent) {
+ $(document.body).on('keyup change', $(parent), function (e) {
+
+
+
+ e.stopPropagation();
+
+ typeNotEmptyDependency(element, depObject, parent, false);
+ });
+ }
+ };
+
+ /**
+ * TextBox value matched with value or with array values
+ * @param element
+ * @param depObject
+ * @param parent
+ * @param useEvent
+ */
+ var typeEqualDependency = function (element, depObject, parent, useEvent) {
+
+
+ console.log(useEvent);
+
+ if (typeof useEvent == 'undefined') {
+ useEvent = false;
+ }
+
+ if( typeof $(parent).prop("tagName")=='undefined' ){
+ return false;
+ }
+
+ var tag = $(parent).prop("tagName").toLowerCase();
+ var type = $(parent).prop("type").toLowerCase();
+ var name = tag + ':' + type;
+ var value = $(parent).val();
+
+ var equalLike = (typeof depObject.like == 'undefined') ? false : true;
+
+ // show if empty?. default false
+ depObject.empty = (typeof depObject.empty == 'undefined') ? false : depObject.empty;
+
+ depObject.strict = (typeof depObject.strict == 'undefined') ? false : depObject.strict;
+
+ if (equalLike) {
+
+ var eqtag = $(depObject.like).prop("tagName").toLowerCase();
+ var eqtype = $(depObject.like).prop("type").toLowerCase();
+ var eqname = eqtag + ':' + eqtype;
+
+ if (eqname == 'input:checkbox' || eqname == 'input:radio') {
+
+
+
+ depObject.value = $(depObject.like + ':checked').map(function () {
+ return this.value;
+ }).get();
+ }
+ else {
+
+ depObject.value = $(depObject.like).val();
+
+ if (!showOnEmptyValue) {
+ depObject.value = ($.trim($(depObject.like).val()) == '') ? null : $(depObject.like).val();
+ }
+ }
+ }
+
+ switch (name) {
+ case "input:text":
+ case "input:password":
+ case "input:number":
+ case "input:date":
+ case "input:email":
+ case "input:url":
+ case "input:tel":
+ case "textarea:textarea":
+ case "select:select-one":
+
+ if ($.trim(value) == depObject.value) {
+ $(element).show();
+ }
+ else if (stringInArraysHelper(value, depObject.value)) {
+ $(element).show();
+ }
+ else {
+ if( $.trim(value)=='' && depObject.empty ){
+ $(element).show();
+ }else{
+ $(element).hide();
+ }
+ }
+ break;
+
+ case "input:checkbox":
+ case "input:radio":
+
+ var value = $(parent + ':checked').map(function () {
+ return this.value;
+ }).get();
+
+
+
+ if (value == depObject.value) {
+ $(element).show();
+ }
+ else if (stringInArraysHelper(value, depObject.value)) {
+ $(element).show();
+ }
+ else if (arrayInArraysHelper(value, depObject.value, depObject.strict)) {
+ $(element).show();
+ }
+ else {
+ if( isEmpty(value) && depObject.empty){
+ $(element).show();
+ } else {
+ $(element).hide();
+ }
+ }
+ break;
+
+ case "select:select-multiple":
+
+ if (arrayInArraysHelper(value, depObject.value, depObject.strict)) {
+ $(element).show();
+ }
+ else {
+
+ if( value==null && depObject.empty ){
+ $(element).show();
+ } else{
+ $(element).hide();
+ }
+ }
+ break;
+ }
+
+ if (useEvent) {
+ $(document.body).on('keyup change', $(parent), function (e) {
+
+
+ e.stopPropagation();
+ typeEqualDependency(element, depObject, parent, false);
+ });
+ }
+
+ };
+
+ /**
+ * TextBox value not equal with value or with array values
+ * @param element
+ * @param depObject
+ * @param parent
+ * @param useEvent
+ */
+ var typeNotEqualDependency = function (element, depObject, parent, useEvent) {
+
+ if (typeof useEvent == 'undefined') {
+ useEvent = false;
+ }
+
+ if( typeof $(parent).prop("tagName")=='undefined' ){
+ return false;
+ }
+
+ var tag = $(parent).prop("tagName").toLowerCase();
+ var type = $(parent).prop("type").toLowerCase();
+ var name = tag + ':' + type;
+ var value = $(parent).val();
+
+ var equalLike = (typeof depObject.like == 'undefined') ? false : true;
+ depObject.strict = (typeof depObject.strict == 'undefined') ? false : depObject.strict;
+
+ // show if empty? default is true
+ depObject.empty = (typeof depObject.empty == 'undefined') ? true : depObject.empty;
+
+ if (equalLike) {
+
+ var eqtag = $(depObject.like).prop("tagName").toLowerCase();
+ var eqtype = $(depObject.like).prop("type").toLowerCase();
+ var eqname = eqtag + ':' + eqtype;
+
+ if (eqname == 'input:checkbox' || eqname == 'input:radio') {
+ depObject.value = $(depObject.like + ':checked').map(function () {
+ return this.value;
+ }).get();
+ }
+ else {
+
+ depObject.value = $(depObject.like).val();
+
+ if (!showOnEmptyValue) {
+ depObject.value = ($.trim($(depObject.like).val()) == '') ? null : $(depObject.like).val();
+ }
+ }
+ }
+
+
+ switch (name) {
+ case "input:text":
+ case "input:password":
+ case "input:number":
+ case "input:date":
+ case "input:email":
+ case "input:url":
+ case "input:tel":
+ case "textarea:textarea":
+ case "select:select-one":
+
+ if (value == depObject.value) {
+ $(element).hide();
+ }
+ else if (stringInArraysHelper(value, depObject.value)) {
+ $(element).hide();
+ }
+ else {
+ if ($.trim(value) == '' && !depObject.empty) {
+ $(element).hide();
+ } else {
+ $(element).show();
+ }
+ }
+ break;
+
+ case "input:checkbox":
+ case "input:radio":
+
+ value = $(parent + ':checked').map(function () {
+ return this.value;
+ }).get();
+
+
+ if (typeof depObject.strict == 'undefined') {
+ depObject.strict = false;
+ }
+
+ if (value == depObject.value) {
+
+ $(element).hide();
+ }
+ else if (stringInArraysHelper(value, depObject.value)) {
+
+ $(element).hide();
+ }
+ else if (arrayInArraysHelper(value, depObject.value, depObject.strict)) {
+
+ $(element).hide();
+ }
+ else {
+ if (isEmpty(value) && !depObject.empty) {
+ $(element).hide();
+ }else{
+ $(element).show();
+ }
+ }
+
+ break;
+
+ case "select:select-multiple":
+
+ if (arrayInArraysHelper(value, depObject.value, depObject.strict)) {
+ $(element).hide();
+ } else {
+ if( value==null && !depObject.empty ) {
+ $(element).hide();
+ }else{
+ $(element).show();
+ }
+ }
+
+ break;
+ }
+
+ if (useEvent) {
+ $(document.body).on('keyup change', $(parent), function (e) {
+
+
+
+
+ e.stopPropagation();
+ typeNotEqualDependency(element, depObject, parent, false);
+ });
+ }
+ };
+
+
+ /**
+ * TextBox value compare
+ * @param element
+ * @param depObject
+ * @param parent
+ * @param useEvent
+ */
+ var typeCompareDependency = function (element, depObject, parent, useEvent) {
+
+ if (typeof useEvent == 'undefined') {
+ useEvent = false;
+ }
+
+ if( typeof $(parent).prop("tagName")=='undefined' ){
+ return false;
+ }
+
+ var tag = $(parent).prop("tagName").toLowerCase();
+ var type = $(parent).prop("type").toLowerCase();
+ var name = tag + ':' + type;
+ var value = parseInt($(parent).val());
+ depObject.value = parseInt(depObject.value);
+
+ switch (depObject.sign) {
+ case "<":
+ case "lt":
+ case "lessthen":
+ case "less-then":
+ case "LessThen":
+ if (value < depObject.value) {
+ $(element).show();
+ }
+ else {
+ $(element).hide();
+ }
+ break;
+
+ case "<=":
+ case "lteq":
+ case "lessthenequal":
+ case "less-then-equal":
+ case "LessThenEqual":
+ case "eqlt":
+ if (value <= depObject.value) {
+ $(element).show();
+ }
+ else {
+ $(element).hide();
+ }
+ break;
+
+ case ">=":
+ case "gteq":
+ case "greaterthenequal":
+ case "greater-then-equal":
+ case "GreaterThenEqual":
+ case "eqgt":
+ if (value >= depObject.value) {
+ $(element).show();
+ }
+ else {
+ $(element).hide();
+ }
+ break;
+
+ case ">":
+ case "gt":
+ case "greaterthen":
+ case "greater-then":
+ case "GreaterThen":
+ if (value > depObject.value) {
+ $(element).show();
+ }
+ else {
+ $(element).hide();
+ }
+ break;
+
+
+ }
+
+ if (useEvent) {
+ $(document.body).on('keyup change', $(parent), function (e) {
+
+
+
+ e.stopPropagation();
+ typeCompareDependency(element, depObject, parent, false);
+ });
+ }
+ };
+
+ /**
+ * TextBox value range
+ * @param element
+ * @param depObject
+ * @param parent
+ * @param useEvent
+ */
+ var typeRangeDependency = function (element, depObject, parent, useEvent) {
+
+ if (typeof useEvent == 'undefined') {
+ useEvent = false;
+ }
+
+ if( typeof $(parent).prop("tagName")=='undefined' ){
+ return false;
+ }
+
+ var tag = $(parent).prop("tagName").toLowerCase();
+ var type = $(parent).prop("type").toLowerCase();
+ var name = tag + ':' + type;
+ var value = parseInt($(parent).val());
+ var min, max;
+
+
+ // value = [50, 100]
+
+ if ($.isArray(depObject.value)) {
+ min = parseInt(depObject.value[0]);
+ max = parseInt(depObject.value[1]);
+ }
+
+ if (typeof depObject.value == 'undefined') {
+ min = parseInt(depObject.min);
+ max = parseInt(depObject.max);
+ }
+
+ if (min < value && value < max) {
+ $(element).show();
+ }
+ else {
+ $(element).hide();
+ }
+
+
+ if (useEvent) {
+ $(document.body).on('keyup change', $(parent), function (e) {
+
+
+
+
+ e.stopPropagation();
+ typeRangeDependency(element, depObject, parent, false);
+ });
+ }
+ };
+
+
+ /**
+ * TextBox value length
+ * @param element
+ * @param depObject
+ * @param parent
+ * @param useEvent
+ */
+ var typeLengthDependency = function (element, depObject, parent, useEvent) {
+
+ if (typeof useEvent == 'undefined') {
+ useEvent = false;
+ }
+
+ if( typeof $(parent).prop("tagName")=='undefined' ){
+ return false;
+ }
+
+ var tag = $(parent).prop("tagName").toLowerCase();
+ var type = $(parent).prop("type").toLowerCase();
+ var name = tag + ':' + type;
+ var value = $(parent).val().length;
+ depObject.value = parseInt(depObject.value);
+
+ switch ( depObject.sign ){
+ case "<":
+ case "lt":
+ case "lessthen":
+ case "less-then":
+ case "LessThen":
+ if (value < depObject.value) {
+ $(element).show();
+ }
+ else {
+ $(element).hide();
+ }
+ break;
+
+ case "<=":
+ case "lteq":
+ case "lessthenequal":
+ case "less-then-equal":
+ case "LessThenEqual":
+ case "eqlt":
+ if (value <= depObject.value){
+ $(element).show();
+ }
+ else{
+ $(element).hide();
+ }
+ break;
+
+ case ">=":
+ case "gteq":
+ case "greaterthenequal":
+ case "greater-then-equal":
+ case "GreaterThenEqual":
+ case "eqgt":
+ if (value >= depObject.value) {
+ $(element).show();
+ }
+ else {
+ $(element).hide();
+ }
+ break;
+
+ case ">":
+ case "gt":
+ case "greaterthen":
+ case "greater-then":
+ case "GreaterThen":
+ if (value > depObject.value) {
+ $(element).show();
+ }
+ else {
+ $(element).hide();
+ }
+ break;
+ }
+
+ if (useEvent) {
+ $(document.body).on('keyup change', $(parent), function (e) {
+
+
+
+
+ e.stopPropagation();
+ typeLengthDependency(element, depObject, parent, false);
+ });
+ }
+ };
+
+
+ /**
+ * Using Types
+ * @param $el
+ * @param $data
+ */
+ var useTypes = function ($el, $data) {
+ $.each($data, function (selector, depObject) {
+
+
+
+
+
+ switch (depObject.type) {
+ case "empty":
+ typeEmptyDependency($el, depObject, selector, true);
+ break;
+
+ case "notempty":
+ case "not-empty":
+ case "notEmpty":
+ case "!empty":
+ typeNotEmptyDependency($el, depObject, selector, true);
+ break;
+
+ case "equal":
+ case "==":
+ case "=":
+ typeEqualDependency($el, depObject, selector, true);
+
+
+ break;
+
+ case "!equal":
+ case "notequal":
+ case "!=":
+ case "not-equal":
+ case "notEqual":
+ typeNotEqualDependency($el, depObject, selector, true);
+ break;
+
+ case "regexp":
+ case "expression":
+ case "reg":
+ case "exp":
+ typeRegExpDependency($el, depObject, selector, true);
+ break;
+
+ case "compare":
+ case "comp":
+ typeCompareDependency($el, depObject, selector, true);
+ break;
+
+ case "length":
+ case "lng":
+ typeLengthDependency($el, depObject, selector, true);
+ break;
+
+ case "range":
+ typeRangeDependency($el, depObject, selector, true);
+ break;
+
+ }
+ });
+ };
+
+ (function ($data) {
+ $.each($data, function ($el, depObject) {
+ useTypes($($el), depObject);
+ });
+ })(settings.rules);
+
+ return this.each(function () {
+ var $data = JSON.parse($(this).attr(settings.attribute).replace(/'/g, '"'));
+ var that = $(this);
+ $.each($data, function(el, obj){
+ useTypes(that, obj);
+ });
+ });
+ }
+})(jQuery);
\ No newline at end of file
diff --git a/js/form-field-dependency.min.js b/js/form-field-dependency.min.js
new file mode 100755
index 0000000..ccdb80b
--- /dev/null
+++ b/js/form-field-dependency.min.js
@@ -0,0 +1 @@
+"use strict";(function(a){a.fn.formFieldDependency=function(o){var d=a.extend({attribute:"data-depends",rules:{}},o);var e=function(q,s,p){if(typeof p=="undefined"){p=false}if(q==null){q=[]}if(p==true){if((q.sort().join(",").toLowerCase())==(s.sort().join(",").toLowerCase())){return true}return false}else{for(var r=0;r=0){return true}}return false}};var l=function(p,q){if((a.inArray(p,q)>=0)&&a.isArray(q)){return true}else{return false}};var h=function(q){if(typeof q=="null"||typeof q=="undefined"){return true}if(typeof q=="string"){return(a.trim(q)=="")?true:false}if(typeof q=="string"){return(a.trim(q)=="")?true:false}if(typeof q=="object"){if(a.isArray(q)){var p=a.map(q,function(s,r){return(a.trim(s)=="")?null:s});return a.isEmptyObject(p)}else{return a.isEmptyObject(q)}}};var k=function(s,t,x,q){if(typeof q=="undefined"){q=false}if(typeof a(x).prop("tagName")=="undefined"){return false}var y=a(x).prop("tagName").toLowerCase();var v=a(x).prop("type").toLowerCase();var p=y+":"+v;var w=a.trim(a(x).val());switch(p){case"input:text":case"input:password":case"input:number":case"input:date":case"input:email":case"input:url":case"input:tel":case"textarea:textarea":var r=(typeof t.modifier=="undefined")?"":t.modifier;var u=new RegExp(t.pattern,r);if(u.test(w)){a(s).show()}else{a(s).hide()}break}if(q){a(document.body).on("keyup",a(x),function(z){z.stopPropagation();k(s,t,x,false)})}};var f=function(s,r,u,v){if(typeof v=="undefined"){v=false}if(typeof a(u).prop("tagName")=="undefined"){return false}var p=a(u).prop("tagName").toLowerCase();var t=a(u).prop("type").toLowerCase();var q=p+":"+t;var w=a(u).val();switch(q){case"input:text":case"input:password":case"input:number":case"input:date":case"input:email":case"input:url":case"input:tel":case"textarea:textarea":case"select:select-one":if(a.trim(w)==""){a(s).show()}else{a(s).hide()}break;case"input:checkbox":if(a(u).is(":checked")&&a.trim(w)!=""){a(s).hide()}else{a(s).show()}break;case"select:select-multiple":if(h(w)){a(s).show()}else{a(s).hide()}break}if(v){a(document.body).on("keyup change",a(u),function(x){x.stopPropagation();f(s,r,u,false)})}};var i=function(s,r,u,v){if(typeof v=="undefined"){v=false}if(typeof a(u).prop("tagName")=="undefined"){return false}var p=a(u).prop("tagName").toLowerCase();var t=a(u).prop("type").toLowerCase();var q=p+":"+t;var w=a(u).val();switch(q){case"input:text":case"input:password":case"input:number":case"input:date":case"input:email":case"input:url":case"input:tel":case"textarea:textarea":case"select:select-one":if(a.trim(w)!=""){a(s).show()}else{a(s).hide()}break;case"input:checkbox":if(a(u).is(":checked")&&a.trim(w)!=""){a(s).show()}else{a(s).hide()}break;case"select:select-multiple":if(h(w)){a(s).hide()}else{a(s).show()}break}if(v){a(document.body).on("keyup change",a(u),function(x){x.stopPropagation();i(s,r,u,false)})}};var b=function(s,t,y,q){console.log(q);if(typeof q=="undefined"){q=false}if(typeof a(y).prop("tagName")=="undefined"){return false}var A=a(y).prop("tagName").toLowerCase();var v=a(y).prop("type").toLowerCase();var p=A+":"+v;var x=a(y).val();var u=(typeof t.like=="undefined")?false:true;t.empty=(typeof t.empty=="undefined")?false:t.empty;t.strict=(typeof t.strict=="undefined")?false:t.strict;if(u){var w=a(t.like).prop("tagName").toLowerCase();var z=a(t.like).prop("type").toLowerCase();var r=w+":"+z;if(r=="input:checkbox"||r=="input:radio"){t.value=a(t.like+":checked").map(function(){return this.value}).get()}else{t.value=a(t.like).val();if(!showOnEmptyValue){t.value=(a.trim(a(t.like).val())=="")?null:a(t.like).val()}}}switch(p){case"input:text":case"input:password":case"input:number":case"input:date":case"input:email":case"input:url":case"input:tel":case"textarea:textarea":case"select:select-one":if(a.trim(x)==t.value){a(s).show()}else{if(l(x,t.value)){a(s).show()}else{if(a.trim(x)==""&&t.empty){a(s).show()}else{a(s).hide()}}}break;case"input:checkbox":case"input:radio":var x=a(y+":checked").map(function(){return this.value}).get();if(x==t.value){a(s).show()}else{if(l(x,t.value)){a(s).show()}else{if(e(x,t.value,t.strict)){a(s).show()}else{if(h(x)&&t.empty){a(s).show()}else{a(s).hide()}}}}break;case"select:select-multiple":if(e(x,t.value,t.strict)){a(s).show()}else{if(x==null&&t.empty){a(s).show()}else{a(s).hide()}}break}if(q){a(document.body).on("keyup change",a(y),function(B){B.stopPropagation();b(s,t,y,false)})}};var c=function(s,t,y,q){if(typeof q=="undefined"){q=false}if(typeof a(y).prop("tagName")=="undefined"){return false}var A=a(y).prop("tagName").toLowerCase();var v=a(y).prop("type").toLowerCase();var p=A+":"+v;var x=a(y).val();var u=(typeof t.like=="undefined")?false:true;t.strict=(typeof t.strict=="undefined")?false:t.strict;t.empty=(typeof t.empty=="undefined")?true:t.empty;if(u){var w=a(t.like).prop("tagName").toLowerCase();var z=a(t.like).prop("type").toLowerCase();var r=w+":"+z;if(r=="input:checkbox"||r=="input:radio"){t.value=a(t.like+":checked").map(function(){return this.value}).get()}else{t.value=a(t.like).val();if(!showOnEmptyValue){t.value=(a.trim(a(t.like).val())=="")?null:a(t.like).val()}}}switch(p){case"input:text":case"input:password":case"input:number":case"input:date":case"input:email":case"input:url":case"input:tel":case"textarea:textarea":case"select:select-one":if(x==t.value){a(s).hide()}else{if(l(x,t.value)){a(s).hide()}else{if(a.trim(x)==""&&!t.empty){a(s).hide()}else{a(s).show()}}}break;case"input:checkbox":case"input:radio":x=a(y+":checked").map(function(){return this.value}).get();if(typeof t.strict=="undefined"){t.strict=false}if(x==t.value){a(s).hide()}else{if(l(x,t.value)){a(s).hide()}else{if(e(x,t.value,t.strict)){a(s).hide()}else{if(h(x)&&!t.empty){a(s).hide()}else{a(s).show()}}}}break;case"select:select-multiple":if(e(x,t.value,t.strict)){a(s).hide()}else{if(x==null&&!t.empty){a(s).hide()}else{a(s).show()}}break}if(q){a(document.body).on("keyup change",a(y),function(B){B.stopPropagation();c(s,t,y,false)})}};var n=function(s,r,u,v){if(typeof v=="undefined"){v=false}if(typeof a(u).prop("tagName")=="undefined"){return false}var p=a(u).prop("tagName").toLowerCase();var t=a(u).prop("type").toLowerCase();var q=p+":"+t;var w=parseInt(a(u).val());r.value=parseInt(r.value);switch(r.sign){case"<":case"lt":case"lessthen":case"less-then":case"LessThen":if(w=":case"gteq":case"greaterthenequal":case"greater-then-equal":case"GreaterThenEqual":case"eqgt":if(w>=r.value){a(s).show()}else{a(s).hide()}break;case">":case"gt":case"greaterthen":case"greater-then":case"GreaterThen":if(w>r.value){a(s).show()}else{a(s).hide()}break}if(v){a(document.body).on("keyup change",a(u),function(x){x.stopPropagation();n(s,r,u,false)})}};var g=function(s,t,x,q){if(typeof q=="undefined"){q=false}if(typeof a(x).prop("tagName")=="undefined"){return false}var y=a(x).prop("tagName").toLowerCase();var u=a(x).prop("type").toLowerCase();var p=y+":"+u;var w=parseInt(a(x).val());var r,v;if(a.isArray(t.value)){r=parseInt(t.value[0]);v=parseInt(t.value[1])}if(typeof t.value=="undefined"){r=parseInt(t.min);v=parseInt(t.max)}if(r=":case"gteq":case"greaterthenequal":case"greater-then-equal":case"GreaterThenEqual":case"eqgt":if(w>=r.value){a(s).show()}else{a(s).hide()}break;case">":case"gt":case"greaterthen":case"greater-then":case"GreaterThen":if(w>r.value){a(s).show()}else{a(s).hide()}break}if(v){a(document.body).on("keyup change",a(u),function(x){x.stopPropagation();m(s,r,u,false)})}};var j=function(q,p){a.each(p,function(r,s){switch(s.type){case"empty":f(q,s,r,true);break;case"notempty":case"not-empty":case"notEmpty":case"!empty":i(q,s,r,true);break;case"equal":case"==":case"=":b(q,s,r,true);break;case"!equal":case"notequal":case"!=":case"not-equal":case"notEqual":c(q,s,r,true);break;case"regexp":case"expression":case"reg":case"exp":k(q,s,r,true);break;case"compare":case"comp":n(q,s,r,true);break;case"length":case"lng":m(q,s,r,true);break;case"range":g(q,s,r,true);break}})};(function(p){a.each(p,function(r,q){j(a(r),q)})})(d.rules);return this.each(function(){var p=JSON.parse(a(this).attr(d.attribute).replace(/'/g,'"'));var q=a(this);a.each(p,function(r,s){j(q,s)})})}})(jQuery);
\ No newline at end of file
diff --git a/js/mage-options-framework.js b/js/mage-options-framework.js
new file mode 100755
index 0000000..8fb4693
--- /dev/null
+++ b/js/mage-options-framework.js
@@ -0,0 +1,353 @@
+jQuery(document).ready(function($) {
+
+
+ $(".dependency-field").formFieldDependency({});
+ $(".sortable" ).sortable({ handle: ".sort" });
+ $('.colorpicker').wpColorPicker();
+
+
+ jQuery(document).on('click', '.field-switcher-wrapper .switcher .layer', function() {
+ if(jQuery(this).parent().hasClass('checked')){
+ jQuery(this).parent().removeClass('checked');
+ }else{
+ jQuery(this).parent().addClass('checked');
+ }
+ })
+
+ jQuery(document).on('click', '.field-img-select-wrapper .sw-button img', function() {
+ var dataId = jQuery(this).attr('data-id');
+ var src = jQuery(this).attr('src');
+ jQuery('.field-img-select-wrapper-'+dataId+' .img-val input').val(src);
+ jQuery('.field-img-select-wrapper-'+dataId+' label').removeClass('checked');
+ if(jQuery(this).parent().parent().hasClass('checked')){
+ jQuery(this).parent().parent().removeClass('checked');
+ }else{
+ jQuery(this).parent().parent().addClass('checked');
+ }
+ })
+
+
+ jQuery(document).on('change', '.field-range-input-wrapper .range-hndle', function() {
+ val = $(this).val();
+ $(this).parent().children('.range-val').val(val);
+ })
+ jQuery(document).on('keyup', '.field-range-input-wrapper .range-val', function() {
+ val = $(this).val();
+ $(this).parent().children('.range-hndle').val(val);
+ })
+
+
+ jQuery(document).on('click', '.field-switch-wrapper .sw-button', function() {
+
+ jQuery(this).parent().parent().children('label').removeClass('checked');
+ //jQuery('.field-switch-wrapper label').removeClass('checked');
+
+ if(jQuery(this).parent().hasClass('checked')){
+ jQuery(this).parent().removeClass('checked');
+ }else{
+ jQuery(this).parent().addClass('checked');
+ }
+ })
+
+
+ jQuery(document).on('click', '.field-switch-multi-wrapper .sw-button', function() {
+ if(jQuery(this).parent().hasClass('checked')){
+ jQuery(this).parent().removeClass('checked');
+ }else{
+ jQuery(this).parent().addClass('checked');
+ }
+ })
+
+ jQuery(document).on('click', '.field-switch-img-wrapper .sw-button img', function() {
+
+ jQuery(this).parent().parent().children('label').removeClass('checked');
+ //jQuery('.field-switch-img-wrapper label').removeClass('checked');
+
+
+ if(jQuery(this).parent().parent().hasClass('checked')){
+ jQuery(this).parent().parent().removeClass('checked');
+ }else{
+ jQuery(this).parent().parent().addClass('checked');
+ }
+ })
+
+
+
+ jQuery(document).on('click', '.field-time-format-wrapper .format-list input[type="radio"]',function () {
+ value = $(this).val();
+ $(this).parent().parent().parent().children('.format-value').children('.format').children('input').val(value);
+ //$(this).parent().parent().parent().children('.format-value').children('input').val(value);
+
+ })
+
+
+ jQuery(document).on('click', '.field-date-format-wrapper .format-list input[type="radio"]', function () {
+ value = $(this).val();
+ $(this).parent().parent().parent().children('.format-value').children('.format').children('input').val(value);
+ //$('.field-date-format-wrapper .format-value input').val(value);
+ })
+
+
+ /*field-icon-wrapper*/
+
+ jQuery(document).on('click', '.field-icon-wrapper .select-icon', function(){
+ if(jQuery(this).parent().hasClass('active')){
+ jQuery(this).parent().removeClass('active');
+ }else{
+ jQuery(this).parent().addClass('active');
+ }
+ })
+ jQuery(document).on('keyup', '.field-icon-wrapper .search-icon input', function(){
+
+ text = jQuery(this).val();
+
+ $(this).parent().parent().children('ul').children('li').each(function( index ) {
+ console.log( index + ": " + $( this ).attr('title') );
+ title = $( this ).attr('title');
+ n = title.indexOf(text);
+ if(n<0){
+ $( this ).hide();
+ }else{
+ $( this ).show();
+ }
+ });
+ })
+ jQuery(document).on('click', '.field-icon-wrapper .icon-list li', function(){
+ iconData = jQuery(this).attr('iconData');
+ html = '';
+
+ jQuery(this).parent().parent().parent().children('.icon-wrapper').children('span').html(html);
+ jQuery(this).parent().parent().parent().children('.icon-wrapper').children('input').val(iconData);
+
+ //jQuery('.field-icon-wrapper .icon-wrapper input').val(iconData);
+ })
+
+
+ $('.field-select2-wrapper select').select2({
+ width: '320px',
+ allowClear: true
+
+ });
+
+
+
+ jQuery(document).on('click', '.field-option-group-tabs-wrapper .tab-navs li', function() {
+
+ index = $(this).attr('index');
+
+ jQuery(".field-option-group-tabs-wrapper .tab-navs li").removeClass('active');
+ jQuery(".field-option-group-tabs-wrapper .tab-content").removeClass('active');
+ if(jQuery(this).hasClass('active')){
+
+ }else{
+ jQuery(this).addClass('active');
+ jQuery(".field-option-group-tabs-wrapper .tab-content-"+index).addClass('active');
+ }
+
+
+
+ })
+
+
+
+ jQuery(document).on('click', '.field-color-sets-wrapper .color-srick', function() {
+
+ jQuery('.field-color-sets-wrapper label').removeClass('checked');
+ if(jQuery(this).parent().hasClass('checked')){
+ jQuery(this).parent().removeClass('checked');
+ }else{
+ jQuery(this).parent().addClass('checked');
+ }
+
+
+ })
+
+ jQuery(document).on('click', '.field-color-palette-wrapper .sw-button', function() {
+ jQuery('.field-color-palette-wrapper label').removeClass('checked');
+ if(jQuery(this).parent().hasClass('checked')){
+ jQuery(this).parent().removeClass('checked');
+ }else{
+ jQuery(this).parent().addClass('checked');
+ }
+ })
+
+
+
+ jQuery(document).on('click', '.field-color-palette-multi-wrapper .sw-button',function() {
+ if(jQuery(this).parent().hasClass('checked')){
+ jQuery(this).parent().removeClass('checked');
+ }else{
+ jQuery(this).parent().addClass('checked');
+ }
+ })
+
+
+
+
+ jQuery(document).on('keyup', '.field-password-wrapper input',function(){
+ pass = $(this).val();
+ var score = 0;
+ if (!pass)
+ return score;
+ // award every unique letter until 5 repetitions
+ var letters = new Object();
+ for (var i=0; i 80){
+ score_style = '#4CAF50;';
+ score_text = 'Strong';
+ }else if(score > 60){
+ score_style = '#cddc39;';
+ score_text = 'Good';
+ }else if(score > 30){
+ score_style = '#FF9800;';
+ score_text = 'Normal';
+ }else{
+ score_style = '#F44336;';
+ score_text = 'Week';
+ }
+ html = '';
+ $(".field-password-wrapper- .scorePassword").html(html)
+ $(".field-password-wrapper- .scoreText").html(score_text)
+ })
+
+
+ jQuery(document).on('keyup', 'input.search-options', function(){
+ keyword = jQuery(this).val();
+
+ if(keyword != '' ){
+ $('.form-table tr th').each(function( index ) {
+ title = $( this ).text();
+ // console.log( index + ": " + title );
+
+ title = title.toLowerCase();
+
+ n = title.indexOf(keyword);
+ if(n<0){
+ $( this ).parent().hide();
+ }else{
+ $( this ).parent().show();
+ }
+ });
+
+
+ $('.form-section .tab-content').each(function( index ) {
+
+ $( this ).show();
+
+ });
+
+
+ $('.form-section .tab-content h2').each(function( index ) {
+
+ $( this ).hide();
+
+ });
+
+ }else{
+
+ $('.form-table tr th').each(function( index ) {
+ $( this ).parent().show();
+ });
+
+
+ $('.form-section .tab-content').each(function( index ) {
+
+ if(index == 0){
+ $( this ).addClass('active');
+ $( this ).show();
+ }else{
+ $( this ).removeClass('active');
+ $( this ).removeAttr('style');
+ }
+
+
+ });
+
+ $('.form-section .tab-content h2').each(function( index ) {
+
+ $( this ).show();
+
+ });
+ }
+
+
+
+
+
+ })
+
+
+
+ // $(document).on('click','.ppof-settings .nav-items .child-nav-icon',function(event){
+ // event.preventDefault()
+ // //dataid = $(this).attr('dataid');
+ //
+ // if($(this).parent().parent().hasClass('active')){
+ // $( this ).parent().parent().removeClass('active');
+ //
+ // }else{
+ // $( this ).parent().parent().addClass('active');
+ // }
+ //
+ // //$('.nav-items .nav-item').removeClass('active');
+ // // $(this).addClass('active');
+ // //$('.tab-content').removeClass('active');
+ // //$('.tab-content-'+dataid).addClass('active');
+ // })
+
+
+
+
+
+
+
+
+
+ $(document).on('click','.ppof-settings .nav-items .nav-item',function(event){
+ event.preventDefault()
+ dataid = $(this).attr('dataid');
+ sectionId = $(this).attr('sectionId');
+ //$('.nav-item-wrap').removeClass('active');
+
+ if($(this).parent().hasClass('active')){
+ $( this ).parent().removeClass('active');
+
+ }else{
+ $( this ).parent().addClass('active');
+ }
+
+
+ $('.nav-items .nav-item').removeClass('active');
+ $(this).addClass('active');
+ $('.tab-content').removeClass('active');
+ $('.tab-content-'+dataid).addClass('active');
+
+ if(sectionId != null){
+ $('html, body, .edit-post-layout__content').animate({
+ scrollTop: ($("#"+sectionId).offset().top - 80)
+ }, 500);
+ }
+
+
+
+ })
+});
+
+
+
+
diff --git a/js/mage-options-framework.min.js b/js/mage-options-framework.min.js
new file mode 100755
index 0000000..44d4ad3
--- /dev/null
+++ b/js/mage-options-framework.min.js
@@ -0,0 +1 @@
+jQuery(document).ready(function(a){jQuery(document).on("keyup","input.search-options",function(){keyword=jQuery(this).val();if(keyword!=""){a(".form-table tr th").each(function(b){title=a(this).text();title=title.toLowerCase();n=title.indexOf(keyword);if(n<0){a(this).parent().hide()}else{a(this).parent().show()}});a(".form-section .tab-content").each(function(b){a(this).show()});a(".form-section .tab-content h2").each(function(b){a(this).hide()})}else{a(".form-table tr th").each(function(b){a(this).parent().show()});a(".form-section .tab-content").each(function(b){if(b==0){a(this).addClass("active");a(this).show()}else{a(this).removeClass("active");a(this).removeAttr("style")}});a(".form-section .tab-content h2").each(function(b){a(this).show()})}});a(document).on("click",".ppof-settings .nav-items .nav-item",function(b){b.preventDefault();dataid=a(this).attr("dataid");a(".nav-items .nav-item").removeClass("active");a(this).addClass("active");a(".tab-content").removeClass("active");a(".tab-content-"+dataid).addClass("active")})});
\ No newline at end of file
diff --git a/js/select2.min.js b/js/select2.min.js
new file mode 100755
index 0000000..7ef2fda
--- /dev/null
+++ b/js/select2.min.js
@@ -0,0 +1 @@
+/*! Select2 4.0.5 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c),c}:a(jQuery)}(function(a){var b=function(){if(a&&a.fn&&a.fn.select2&&a.fn.select2.amd)var b=a.fn.select2.amd;var b;return function(){if(!b||!b.requirejs){b?c=b:b={};var a,c,d;!function(b){function e(a,b){return v.call(a,b)}function f(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o=b&&b.split("/"),p=t.map,q=p&&p["*"]||{};if(a){for(a=a.split("/"),g=a.length-1,t.nodeIdCompat&&x.test(a[g])&&(a[g]=a[g].replace(x,"")),"."===a[0].charAt(0)&&o&&(n=o.slice(0,o.length-1),a=n.concat(a)),k=0;k0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}if((o||q)&&p){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),o)for(l=o.length;l>0;l-=1)if((e=p[o.slice(0,l).join("/")])&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&q&&q[d]&&(i=q[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}return a}function g(a,c){return function(){var d=w.call(arguments,0);return"string"!=typeof d[0]&&1===d.length&&d.push(null),o.apply(b,d.concat([a,c]))}}function h(a){return function(b){return f(b,a)}}function i(a){return function(b){r[a]=b}}function j(a){if(e(s,a)){var c=s[a];delete s[a],u[a]=!0,n.apply(b,c)}if(!e(r,a)&&!e(u,a))throw new Error("No "+a);return r[a]}function k(a){var b,c=a?a.indexOf("!"):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function l(a){return a?k(a):[]}function m(a){return function(){return t&&t.config&&t.config[a]||{}}}var n,o,p,q,r={},s={},t={},u={},v=Object.prototype.hasOwnProperty,w=[].slice,x=/\.js$/;p=function(a,b){var c,d=k(a),e=d[0],g=b[1];return a=d[1],e&&(e=f(e,g),c=j(e)),e?a=c&&c.normalize?c.normalize(a,h(g)):f(a,g):(a=f(a,g),d=k(a),e=d[0],a=d[1],e&&(c=j(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:c}},q={require:function(a){return g(a)},exports:function(a){var b=r[a];return void 0!==b?b:r[a]={}},module:function(a){return{id:a,uri:"",exports:r[a],config:m(a)}}},n=function(a,c,d,f){var h,k,m,n,o,t,v,w=[],x=typeof d;if(f=f||a,t=l(f),"undefined"===x||"function"===x){for(c=!c.length&&d.length?["require","exports","module"]:c,o=0;o0&&(b.call(arguments,a.prototype.constructor),e=c.prototype.constructor),e.apply(this,arguments)}function e(){this.constructor=d}var f=b(c),g=b(a);c.displayName=a.displayName,d.prototype=new e;for(var h=0;h":">",'"':""","'":"'","/":"/"};return"string"!=typeof a?a:String(a).replace(/[&<>"'\/\\]/g,function(a){return b[a]})},c.appendMany=function(b,c){if("1.7"===a.fn.jquery.substr(0,3)){var d=a();a.map(c,function(a){d=d.add(a)}),c=d}b.append(c)},c}),b.define("select2/results",["jquery","./utils"],function(a,b){function c(a,b,d){this.$element=a,this.data=d,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('');return this.options.get("multiple")&&b.attr("aria-multiselectable","true"),this.$results=b,b},c.prototype.clear=function(){this.$results.empty()},c.prototype.displayMessage=function(b){var c=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var d=a(''),e=this.options.get("translations").get(b.message);d.append(c(e(b.args))),d[0].className+=" select2-results__message",this.$results.append(d)},c.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},c.prototype.append=function(a){this.hideLoading();var b=[];if(null==a.results||0===a.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));a.results=this.sort(a.results);for(var c=0;c0?b.first().trigger("mouseenter"):a.first().trigger("mouseenter"),this.ensureHighlightVisible()},c.prototype.setClasses=function(){var b=this;this.data.current(function(c){var d=a.map(c,function(a){return a.id.toString()});b.$results.find(".select2-results__option[aria-selected]").each(function(){var b=a(this),c=a.data(this,"data"),e=""+c.id;null!=c.element&&c.element.selected||null==c.element&&a.inArray(e,d)>-1?b.attr("aria-selected","true"):b.attr("aria-selected","false")})})},c.prototype.showLoading=function(a){this.hideLoading();var b=this.options.get("translations").get("searching"),c={disabled:!0,loading:!0,text:b(a)},d=this.option(c);d.className+=" loading-results",this.$results.prepend(d)},c.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},c.prototype.option=function(b){var c=document.createElement("li");c.className="select2-results__option";var d={role:"treeitem","aria-selected":"false"};b.disabled&&(delete d["aria-selected"],d["aria-disabled"]="true"),null==b.id&&delete d["aria-selected"],null!=b._resultId&&(c.id=b._resultId),b.title&&(c.title=b.title),b.children&&(d.role="group",d["aria-label"]=b.text,delete d["aria-selected"]);for(var e in d){var f=d[e];c.setAttribute(e,f)}if(b.children){var g=a(c),h=document.createElement("strong");h.className="select2-results__group";a(h);this.template(b,h);for(var i=[],j=0;j",{class:"select2-results__options select2-results__options--nested"});m.append(i),g.append(h),g.append(m)}else this.template(b,c);return a.data(c,"data",b),c},c.prototype.bind=function(b,c){var d=this,e=b.id+"-results";this.$results.attr("id",e),b.on("results:all",function(a){d.clear(),d.append(a.data),b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("results:append",function(a){d.append(a.data),b.isOpen()&&d.setClasses()}),b.on("query",function(a){d.hideMessages(),d.showLoading(a)}),b.on("select",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("unselect",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("open",function(){d.$results.attr("aria-expanded","true"),d.$results.attr("aria-hidden","false"),d.setClasses(),d.ensureHighlightVisible()}),b.on("close",function(){d.$results.attr("aria-expanded","false"),d.$results.attr("aria-hidden","true"),d.$results.removeAttr("aria-activedescendant")}),b.on("results:toggle",function(){var a=d.getHighlightedResults();0!==a.length&&a.trigger("mouseup")}),b.on("results:select",function(){var a=d.getHighlightedResults();if(0!==a.length){var b=a.data("data");"true"==a.attr("aria-selected")?d.trigger("close",{}):d.trigger("select",{data:b})}}),b.on("results:previous",function(){var a=d.getHighlightedResults(),b=d.$results.find("[aria-selected]"),c=b.index(a);if(0!==c){var e=c-1;0===a.length&&(e=0);var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top,h=f.offset().top,i=d.$results.scrollTop()+(h-g);0===e?d.$results.scrollTop(0):h-g<0&&d.$results.scrollTop(i)}}),b.on("results:next",function(){var a=d.getHighlightedResults(),b=d.$results.find("[aria-selected]"),c=b.index(a),e=c+1;if(!(e>=b.length)){var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top+d.$results.outerHeight(!1),h=f.offset().top+f.outerHeight(!1),i=d.$results.scrollTop()+h-g;0===e?d.$results.scrollTop(0):h>g&&d.$results.scrollTop(i)}}),b.on("results:focus",function(a){a.element.addClass("select2-results__option--highlighted")}),b.on("results:message",function(a){d.displayMessage(a)}),a.fn.mousewheel&&this.$results.on("mousewheel",function(a){var b=d.$results.scrollTop(),c=d.$results.get(0).scrollHeight-b+a.deltaY,e=a.deltaY>0&&b-a.deltaY<=0,f=a.deltaY<0&&c<=d.$results.height();e?(d.$results.scrollTop(0),a.preventDefault(),a.stopPropagation()):f&&(d.$results.scrollTop(d.$results.get(0).scrollHeight-d.$results.height()),a.preventDefault(),a.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(b){var c=a(this),e=c.data("data");if("true"===c.attr("aria-selected"))return void(d.options.get("multiple")?d.trigger("unselect",{originalEvent:b,data:e}):d.trigger("close",{}));d.trigger("select",{originalEvent:b,data:e})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(b){var c=a(this).data("data");d.getHighlightedResults().removeClass("select2-results__option--highlighted"),d.trigger("results:focus",{data:c,element:a(this)})})},c.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},c.prototype.destroy=function(){this.$results.remove()},c.prototype.ensureHighlightVisible=function(){var a=this.getHighlightedResults();if(0!==a.length){var b=this.$results.find("[aria-selected]"),c=b.index(a),d=this.$results.offset().top,e=a.offset().top,f=this.$results.scrollTop()+(e-d),g=e-d;f-=2*a.outerHeight(!1),c<=2?this.$results.scrollTop(0):(g>this.$results.outerHeight()||g<0)&&this.$results.scrollTop(f)}},c.prototype.template=function(b,c){var d=this.options.get("templateResult"),e=this.options.get("escapeMarkup"),f=d(b,c);null==f?c.style.display="none":"string"==typeof f?c.innerHTML=e(f):a(c).append(f)},c}),b.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),b.define("select2/selection/base",["jquery","../utils","../keys"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,b.Observable),d.prototype.render=function(){var b=a('');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),b.attr("title",this.$element.attr("title")),b.attr("tabindex",this._tabindex),this.$selection=b,b},d.prototype.bind=function(a,b){var d=this,e=(a.id,a.id+"-results");this.container=a,this.$selection.on("focus",function(a){d.trigger("focus",a)}),this.$selection.on("blur",function(a){d._handleBlur(a)}),this.$selection.on("keydown",function(a){d.trigger("keypress",a),a.which===c.SPACE&&a.preventDefault()}),a.on("results:focus",function(a){d.$selection.attr("aria-activedescendant",a.data._resultId)}),a.on("selection:update",function(a){d.update(a.data)}),a.on("open",function(){d.$selection.attr("aria-expanded","true"),d.$selection.attr("aria-owns",e),d._attachCloseHandler(a)}),a.on("close",function(){d.$selection.attr("aria-expanded","false"),d.$selection.removeAttr("aria-activedescendant"),d.$selection.removeAttr("aria-owns"),d.$selection.focus(),d._detachCloseHandler(a)}),a.on("enable",function(){d.$selection.attr("tabindex",d._tabindex)}),a.on("disable",function(){d.$selection.attr("tabindex","-1")})},d.prototype._handleBlur=function(b){var c=this;window.setTimeout(function(){document.activeElement==c.$selection[0]||a.contains(c.$selection[0],document.activeElement)||c.trigger("blur",b)},1)},d.prototype._attachCloseHandler=function(b){a(document.body).on("mousedown.select2."+b.id,function(b){var c=a(b.target),d=c.closest(".select2");a(".select2.select2-container--open").each(function(){var b=a(this);this!=d[0]&&b.data("element").select2("close")})})},d.prototype._detachCloseHandler=function(b){a(document.body).off("mousedown.select2."+b.id)},d.prototype.position=function(a,b){b.find(".selection").append(a)},d.prototype.destroy=function(){this._detachCloseHandler(this.container)},d.prototype.update=function(a){throw new Error("The `update` method must be defined in child classes.")},d}),b.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(a,b,c,d){function e(){e.__super__.constructor.apply(this,arguments)}return c.Extend(e,b),e.prototype.render=function(){var a=e.__super__.render.call(this);return a.addClass("select2-selection--single"),a.html(''),a},e.prototype.bind=function(a,b){var c=this;e.__super__.bind.apply(this,arguments);var d=a.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",d),this.$selection.attr("aria-labelledby",d),this.$selection.on("mousedown",function(a){1===a.which&&c.trigger("toggle",{originalEvent:a})}),this.$selection.on("focus",function(a){}),this.$selection.on("blur",function(a){}),a.on("focus",function(b){a.isOpen()||c.$selection.focus()}),a.on("selection:update",function(a){c.update(a.data)})},e.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},e.prototype.display=function(a,b){var c=this.options.get("templateSelection");return this.options.get("escapeMarkup")(c(a,b))},e.prototype.selectionContainer=function(){return a("")},e.prototype.update=function(a){if(0===a.length)return void this.clear();var b=a[0],c=this.$selection.find(".select2-selection__rendered"),d=this.display(b,c);c.empty().append(d),c.prop("title",b.title||b.text)},e}),b.define("select2/selection/multiple",["jquery","./base","../utils"],function(a,b,c){function d(a,b){d.__super__.constructor.apply(this,arguments)}return c.Extend(d,b),d.prototype.render=function(){var a=d.__super__.render.call(this);return a.addClass("select2-selection--multiple"),a.html(''),a},d.prototype.bind=function(b,c){var e=this;d.__super__.bind.apply(this,arguments),this.$selection.on("click",function(a){e.trigger("toggle",{originalEvent:a})}),this.$selection.on("click",".select2-selection__choice__remove",function(b){if(!e.options.get("disabled")){var c=a(this),d=c.parent(),f=d.data("data");e.trigger("unselect",{originalEvent:b,data:f})}})},d.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},d.prototype.display=function(a,b){var c=this.options.get("templateSelection");return this.options.get("escapeMarkup")(c(a,b))},d.prototype.selectionContainer=function(){return a('×')},d.prototype.update=function(a){if(this.clear(),0!==a.length){for(var b=[],d=0;d1||c)return a.call(this,b);this.clear();var d=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(d)},b}),b.define("select2/selection/allowClear",["jquery","../keys"],function(a,b){function c(){}return c.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(a){d._handleClear(a)}),b.on("keypress",function(a){d._handleKeyboardClear(a,b)})},c.prototype._handleClear=function(a,b){if(!this.options.get("disabled")){var c=this.$selection.find(".select2-selection__clear");if(0!==c.length){b.stopPropagation();for(var d=c.data("data"),e=0;e0||0===c.length)){var d=a('×');d.data("data",c),this.$selection.find(".select2-selection__rendered").prepend(d)}},c}),b.define("select2/selection/search",["jquery","../utils","../keys"],function(a,b,c){function d(a,b,c){a.call(this,b,c)}return d.prototype.render=function(b){var c=a('');this.$searchContainer=c,this.$search=c.find("input");var d=b.call(this);return this._transferTabIndex(),d},d.prototype.bind=function(a,b,d){var e=this;a.call(this,b,d),b.on("open",function(){e.$search.trigger("focus")}),b.on("close",function(){e.$search.val(""),e.$search.removeAttr("aria-activedescendant"),e.$search.trigger("focus")}),b.on("enable",function(){e.$search.prop("disabled",!1),e._transferTabIndex()}),b.on("disable",function(){e.$search.prop("disabled",!0)}),b.on("focus",function(a){e.$search.trigger("focus")}),b.on("results:focus",function(a){e.$search.attr("aria-activedescendant",a.id)}),this.$selection.on("focusin",".select2-search--inline",function(a){e.trigger("focus",a)}),this.$selection.on("focusout",".select2-search--inline",function(a){e._handleBlur(a)}),this.$selection.on("keydown",".select2-search--inline",function(a){if(a.stopPropagation(),e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented(),a.which===c.BACKSPACE&&""===e.$search.val()){var b=e.$searchContainer.prev(".select2-selection__choice");if(b.length>0){var d=b.data("data");e.searchRemoveChoice(d),a.preventDefault()}}});var f=document.documentMode,g=f&&f<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(a){if(g)return void e.$selection.off("input.search input.searchcheck");e.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(a){if(g&&"input"===a.type)return void e.$selection.off("input.search input.searchcheck");var b=a.which;b!=c.SHIFT&&b!=c.CTRL&&b!=c.ALT&&b!=c.TAB&&e.handleSearch(a)})},d.prototype._transferTabIndex=function(a){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},d.prototype.createPlaceholder=function(a,b){this.$search.attr("placeholder",b.text)},d.prototype.update=function(a,b){var c=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),a.call(this,b),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),c&&this.$search.focus()},d.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var a=this.$search.val();this.trigger("query",{term:a})}this._keyUpPrevented=!1},d.prototype.searchRemoveChoice=function(a,b){this.trigger("unselect",{data:b}),this.$search.val(b.text),this.handleSearch()},d.prototype.resizeSearch=function(){this.$search.css("width","25px");var a="";if(""!==this.$search.attr("placeholder"))a=this.$selection.find(".select2-selection__rendered").innerWidth();else{a=.75*(this.$search.val().length+1)+"em"}this.$search.css("width",a)},d}),b.define("select2/selection/eventRelay",["jquery"],function(a){function b(){}return b.prototype.bind=function(b,c,d){var e=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting"],g=["opening","closing","selecting","unselecting"];b.call(this,c,d),c.on("*",function(b,c){if(-1!==a.inArray(b,f)){c=c||{};var d=a.Event("select2:"+b,{params:c});e.$element.trigger(d),-1!==a.inArray(b,g)&&(c.prevented=d.isDefaultPrevented())}})},b}),b.define("select2/translation",["jquery","require"],function(a,b){function c(a){this.dict=a||{}}return c.prototype.all=function(){return this.dict},c.prototype.get=function(a){return this.dict[a]},c.prototype.extend=function(b){this.dict=a.extend({},b.all(),this.dict)},c._cache={},c.loadPath=function(a){if(!(a in c._cache)){var d=b(a);c._cache[a]=d}return new c(c._cache[a])},c}),b.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),b.define("select2/data/base",["../utils"],function(a){function b(a,c){b.__super__.constructor.call(this)}return a.Extend(b,a.Observable),b.prototype.current=function(a){throw new Error("The `current` method must be defined in child classes.")},b.prototype.query=function(a,b){throw new Error("The `query` method must be defined in child classes.")},b.prototype.bind=function(a,b){},b.prototype.destroy=function(){},b.prototype.generateResultId=function(b,c){var d=b.id+"-result-";return d+=a.generateChars(4),null!=c.id?d+="-"+c.id.toString():d+="-"+a.generateChars(4),d},b}),b.define("select2/data/select",["./base","../utils","jquery"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,a),d.prototype.current=function(a){var b=[],d=this;this.$element.find(":selected").each(function(){var a=c(this),e=d.item(a);b.push(e)}),a(b)},d.prototype.select=function(a){var b=this;if(a.selected=!0,c(a.element).is("option"))return a.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(d){var e=[];a=[a],a.push.apply(a,d);for(var f=0;f=0){var k=f.filter(d(j)),l=this.item(k),m=c.extend(!0,{},j,l),n=this.option(m);k.replaceWith(n)}else{var o=this.option(j);if(j.children){var p=this.convertToOptions(j.children);b.appendMany(o,p)}h.push(o)}}return h},d}),b.define("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){function d(a,b){this.ajaxOptions=this._applyDefaults(b.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),d.__super__.constructor.call(this,a,b)}return b.Extend(d,a),d.prototype._applyDefaults=function(a){var b={data:function(a){return c.extend({},a,{q:a.term})},transport:function(a,b,d){var e=c.ajax(a);return e.then(b),e.fail(d),e}};return c.extend({},b,a,!0)},d.prototype.processResults=function(a){return a},d.prototype.query=function(a,b){function d(){var d=f.transport(f,function(d){var f=e.processResults(d,a);e.options.get("debug")&&window.console&&console.error&&(f&&f.results&&c.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),b(f)},function(){d.status&&"0"===d.status||e.trigger("results:message",{message:"errorLoading"})});e._request=d}var e=this;null!=this._request&&(c.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var f=c.extend({type:"GET"},this.ajaxOptions);"function"==typeof f.url&&(f.url=f.url.call(this.$element,a)),"function"==typeof f.data&&(f.data=f.data.call(this.$element,a)),this.ajaxOptions.delay&&null!=a.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(d,this.ajaxOptions.delay)):d()},d}),b.define("select2/data/tags",["jquery"],function(a){function b(b,c,d){var e=d.get("tags"),f=d.get("createTag");void 0!==f&&(this.createTag=f);var g=d.get("insertTag");if(void 0!==g&&(this.insertTag=g),b.call(this,c,d),a.isArray(e))for(var h=0;h0&&b.term.length>this.maximumInputLength)return void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:b.term,params:b}});a.call(this,b,c)},a}),b.define("select2/data/maximumSelectionLength",[],function(){function a(a,b,c){this.maximumSelectionLength=c.get("maximumSelectionLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){var d=this;this.current(function(e){var f=null!=e?e.length:0;if(d.maximumSelectionLength>0&&f>=d.maximumSelectionLength)return void d.trigger("results:message",{message:"maximumSelected",args:{maximum:d.maximumSelectionLength}});a.call(d,b,c)})},a}),b.define("select2/dropdown",["jquery","./utils"],function(a,b){function c(a,b){this.$element=a,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('');return b.attr("dir",this.options.get("dir")),this.$dropdown=b,b},c.prototype.bind=function(){},c.prototype.position=function(a,b){},c.prototype.destroy=function(){this.$dropdown.remove()},c}),b.define("select2/dropdown/search",["jquery","../utils"],function(a,b){function c(){}return c.prototype.render=function(b){var c=b.call(this),d=a('');return this.$searchContainer=d,this.$search=d.find("input"),c.prepend(d),c},c.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),this.$search.on("keydown",function(a){e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented()}),this.$search.on("input",function(b){a(this).off("keyup")}),this.$search.on("keyup input",function(a){e.handleSearch(a)}),c.on("open",function(){e.$search.attr("tabindex",0),e.$search.focus(),window.setTimeout(function(){e.$search.focus()},0)}),c.on("close",function(){e.$search.attr("tabindex",-1),e.$search.val("")}),c.on("focus",function(){c.isOpen()||e.$search.focus()}),c.on("results:all",function(a){if(null==a.query.term||""===a.query.term){e.showSearch(a)?e.$searchContainer.removeClass("select2-search--hide"):e.$searchContainer.addClass("select2-search--hide")}})},c.prototype.handleSearch=function(a){if(!this._keyUpPrevented){var b=this.$search.val();this.trigger("query",{term:b})}this._keyUpPrevented=!1},c.prototype.showSearch=function(a,b){return!0},c}),b.define("select2/dropdown/hidePlaceholder",[],function(){function a(a,b,c,d){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c,d)}return a.prototype.append=function(a,b){b.results=this.removePlaceholder(b.results),a.call(this,b)},a.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},a.prototype.removePlaceholder=function(a,b){for(var c=b.slice(0),d=b.length-1;d>=0;d--){var e=b[d];this.placeholder.id===e.id&&c.splice(d,1)}return c},a}),b.define("select2/dropdown/infiniteScroll",["jquery"],function(a){function b(a,b,c,d){this.lastParams={},a.call(this,b,c,d),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return b.prototype.append=function(a,b){this.$loadingMore.remove(),this.loading=!1,a.call(this,b),this.showLoadingMore(b)&&this.$results.append(this.$loadingMore)},b.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),c.on("query",function(a){e.lastParams=a,e.loading=!0}),c.on("query:append",function(a){e.lastParams=a,e.loading=!0}),this.$results.on("scroll",function(){var b=a.contains(document.documentElement,e.$loadingMore[0]);if(!e.loading&&b){e.$results.offset().top+e.$results.outerHeight(!1)+50>=e.$loadingMore.offset().top+e.$loadingMore.outerHeight(!1)&&e.loadMore()}})},b.prototype.loadMore=function(){this.loading=!0;var b=a.extend({},{page:1},this.lastParams);b.page++,this.trigger("query:append",b)},b.prototype.showLoadingMore=function(a,b){return b.pagination&&b.pagination.more},b.prototype.createLoadingMore=function(){var b=a(''),c=this.options.get("translations").get("loadingMore");return b.html(c(this.lastParams)),b},b}),b.define("select2/dropdown/attachBody",["jquery","../utils"],function(a,b){function c(b,c,d){this.$dropdownParent=d.get("dropdownParent")||a(document.body),b.call(this,c,d)}return c.prototype.bind=function(a,b,c){var d=this,e=!1;a.call(this,b,c),b.on("open",function(){d._showDropdown(),d._attachPositioningHandler(b),e||(e=!0,b.on("results:all",function(){d._positionDropdown(),d._resizeDropdown()}),b.on("results:append",function(){d._positionDropdown(),d._resizeDropdown()}))}),b.on("close",function(){d._hideDropdown(),d._detachPositioningHandler(b)}),this.$dropdownContainer.on("mousedown",function(a){a.stopPropagation()})},c.prototype.destroy=function(a){a.call(this),this.$dropdownContainer.remove()},c.prototype.position=function(a,b,c){b.attr("class",c.attr("class")),b.removeClass("select2"),b.addClass("select2-container--open"),b.css({position:"absolute",top:-999999}),this.$container=c},c.prototype.render=function(b){var c=a(""),d=b.call(this);return c.append(d),this.$dropdownContainer=c,c},c.prototype._hideDropdown=function(a){this.$dropdownContainer.detach()},c.prototype._attachPositioningHandler=function(c,d){var e=this,f="scroll.select2."+d.id,g="resize.select2."+d.id,h="orientationchange.select2."+d.id,i=this.$container.parents().filter(b.hasScroll);i.each(function(){a(this).data("select2-scroll-position",{x:a(this).scrollLeft(),y:a(this).scrollTop()})}),i.on(f,function(b){var c=a(this).data("select2-scroll-position");a(this).scrollTop(c.y)}),a(window).on(f+" "+g+" "+h,function(a){e._positionDropdown(),e._resizeDropdown()})},c.prototype._detachPositioningHandler=function(c,d){var e="scroll.select2."+d.id,f="resize.select2."+d.id,g="orientationchange.select2."+d.id;this.$container.parents().filter(b.hasScroll).off(e),a(window).off(e+" "+f+" "+g)},c.prototype._positionDropdown=function(){var b=a(window),c=this.$dropdown.hasClass("select2-dropdown--above"),d=this.$dropdown.hasClass("select2-dropdown--below"),e=null,f=this.$container.offset();f.bottom=f.top+this.$container.outerHeight(!1);var g={height:this.$container.outerHeight(!1)};g.top=f.top,g.bottom=f.top+g.height;var h={height:this.$dropdown.outerHeight(!1)},i={top:b.scrollTop(),bottom:b.scrollTop()+b.height()},j=i.topf.bottom+h.height,l={left:f.left,top:g.bottom},m=this.$dropdownParent;"static"===m.css("position")&&(m=m.offsetParent());var n=m.offset();l.top-=n.top,l.left-=n.left,c||d||(e="below"),k||!j||c?!j&&k&&c&&(e="below"):e="above",("above"==e||c&&"below"!==e)&&(l.top=g.top-n.top-h.height),null!=e&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+e),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+e)),this.$dropdownContainer.css(l)},c.prototype._resizeDropdown=function(){var a={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(a.minWidth=a.width,a.position="relative",a.width="auto"),this.$dropdown.css(a)},c.prototype._showDropdown=function(a){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},c}),b.define("select2/dropdown/minimumResultsForSearch",[],function(){function a(b){for(var c=0,d=0;d0&&(l.dataAdapter=j.Decorate(l.dataAdapter,r)),l.maximumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,s)),l.maximumSelectionLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,t)),l.tags&&(l.dataAdapter=j.Decorate(l.dataAdapter,p)),null==l.tokenSeparators&&null==l.tokenizer||(l.dataAdapter=j.Decorate(l.dataAdapter,q)),null!=l.query){var C=b(l.amdBase+"compat/query");l.dataAdapter=j.Decorate(l.dataAdapter,C)}if(null!=l.initSelection){var D=b(l.amdBase+"compat/initSelection");l.dataAdapter=j.Decorate(l.dataAdapter,D)}}if(null==l.resultsAdapter&&(l.resultsAdapter=c,null!=l.ajax&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,x)),null!=l.placeholder&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,w)),l.selectOnClose&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,A))),null==l.dropdownAdapter){if(l.multiple)l.dropdownAdapter=u;else{var E=j.Decorate(u,v);l.dropdownAdapter=E}if(0!==l.minimumResultsForSearch&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,z)),l.closeOnSelect&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,B)),null!=l.dropdownCssClass||null!=l.dropdownCss||null!=l.adaptDropdownCssClass){var F=b(l.amdBase+"compat/dropdownCss");l.dropdownAdapter=j.Decorate(l.dropdownAdapter,F)}l.dropdownAdapter=j.Decorate(l.dropdownAdapter,y)}if(null==l.selectionAdapter){if(l.multiple?l.selectionAdapter=e:l.selectionAdapter=d,null!=l.placeholder&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,g)),l.multiple&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,h)),null!=l.containerCssClass||null!=l.containerCss||null!=l.adaptContainerCssClass){var G=b(l.amdBase+"compat/containerCss");l.selectionAdapter=j.Decorate(l.selectionAdapter,G)}l.selectionAdapter=j.Decorate(l.selectionAdapter,i)}if("string"==typeof l.language)if(l.language.indexOf("-")>0){var H=l.language.split("-"),I=H[0];l.language=[l.language,I]}else l.language=[l.language];if(a.isArray(l.language)){var J=new k;l.language.push("en");for(var K=l.language,L=0;L0){for(var f=a.extend(!0,{},e),g=e.children.length-1;g>=0;g--){null==c(d,e.children[g])&&f.children.splice(g,1)}return f.children.length>0?f:c(d,f)}var h=b(e.text).toUpperCase(),i=b(d.term).toUpperCase();return h.indexOf(i)>-1?e:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:j.escapeMarkup,language:C,matcher:c,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(a){return a},templateResult:function(a){return a.text},templateSelection:function(a){return a.text},theme:"default",width:"resolve"}},D.prototype.set=function(b,c){var d=a.camelCase(b),e={};e[d]=c;var f=j._convertData(e);a.extend(this.defaults,f)},new D}),b.define("select2/options",["require","jquery","./defaults","./utils"],function(a,b,c,d){function e(b,e){if(this.options=b,null!=e&&this.fromElement(e),this.options=c.apply(this.options),e&&e.is("input")){var f=a(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=d.Decorate(this.options.dataAdapter,f)}}return e.prototype.fromElement=function(a){var c=["select2"];null==this.options.multiple&&(this.options.multiple=a.prop("multiple")),null==this.options.disabled&&(this.options.disabled=a.prop("disabled")),null==this.options.language&&(a.prop("lang")?this.options.language=a.prop("lang").toLowerCase():a.closest("[lang]").prop("lang")&&(this.options.language=a.closest("[lang]").prop("lang"))),null==this.options.dir&&(a.prop("dir")?this.options.dir=a.prop("dir"):a.closest("[dir]").prop("dir")?this.options.dir=a.closest("[dir]").prop("dir"):this.options.dir="ltr"),a.prop("disabled",this.options.disabled),a.prop("multiple",this.options.multiple),a.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),a.data("data",a.data("select2Tags")),a.data("tags",!0)),a.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),a.attr("ajax--url",a.data("ajaxUrl")),a.data("ajax--url",a.data("ajaxUrl")));var e={};e=b.fn.jquery&&"1."==b.fn.jquery.substr(0,2)&&a[0].dataset?b.extend(!0,{},a[0].dataset,a.data()):a.data();var f=b.extend(!0,{},e);f=d._convertData(f);for(var g in f)b.inArray(g,c)>-1||(b.isPlainObject(this.options[g])?b.extend(this.options[g],f[g]):this.options[g]=f[g]);return this},e.prototype.get=function(a){return this.options[a]},e.prototype.set=function(a,b){this.options[a]=b},e}),b.define("select2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){var e=function(a,c){null!=a.data("select2")&&a.data("select2").destroy(),this.$element=a,this.id=this._generateId(a),c=c||{},this.options=new b(c,a),e.__super__.constructor.call(this);var d=a.attr("tabindex")||0;a.data("old-tabindex",d),a.attr("tabindex","-1");var f=this.options.get("dataAdapter");this.dataAdapter=new f(a,this.options);var g=this.render();this._placeContainer(g);var h=this.options.get("selectionAdapter");this.selection=new h(a,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,g);var i=this.options.get("dropdownAdapter");this.dropdown=new i(a,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,g);var j=this.options.get("resultsAdapter");this.results=new j(a,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var k=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(a){k.trigger("selection:update",{data:a})}),a.addClass("select2-hidden-accessible"),a.attr("aria-hidden","true"),this._syncAttributes(),a.data("select2",this)};return c.Extend(e,c.Observable),e.prototype._generateId=function(a){var b="";return b=null!=a.attr("id")?a.attr("id"):null!=a.attr("name")?a.attr("name")+"-"+c.generateChars(2):c.generateChars(4),b=b.replace(/(:|\.|\[|\]|,)/g,""),b="select2-"+b},e.prototype._placeContainer=function(a){a.insertAfter(this.$element);var b=this._resolveWidth(this.$element,this.options.get("width"));null!=b&&a.css("width",b)},e.prototype._resolveWidth=function(a,b){var c=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==b){var d=this._resolveWidth(a,"style");return null!=d?d:this._resolveWidth(a,"element")}if("element"==b){var e=a.outerWidth(!1);return e<=0?"auto":e+"px"}if("style"==b){var f=a.attr("style");if("string"!=typeof f)return null;for(var g=f.split(";"),h=0,i=g.length;h=1)return k[1]}return null}return b},e.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},e.prototype._registerDomEvents=function(){var b=this;this.$element.on("change.select2",function(){b.dataAdapter.current(function(a){b.trigger("selection:update",{data:a})})}),this.$element.on("focus.select2",function(a){b.trigger("focus",a)}),this._syncA=c.bind(this._syncAttributes,this),this._syncS=c.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var d=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=d?(this._observer=new d(function(c){a.each(c,b._syncA),a.each(c,b._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",b._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",b._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",b._syncS,!1))},e.prototype._registerDataEvents=function(){var a=this;this.dataAdapter.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerSelectionEvents=function(){var b=this,c=["toggle","focus"];this.selection.on("toggle",function(){b.toggleDropdown()}),this.selection.on("focus",function(a){b.focus(a)}),this.selection.on("*",function(d,e){-1===a.inArray(d,c)&&b.trigger(d,e)})},e.prototype._registerDropdownEvents=function(){var a=this;this.dropdown.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerResultsEvents=function(){var a=this;this.results.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerEvents=function(){var a=this;this.on("open",function(){a.$container.addClass("select2-container--open")}),this.on("close",function(){a.$container.removeClass("select2-container--open")}),this.on("enable",function(){a.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){a.$container.addClass("select2-container--disabled")}),this.on("blur",function(){a.$container.removeClass("select2-container--focus")}),this.on("query",function(b){a.isOpen()||a.trigger("open",{}),this.dataAdapter.query(b,function(c){a.trigger("results:all",{data:c,query:b})})}),this.on("query:append",function(b){this.dataAdapter.query(b,function(c){a.trigger("results:append",{data:c,query:b})})}),this.on("keypress",function(b){var c=b.which;a.isOpen()?c===d.ESC||c===d.TAB||c===d.UP&&b.altKey?(a.close(),b.preventDefault()):c===d.ENTER?(a.trigger("results:select",{}),b.preventDefault()):c===d.SPACE&&b.ctrlKey?(a.trigger("results:toggle",{}),b.preventDefault()):c===d.UP?(a.trigger("results:previous",{}),b.preventDefault()):c===d.DOWN&&(a.trigger("results:next",{}),b.preventDefault()):(c===d.ENTER||c===d.SPACE||c===d.DOWN&&b.altKey)&&(a.open(),b.preventDefault())})},e.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},e.prototype._syncSubtree=function(a,b){var c=!1,d=this;if(!a||!a.target||"OPTION"===a.target.nodeName||"OPTGROUP"===a.target.nodeName){if(b)if(b.addedNodes&&b.addedNodes.length>0)for(var e=0;e0&&(c=!0);else c=!0;c&&this.dataAdapter.current(function(a){d.trigger("selection:update",{data:a})})}},e.prototype.trigger=function(a,b){var c=e.__super__.trigger,d={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===b&&(b={}),a in d){var f=d[a],g={prevented:!1,name:a,args:b};if(c.call(this,f,g),g.prevented)return void(b.prevented=!0)}c.call(this,a,b)},e.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},e.prototype.open=function(){this.isOpen()||this.trigger("query",{})},e.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},e.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},e.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},e.prototype.focus=function(a){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},e.prototype.enable=function(a){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=a&&0!==a.length||(a=[!0]);var b=!a[0];this.$element.prop("disabled",b)},e.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var a=[];return this.dataAdapter.current(function(b){a=b}),a},e.prototype.val=function(b){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==b||0===b.length)return this.$element.val();var c=b[0];a.isArray(c)&&(c=a.map(c,function(a){return a.toString()})),this.$element.val(c).trigger("change")},e.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},e.prototype.render=function(){var b=a('');return b.attr("dir",this.options.get("dir")),this.$container=b,this.$container.addClass("select2-container--"+this.options.get("theme")),b.data("element",this.$element),b},e}),b.define("jquery-mousewheel",["jquery"],function(a){return a}),b.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(a,b,c,d){if(null==a.fn.select2){var e=["open","close","destroy"];a.fn.select2=function(b){if("object"==typeof(b=b||{}))return this.each(function(){var d=a.extend(!0,{},b);new c(a(this),d)}),this;if("string"==typeof b){var d,f=Array.prototype.slice.call(arguments,1);return this.each(function(){var c=a(this).data("select2");null==c&&window.console&&console.error&&console.error("The select2('"+b+"') method was called on an element that is not using Select2."),d=c[b].apply(c,f)}),a.inArray(b,e)>-1?this:d}throw new Error("Invalid arguments for Select2: "+b)}}return null==a.fn.select2.defaults&&(a.fn.select2.defaults=d),c}),{define:b.define,require:b.require}}(),c=b.require("jquery.select2");return a.fn.select2.amd=b,c});
\ No newline at end of file
diff --git a/lib/classes/class-form-fields-generator.php b/lib/classes/class-form-fields-generator.php
new file mode 100755
index 0000000..a686353
--- /dev/null
+++ b/lib/classes/class-form-fields-generator.php
@@ -0,0 +1,10038 @@
+
+ data-depends="[]"
+ id="field-wrapper-" class=" field-wrapper field-post-objects-wrapper
+ field-post-objects-wrapper-">
+
+ $arg):
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+ data-depends="[]"
+ id="field-wrapper-" class=" field-wrapper field-switcher-wrapper
+ field-switcher-wrapper-">
+
+
+
+
+
+
+
+
+
+ data-depends="[]"
+ id="field-wrapper-" class=" field-wrapper field-google-map-wrapper
+ field-google-map-wrapper-">
+
+ $name):
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ data-depends="[]"
+ id="field-wrapper-" class=" field-wrapper field-border-wrapper
+ field-border-wrapper-">
+
+
+ Width
+
+
+
+
+ Style
+
+
+
+ Color
+
+
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-margin-wrapper
+ field-margin-wrapper-">
+
+ $arg):
+ $name = $arg['name'];
+ $unit = $values[$index]['unit'];
+ ?>
+
+
+ ' />
+
+
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-padding-wrapper
+ field-padding-wrapper-">
+
+
+ $arg):
+ $name = $arg['name'];
+ $unit = $values[$index]['unit'];
+ ?>
+
+
+ ' />
+
+
+
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-margin-wrapper field-margin-wrapper-">
+
+
+ $arg):
+ $name = $arg['name'];
+ $unit = $values[$index]['unit'];
+ ?>
+
+
+ ' />
+
+
+
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-google-recaptcha-wrapper
+ field-google-recaptcha-wrapper-">
+
+
+
+
+
+
+
+
+
+
+
+
+ args_from_string( $args );
+
+ $value = isset( $option['value'] ) ? $option['value'] : '';
+ $value = !empty($value) ? $value : $default;
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-img-select-wrapper
+ field-img-select-wrapper-">
+
+
+
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-submit-wrapper
+ field-submit-wrapper-">
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-nonce-wrapper
+ field-nonce-wrapper-">
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-color-wrapper
+ field-color-wrapper-">
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-email-wrapper
+ field-email-wrapper-">
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-password-wrapper
+ field-password-wrapper-">
+
+
+
+
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-search-wrapper
+ field-search-wrapper-">
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-month-wrapper
+ field-month-wrapper-">
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-date-wrapper
+ field-date-wrapper-">
+
+
+
+
+
+ data-depends="[]" class=" field-wrapper field-url-wrapper field-url-wrapper-">
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-time-wrapper
+ field-time-wrapper-">
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-tel-wrapper field-tel-wrapper-">
+
+
+
+
+
+
+
+ data-depends="[]"
+ id="field-wrapper-" class=" field-wrapper field-text-wrapper
+ field-text-wrapper-">
+
+
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-hidden-wrapper
+ field-hidden-wrapper-">
+
+
+
+
+ ';
+ $sortable = isset( $option['sortable'] ) ? $option['sortable'] : true;
+ $default = isset( $option['default'] ) ? $option['default'] : array();
+
+ $values = isset( $option['value'] ) ? $option['value'] : array();
+ $values = !empty($values) ? $values : $default;
+ $limit = !empty( $option['limit'] ) ? $option['limit'] : '';
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-text-multi-wrapper
+ field-text-multi-wrapper-">
+
+
+
+
+
+
+
+ data-depends="[]"
+ id="field-wrapper-" class=" field-wrapper field-textarea-wrapper field-textarea-wrapper-">
+
+
+
+
+
+
+ true,
+ 'mode' => "javascript",
+ );
+
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-code-wrapper
+ field-code-wrapper-">
+
+
+
+
+
+ args_from_string( $args );
+
+ $value = isset( $option['value'] ) ? $option['value'] : array();
+ $value = !empty($value) ? $value : $default;
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+ ob_start();
+ ?>
+ data-depends="[]"
+ id="field-wrapper-" class=" field-wrapper field-checkbox-wrapper
+ field-checkbox-wrapper-">
+ $argName ):
+ $checked = ( $key == $value ) ? "checked" : "";
+ ?>
+
+
+
+
+
+
+ args_from_string( $args );
+
+ $value = isset( $option['value'] ) ? $option['value'] : array();
+ $value = !empty($value) ? $value : $default;
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name.'[]' : $id.'[]';
+
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-checkbox-wrapper
+ field-checkbox-wrapper-">
+ $argName ):
+ $checked = is_array( $value ) && in_array( $key, $value ) ? "checked" : "";
+ ?>
+
+
+
+
+
+ args_from_string( $args );
+
+ $value = isset( $option['value'] ) ? $option['value'] : '';
+ $value = !empty($value) ? $value : $default;
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-radio-wrapper
+ field-radio-wrapper-">
+ $argName ):
+ $checked = ( $key == $value ) ? "checked" : "";
+ ?>
+
+
+
+
+
+ args_from_string( $args );
+ $default = isset( $option['default'] ) ? $option['default'] : "";
+ $multiple = isset( $option['multiple'] ) ? $option['multiple'] : false;
+ $limit = !empty( $option['limit'] ) ? $option['limit'] : '';
+ $value = isset( $option['value'] ) ? $option['value'] : '';
+ $value = !empty($value) ? $value : $default;
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-select-wrapper
+ field-select-wrapper-">
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-range-wrapper
+ field-range-wrapper-">
+
' name='' id='' value='' />
+
+
+
+
+
+
+ args_from_string( $args );
+
+ $value = isset( $option['value'] ) ? $option['value'] : "";
+ $value = !empty($value) ? $value : $default;
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-switch-wrapper
+ field-switch-wrapper-">
+ $argName ):
+ $checked = ( $key == $value ) ? "checked" : "";
+ ?>
+
+
+
+
+ args_from_string( $args );
+
+ $value = isset( $option['value'] ) ? $option['value'] : array();
+ $value = !empty($value) ? $value : $default;
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-switch-multi-wrapper
+ field-switch-multi-wrapper-">
+ $argName ):
+ $checked = is_array( $value ) && in_array( $key, $value ) ? "checked" : "";
+ ?>
+
+
+
+ args_from_string( $args );
+
+ $value = isset( $option['value'] ) ? $option['value'] : "";
+ $value = !empty($value) ? $value : $default;
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-switch-img-wrapper
+ field-switch-img-wrapper-">
+ $arg ):
+ $src = isset( $arg['src'] ) ? $arg['src'] : "";
+
+ $checked = ( $key == $value ) ? "checked" : "";
+ ?>
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-time-format-wrapper
+ field-time-format-wrapper-">
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-date-format-wrapper
+ field-date-format-wrapper-">
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-datepicker-wrapper
+ field-datepicker-wrapper-">
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-colorpicker-wrapper
+ field-colorpicker-wrapper-">
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-colorpicker-multi-wrapper
+ field-colorpicker-multi-wrapper-">
+
+
+
+
+
+
+
+ '#1B2A41','hover' => '#3F3244','active' => '#60495A','visited' => '#7D8CA3' );
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-link-color-wrapper
+ field-link-color-wrapper-">
+ $value):
+ ?>
+
+ $value):
+ ?>
+
+
+
+
+
+
+ args_from_string( $args );
+
+ $value = isset( $option['value'] ) ? $option['value'] : "";
+ $values = !empty($value) ? $value : $default;
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-user-multi-wrapper
+ field-user-multi-wrapper-">
+
+
+
+
+
+ $iconTitle):
+ $user_data = get_user_by('ID',$user_id);
+ $get_avatar_url = get_avatar_url($user_id,array('size'=>'60'));
+ ?>
+ -
+
+
+
+
+
+
+
+
+
+
+ args_from_string( $args );
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-icon-wrapper
+ field-icon-wrapper-">
+
+
+
+
+
+
+
+
+ $iconTitle):
+ ?>
+
+
+
+
+
+
+
+ args_from_string( $args );
+
+ $limit = isset( $option['limit'] ) ? $option['limit'] : "";
+ $value = isset( $option['value'] ) ? $option['value'] : "";
+ $values = !empty($value) ? $value : $default;
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-icon-multi-wrapper
+ field-icon-multi-wrapper-">
+
+
+
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-number-wrapper
+ field-number-wrapper-">
+
+
+
+
+ $field_name);
+
+ $value = isset( $option['value'] ) ? $option['value'] : "";
+ $value = !empty($value) ? $value : $default;
+
+ $field_id = $id;
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-wp_editor-wrapper
+ field-wp_editor-wrapper-">
+
+
+
+
+ args_from_string( $args );
+ $default = isset( $option['default'] ) ? $option['default'] : "";
+ $multiple = isset( $option['multiple'] ) ? $option['multiple'] : false;
+
+ $value = isset( $option['value'] ) ? $option['value'] : '';
+ $value = !empty($value) ? $value : $default;
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+ if($multiple):
+ $value = !empty($value) ? $value : array();
+ endif;
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-select2-wrapper
+ field-select2-wrapper-">
+
+
+
+
+ $name ):
+
+ if( $multiple ) $selected = in_array( $key, $value ) ? "selected" : "";
+ else $selected = $value == $key ? "selected" : "";
+ ?>
+
+
+
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-option-group-tabs-wrapper
+ field-option-group-tabs-wrapper-">
+
+
+
+
+
+
+
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-option-group-tabs-wrapper
+ field-option-group-tabs-wrapper-">
+
+
+ $value ):
+ $title = $value['title'];
+ ?>
+
+
+
+
+
+ $value ):
+ $title = $value['title'];
+ $link = $value['link'];
+ $options = $value['options'];
+ ?>
+
+
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-faq-wrapper
+ field-faq-wrapper-">
+
+ $value ):
+ $title = $value['title'];
+ $link = $value['link'];
+ $options = $value['options'];
+ ?>
+
+
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-faq-wrapper
+ field-faq-wrapper-">
+
+ $value ):
+ $title = $value['title'];
+ $link = $value['link'];
+ $content = $value['content'];
+ ?>
+
+
+
+
+
+
+ '100%','992px'=>'50%', '1200px'=>'30%', );
+ $heights = isset( $option['height'] ) ? $option['height'] : array('768px'=>'auto','992px'=>'250px', '1200px'=>'250px', );
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-grid-wrapper
+ field-grid-wrapper-">
+ $grid_item){
+ $title = isset($grid_item['title']) ? $grid_item['title'] : '';
+ $link = isset($grid_item['link']) ? $grid_item['link'] : '';
+ $thumb = isset($grid_item['thumb']) ? $grid_item['thumb'] : '';
+ ?>
+
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-color-sets-wrapper
+ field-color-sets-wrapper-">
+ $set ):
+
+ //var_dump($value);
+
+ $checked = ( $key == $value ) ? "checked" : "";
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-color-palette-wrapper
+ field-color-palette-wrapper-">
+ $color ):
+
+ $checked = ( $key == $value ) ? "checked" : "";
+ ?>
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-color-palette-multi-wrapper
+ field-color-palette-multi-wrapper-">
+ $color ):
+ $checked = is_array( $value ) && in_array( $key, $value ) ? "checked" : "";
+ ?>
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-media-wrapper
+ field-media-wrapper-">
+
+
+
+
+
+
+
+
+ ';
+ $default = isset( $option['default'] ) ? $option['default'] : '';
+ $values = isset( $option['value'] ) ? $option['value'] : '';
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+
+ ob_start();
+ wp_enqueue_media();
+
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-media-multi-wrapper
+ field-media-multi-wrapper-">
+
+
+
+
+
+
+
+ data-depends="[]"
+ id="field-wrapper-" class=" field-wrapper field-custom-html-wrapper
+ field-custom-html-wrapper-">
+
+
+
+
+ ';
+ $limit = isset( $option['limit'] ) ? $option['limit'] : '';
+ $args = isset( $option['args'] ) ? $option['args'] : '';
+ $args = is_array( $args ) ? $args : $this->args_from_string( $args );
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+
+ $new_title = explode('/',$title_field);
+ $title_field = $new_title;
+
+ foreach ($fields as $key => $value) {
+ # code...
+ $new[$key]['type'] = $fields[$key]['type'];
+ $new[$key]['default'] = isset($fields[$key]['default']) ? $fields[$key]['default'] : "";
+ $new[$key]['item_id'] = $fields[$key]['item_id'];
+ $new[$key]['name'] = $fields[$key]['name'];
+
+ $define_args = isset($fields[$key]['args']) ? $fields[$key]['args'] : "";
+
+ $new[$key]['args'] = $this->args_from_string( $define_args );
+
+ }
+ $fields = $new;
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+ endif;
+ ob_start();
+ ?>
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-repeatable-wrapper
+ field-repeatable-wrapper-">
+
+
+ $val):
+ $title_field_val = !empty($title_field) ? $this->get_form_title($title_field,$val) : '==> Click to Expand';
+ ?>
+
+
+
+
+ $field):
+ $type = $field['type'];
+ $item_id = $field['item_id'];
+ $name = $field['name'];
+ $title_field_class = ($title_field == $field_index) ? 'title-field':'';
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ get_rep_taxonomies_array( $args ) as $argIndex => $argName):
+ $selected = ($argIndex == $value) ? 'selected' : ''; ?> get_pages_array();
+ if( strpos( $string, 'POSTS_IDS_ARRAY' ) !== false ) return $this->get_posts_array();
+ if( strpos( $string, 'POST_TYPES_ARRAY' ) !== false ) return $this->get_post_types_array();
+ if( strpos( $string, 'TAX_' ) !== false ) return $this->get_taxonomies_array( $string );
+ if( strpos( $string, 'TAXN_' ) !== false ) return $this->get_rep_taxonomies_array( $string );
+ if( strpos( $string, 'CPT_' ) !== false ) return $this->get_cpt_array( $string );
+ if( strpos( $string, 'USER_ROLES' ) !== false ) return $this->get_user_roles_array();
+ if( strpos( $string, 'USER_IDS_ARRAY' ) !== false ) return $this->get_user_ids_array();
+ if( strpos( $string, 'MENUS' ) !== false ) return $this->get_menus_array();
+ if( strpos( $string, 'SIDEBARS_ARRAY' ) !== false ) return $this->get_sidebars_array();
+ if( strpos( $string, 'THUMB_SIEZS_ARRAY' ) !== false ) return $this->get_thumb_sizes_array();
+ if( strpos( $string, 'FONTAWESOME_ARRAY' ) !== false ) return $this->get_font_aws_array();
+ return array();
+ }
+
+
+
+
+ public function get_rep_taxonomies_array( $string ){
+
+ $taxonomies = array();
+
+ preg_match_all( "/\%([^\]]*)\%/", $string, $matches );
+
+ if( isset( $matches[1][0] ) ) $taxonomy = $matches[1][0];
+ else throw new Pick_error('Invalid taxonomy declaration !');
+
+ if( ! taxonomy_exists( $taxonomy ) ) throw new Pick_error("Taxonomy $taxonomy doesn't exists !");
+
+ $terms = get_terms( $taxonomy, array(
+ 'hide_empty' => false,
+ ) );
+
+ foreach( $terms as $term ) $taxonomies[ $term->name ] = $term->name;
+
+ return $taxonomies;
+ }
+
+
+
+ public function get_taxonomies_array( $string ){
+ $taxonomies = array();
+ preg_match_all( "/\%([^\]]*)\%/", $string, $matches );
+ if( isset( $matches[1][0] ) ) $taxonomy = $matches[1][0];
+ else throw new Pick_error('Invalid taxonomy declaration !');
+ if( ! taxonomy_exists( $taxonomy ) ) throw new Pick_error("Taxonomy $taxonomy doesn't exists !");
+ $terms = get_terms( $taxonomy, array(
+ 'hide_empty' => false,
+ ) );
+ foreach( $terms as $term ) $taxonomies[ $term->term_id ] = $term->name;
+ return $taxonomies;
+ }
+
+ public function get_cpt_array( $string ){
+ preg_match_all( "/\%([^\]]*)\%/", $string, $matches );
+ $cpt_name = $matches[1][0];
+ $defaults = array(
+ 'numberposts' => -1,
+ 'post_type' => $cpt_name,
+ );
+ $cpt_arr = get_posts($defaults);
+ $cpt = array();
+ foreach ($cpt_arr as $_cpt_arr) {
+ $cpt[$_cpt_arr->ID] = $_cpt_arr->post_title;
+ }
+ return $cpt;
+ }
+
+ public function get_user_ids_array(){
+ $user_ids = array();
+ $users = get_users();
+ foreach( $users as $user ) $user_ids[ $user->ID ] = $user->display_name. '(#'.$user->ID.')';
+ return apply_filters( 'USER_IDS_ARRAY', $user_ids );
+ }
+
+
+ public function get_pages_array(){
+ $pages_array = array();
+ foreach( get_pages() as $page ) $pages_array[ $page->ID ] = $page->post_title;
+ return apply_filters( 'PAGES_IDS_ARRAY', $pages_array );
+ }
+
+ public function get_menus_array(){
+ $menus = get_registered_nav_menus();
+ return apply_filters( 'MENUS_ARRAY', $menus );
+ }
+
+ public function get_sidebars_array(){
+
+ global $wp_registered_sidebars;
+ $sidebars = $wp_registered_sidebars;
+
+ foreach ($sidebars as $index => $sidebar){
+
+ $sidebars_name[$index] = $sidebar['name'];
+ }
+
+
+ return apply_filters( 'SIDEBARS_ARRAY', $sidebars_name );
+ }
+
+ public function get_user_roles_array(){
+ require_once ABSPATH . 'wp-admin/includes/user.php';
+
+ $roles = get_editable_roles();
+
+ foreach ($roles as $index => $data){
+
+ $role_name[$index] = $data['name'];
+ }
+
+ return apply_filters( 'USER_ROLES', $role_name );
+ }
+
+
+
+ public function get_post_types_array(){
+
+ $post_types = get_post_types('', 'names' );
+ $pages_array = array();
+ foreach( $post_types as $index => $name ) $pages_array[ $index ] = $name;
+
+ return apply_filters( 'POST_TYPES_ARRAY', $pages_array );
+ }
+
+
+ public function get_posts_array(){
+
+ $posts_array = array();
+ foreach( get_posts(array('posts_per_page'=>-1)) as $page ) $posts_array[ $page->ID ] = $page->post_title;
+
+ return apply_filters( 'POSTS_IDS_ARRAY', $posts_array );
+ }
+
+
+ public function get_thumb_sizes_array(){
+
+ $get_intermediate_image_sizes = get_intermediate_image_sizes();
+ $get_intermediate_image_sizes = array_merge($get_intermediate_image_sizes,array('full'));
+ $thumb_sizes_array = array();
+
+ foreach( $get_intermediate_image_sizes as $key => $name ):
+ $size_key = str_replace('_', ' ',$name);
+ $size_key = str_replace('-', ' ',$size_key);
+ $size_name = ucfirst($size_key);
+ $thumb_sizes_array[$name] = $size_name;
+ endforeach;
+
+ return apply_filters( 'THUMB_SIEZS_ARRAY', $get_intermediate_image_sizes );
+ }
+
+
+
+
+ public function get_font_aws_array(){
+
+ $fonts_arr = array (
+ 'fab fa-500px' => __( '500px', 'buildr' ),
+ 'fab fa-accessible-icon' => __( 'accessible-icon', 'buildr' ),
+ 'fab fa-accusoft' => __( 'accusoft', 'buildr' ),
+ 'fas fa-address-book' => __( 'address-book', 'buildr' ),
+ 'far fa-address-book' => __( 'address-book', 'buildr' ),
+ 'fas fa-address-card' => __( 'address-card', 'buildr' ),
+ 'far fa-address-card' => __( 'address-card', 'buildr' ),
+ 'fas fa-adjust' => __( 'adjust', 'buildr' ),
+ 'fab fa-adn' => __( 'adn', 'buildr' ),
+ 'fab fa-adversal' => __( 'adversal', 'buildr' ),
+ 'fab fa-affiliatetheme' => __( 'affiliatetheme', 'buildr' ),
+ 'fab fa-algolia' => __( 'algolia', 'buildr' ),
+ 'fas fa-align-center' => __( 'align-center', 'buildr' ),
+ 'fas fa-align-justify' => __( 'align-justify', 'buildr' ),
+ 'fas fa-align-left' => __( 'align-left', 'buildr' ),
+ 'fas fa-align-right' => __( 'align-right', 'buildr' ),
+ 'fas fa-allergies' => __( 'allergies', 'buildr' ),
+ 'fab fa-amazon' => __( 'amazon', 'buildr' ),
+ 'fab fa-amazon-pay' => __( 'amazon-pay', 'buildr' ),
+ 'fas fa-ambulance' => __( 'ambulance', 'buildr' ),
+ 'fas fa-american-sign-language-interpreting' => __( 'american-sign-language-interpreting', 'buildr' ),
+ 'fab fa-amilia' => __( 'amilia', 'buildr' ),
+ 'fas fa-anchor' => __( 'anchor', 'buildr' ),
+ 'fab fa-android' => __( 'android', 'buildr' ),
+ 'fab fa-angellist' => __( 'angellist', 'buildr' ),
+ 'fas fa-angle-double-down' => __( 'angle-double-down', 'buildr' ),
+ 'fas fa-angle-double-left' => __( 'angle-double-left', 'buildr' ),
+ 'fas fa-angle-double-right' => __( 'angle-double-right', 'buildr' ),
+ 'fas fa-angle-double-up' => __( 'angle-double-up', 'buildr' ),
+ 'fas fa-angle-down' => __( 'angle-down', 'buildr' ),
+ 'fas fa-angle-left' => __( 'angle-left', 'buildr' ),
+ 'fas fa-angle-right' => __( 'angle-right', 'buildr' ),
+ 'fas fa-angle-up' => __( 'angle-up', 'buildr' ),
+ 'fab fa-angrycreative' => __( 'angrycreative', 'buildr' ),
+ 'fab fa-angular' => __( 'angular', 'buildr' ),
+ 'fab fa-app-store' => __( 'app-store', 'buildr' ),
+ 'fab fa-app-store-ios' => __( 'app-store-ios', 'buildr' ),
+ 'fab fa-apper' => __( 'apper', 'buildr' ),
+ 'fab fa-apple' => __( 'apple', 'buildr' ),
+ 'fab fa-apple-pay' => __( 'apple-pay', 'buildr' ),
+ 'fas fa-archive' => __( 'archive', 'buildr' ),
+ 'fas fa-arrow-alt-circle-down' => __( 'arrow-alt-circle-down', 'buildr' ),
+ 'far fa-arrow-alt-circle-down' => __( 'arrow-alt-circle-down', 'buildr' ),
+ 'fas fa-arrow-alt-circle-left' => __( 'arrow-alt-circle-left', 'buildr' ),
+ 'far fa-arrow-alt-circle-left' => __( 'arrow-alt-circle-left', 'buildr' ),
+ 'fas fa-arrow-alt-circle-right' => __( 'arrow-alt-circle-right', 'buildr' ),
+ 'far fa-arrow-alt-circle-right' => __( 'arrow-alt-circle-right', 'buildr' ),
+ 'fas fa-arrow-alt-circle-up' => __( 'arrow-alt-circle-up', 'buildr' ),
+ 'far fa-arrow-alt-circle-up' => __( 'arrow-alt-circle-up', 'buildr' ),
+ 'fas fa-arrow-circle-down' => __( 'arrow-circle-down', 'buildr' ),
+ 'fas fa-arrow-circle-left' => __( 'arrow-circle-left', 'buildr' ),
+ 'fas fa-arrow-circle-right' => __( 'arrow-circle-right', 'buildr' ),
+ 'fas fa-arrow-circle-up' => __( 'arrow-circle-up', 'buildr' ),
+ 'fas fa-arrow-down' => __( 'arrow-down', 'buildr' ),
+ 'fas fa-arrow-left' => __( 'arrow-left', 'buildr' ),
+ 'fas fa-arrow-right' => __( 'arrow-right', 'buildr' ),
+ 'fas fa-arrow-up' => __( 'arrow-up', 'buildr' ),
+ 'fas fa-arrows-alt' => __( 'arrows-alt', 'buildr' ),
+ 'fas fa-arrows-alt-h' => __( 'arrows-alt-h', 'buildr' ),
+ 'fas fa-arrows-alt-v' => __( 'arrows-alt-v', 'buildr' ),
+ 'fas fa-assistive-listening-systems' => __( 'assistive-listening-systems', 'buildr' ),
+ 'fas fa-asterisk' => __( 'asterisk', 'buildr' ),
+ 'fab fa-asymmetrik' => __( 'asymmetrik', 'buildr' ),
+ 'fas fa-at' => __( 'at', 'buildr' ),
+ 'fab fa-audible' => __( 'audible', 'buildr' ),
+ 'fas fa-audio-description' => __( 'audio-description', 'buildr' ),
+ 'fab fa-autoprefixer' => __( 'autoprefixer', 'buildr' ),
+ 'fab fa-avianex' => __( 'avianex', 'buildr' ),
+ 'fab fa-aviato' => __( 'aviato', 'buildr' ),
+ 'fab fa-aws' => __( 'aws', 'buildr' ),
+ 'fas fa-backward' => __( 'backward', 'buildr' ),
+ 'fas fa-balance-scale' => __( 'balance-scale', 'buildr' ),
+ 'fas fa-ban' => __( 'ban', 'buildr' ),
+ 'fas fa-band-aid' => __( 'band-aid', 'buildr' ),
+ 'fab fa-bandcamp' => __( 'bandcamp', 'buildr' ),
+ 'fas fa-barcode' => __( 'barcode', 'buildr' ),
+ 'fas fa-bars' => __( 'bars', 'buildr' ),
+ 'fas fa-baseball-ball' => __( 'baseball-ball', 'buildr' ),
+ 'fas fa-basketball-ball' => __( 'basketball-ball', 'buildr' ),
+ 'fas fa-bath' => __( 'bath', 'buildr' ),
+ 'fas fa-battery-empty' => __( 'battery-empty', 'buildr' ),
+ 'fas fa-battery-full' => __( 'battery-full', 'buildr' ),
+ 'fas fa-battery-half' => __( 'battery-half', 'buildr' ),
+ 'fas fa-battery-quarter' => __( 'battery-quarter', 'buildr' ),
+ 'fas fa-battery-three-quarters' => __( 'battery-three-quarters', 'buildr' ),
+ 'fas fa-bed' => __( 'bed', 'buildr' ),
+ 'fas fa-beer' => __( 'beer', 'buildr' ),
+ 'fab fa-behance' => __( 'behance', 'buildr' ),
+ 'fab fa-behance-square' => __( 'behance-square', 'buildr' ),
+ 'fas fa-bell' => __( 'bell', 'buildr' ),
+ 'far fa-bell' => __( 'bell', 'buildr' ),
+ 'fas fa-bell-slash' => __( 'bell-slash', 'buildr' ),
+ 'far fa-bell-slash' => __( 'bell-slash', 'buildr' ),
+ 'fas fa-bicycle' => __( 'bicycle', 'buildr' ),
+ 'fab fa-bimobject' => __( 'bimobject', 'buildr' ),
+ 'fas fa-binoculars' => __( 'binoculars', 'buildr' ),
+ 'fas fa-birthday-cake' => __( 'birthday-cake', 'buildr' ),
+ 'fab fa-bitbucket' => __( 'bitbucket', 'buildr' ),
+ 'fab fa-bitcoin' => __( 'bitcoin', 'buildr' ),
+ 'fab fa-bity' => __( 'bity', 'buildr' ),
+ 'fab fa-black-tie' => __( 'black-tie', 'buildr' ),
+ 'fab fa-blackberry' => __( 'blackberry', 'buildr' ),
+ 'fas fa-blind' => __( 'blind', 'buildr' ),
+ 'fab fa-blogger' => __( 'blogger', 'buildr' ),
+ 'fab fa-blogger-b' => __( 'blogger-b', 'buildr' ),
+ 'fab fa-bluetooth' => __( 'bluetooth', 'buildr' ),
+ 'fab fa-bluetooth-b' => __( 'bluetooth-b', 'buildr' ),
+ 'fas fa-bold' => __( 'bold', 'buildr' ),
+ 'fas fa-bolt' => __( 'bolt', 'buildr' ),
+ 'fas fa-bomb' => __( 'bomb', 'buildr' ),
+ 'fas fa-book' => __( 'book', 'buildr' ),
+ 'fas fa-bookmark' => __( 'bookmark', 'buildr' ),
+ 'far fa-bookmark' => __( 'bookmark', 'buildr' ),
+ 'fas fa-bowling-ball' => __( 'bowling-ball', 'buildr' ),
+ 'fas fa-box' => __( 'box', 'buildr' ),
+ 'fas fa-box-open' => __( 'box-open', 'buildr' ),
+ 'fas fa-boxes' => __( 'boxes', 'buildr' ),
+ 'fas fa-braille' => __( 'braille', 'buildr' ),
+ 'fas fa-briefcase' => __( 'briefcase', 'buildr' ),
+ 'fas fa-briefcase-medical' => __( 'briefcase-medical', 'buildr' ),
+ 'fab fa-btc' => __( 'btc', 'buildr' ),
+ 'fas fa-bug' => __( 'bug', 'buildr' ),
+ 'fas fa-building' => __( 'building', 'buildr' ),
+ 'far fa-building' => __( 'building', 'buildr' ),
+ 'fas fa-bullhorn' => __( 'bullhorn', 'buildr' ),
+ 'fas fa-bullseye' => __( 'bullseye', 'buildr' ),
+ 'fas fa-burn' => __( 'burn', 'buildr' ),
+ 'fab fa-buromobelexperte' => __( 'buromobelexperte', 'buildr' ),
+ 'fas fa-bus' => __( 'bus', 'buildr' ),
+ 'fab fa-buysellads' => __( 'buysellads', 'buildr' ),
+ 'fas fa-calculator' => __( 'calculator', 'buildr' ),
+ 'fas fa-calendar' => __( 'calendar', 'buildr' ),
+ 'far fa-calendar' => __( 'calendar', 'buildr' ),
+ 'fas fa-calendar-alt' => __( 'calendar-alt', 'buildr' ),
+ 'far fa-calendar-alt' => __( 'calendar-alt', 'buildr' ),
+ 'fas fa-calendar-check' => __( 'calendar-check', 'buildr' ),
+ 'far fa-calendar-check' => __( 'calendar-check', 'buildr' ),
+ 'fas fa-calendar-minus' => __( 'calendar-minus', 'buildr' ),
+ 'far fa-calendar-minus' => __( 'calendar-minus', 'buildr' ),
+ 'fas fa-calendar-plus' => __( 'calendar-plus', 'buildr' ),
+ 'far fa-calendar-plus' => __( 'calendar-plus', 'buildr' ),
+ 'fas fa-calendar-times' => __( 'calendar-times', 'buildr' ),
+ 'far fa-calendar-times' => __( 'calendar-times', 'buildr' ),
+ 'fas fa-camera' => __( 'camera', 'buildr' ),
+ 'fas fa-camera-retro' => __( 'camera-retro', 'buildr' ),
+ 'fas fa-capsules' => __( 'capsules', 'buildr' ),
+ 'fas fa-car' => __( 'car', 'buildr' ),
+ 'fas fa-caret-down' => __( 'caret-down', 'buildr' ),
+ 'fas fa-caret-left' => __( 'caret-left', 'buildr' ),
+ 'fas fa-caret-right' => __( 'caret-right', 'buildr' ),
+ 'fas fa-caret-square-down' => __( 'caret-square-down', 'buildr' ),
+ 'far fa-caret-square-down' => __( 'caret-square-down', 'buildr' ),
+ 'fas fa-caret-square-left' => __( 'caret-square-left', 'buildr' ),
+ 'far fa-caret-square-left' => __( 'caret-square-left', 'buildr' ),
+ 'fas fa-caret-square-right' => __( 'caret-square-right', 'buildr' ),
+ 'far fa-caret-square-right' => __( 'caret-square-right', 'buildr' ),
+ 'fas fa-caret-square-up' => __( 'caret-square-up', 'buildr' ),
+ 'far fa-caret-square-up' => __( 'caret-square-up', 'buildr' ),
+ 'fas fa-caret-up' => __( 'caret-up', 'buildr' ),
+ 'fas fa-cart-arrow-down' => __( 'cart-arrow-down', 'buildr' ),
+ 'fas fa-cart-plus' => __( 'cart-plus', 'buildr' ),
+ 'fab fa-cc-amazon-pay' => __( 'cc-amazon-pay', 'buildr' ),
+ 'fab fa-cc-amex' => __( 'cc-amex', 'buildr' ),
+ 'fab fa-cc-apple-pay' => __( 'cc-apple-pay', 'buildr' ),
+ 'fab fa-cc-diners-club' => __( 'cc-diners-club', 'buildr' ),
+ 'fab fa-cc-discover' => __( 'cc-discover', 'buildr' ),
+ 'fab fa-cc-jcb' => __( 'cc-jcb', 'buildr' ),
+ 'fab fa-cc-mastercard' => __( 'cc-mastercard', 'buildr' ),
+ 'fab fa-cc-paypal' => __( 'cc-paypal', 'buildr' ),
+ 'fab fa-cc-stripe' => __( 'cc-stripe', 'buildr' ),
+ 'fab fa-cc-visa' => __( 'cc-visa', 'buildr' ),
+ 'fab fa-centercode' => __( 'centercode', 'buildr' ),
+ 'fas fa-certificate' => __( 'certificate', 'buildr' ),
+ 'fas fa-chart-area' => __( 'chart-area', 'buildr' ),
+ 'fas fa-chart-bar' => __( 'chart-bar', 'buildr' ),
+ 'far fa-chart-bar' => __( 'chart-bar', 'buildr' ),
+ 'fas fa-chart-line' => __( 'chart-line', 'buildr' ),
+ 'fas fa-chart-pie' => __( 'chart-pie', 'buildr' ),
+ 'fas fa-check' => __( 'check', 'buildr' ),
+ 'fas fa-check-circle' => __( 'check-circle', 'buildr' ),
+ 'far fa-check-circle' => __( 'check-circle', 'buildr' ),
+ 'fas fa-check-square' => __( 'check-square', 'buildr' ),
+ 'far fa-check-square' => __( 'check-square', 'buildr' ),
+ 'fas fa-chess' => __( 'chess', 'buildr' ),
+ 'fas fa-chess-bishop' => __( 'chess-bishop', 'buildr' ),
+ 'fas fa-chess-board' => __( 'chess-board', 'buildr' ),
+ 'fas fa-chess-king' => __( 'chess-king', 'buildr' ),
+ 'fas fa-chess-knight' => __( 'chess-knight', 'buildr' ),
+ 'fas fa-chess-pawn' => __( 'chess-pawn', 'buildr' ),
+ 'fas fa-chess-queen' => __( 'chess-queen', 'buildr' ),
+ 'fas fa-chess-rook' => __( 'chess-rook', 'buildr' ),
+ 'fas fa-chevron-circle-down' => __( 'chevron-circle-down', 'buildr' ),
+ 'fas fa-chevron-circle-left' => __( 'chevron-circle-left', 'buildr' ),
+ 'fas fa-chevron-circle-right' => __( 'chevron-circle-right', 'buildr' ),
+ 'fas fa-chevron-circle-up' => __( 'chevron-circle-up', 'buildr' ),
+ 'fas fa-chevron-down' => __( 'chevron-down', 'buildr' ),
+ 'fas fa-chevron-left' => __( 'chevron-left', 'buildr' ),
+ 'fas fa-chevron-right' => __( 'chevron-right', 'buildr' ),
+ 'fas fa-chevron-up' => __( 'chevron-up', 'buildr' ),
+ 'fas fa-child' => __( 'child', 'buildr' ),
+ 'fab fa-chrome' => __( 'chrome', 'buildr' ),
+ 'fas fa-circle' => __( 'circle', 'buildr' ),
+ 'far fa-circle' => __( 'circle', 'buildr' ),
+ 'fas fa-circle-notch' => __( 'circle-notch', 'buildr' ),
+ 'fas fa-clipboard' => __( 'clipboard', 'buildr' ),
+ 'far fa-clipboard' => __( 'clipboard', 'buildr' ),
+ 'fas fa-clipboard-check' => __( 'clipboard-check', 'buildr' ),
+ 'fas fa-clipboard-list' => __( 'clipboard-list', 'buildr' ),
+ 'fas fa-clock' => __( 'clock', 'buildr' ),
+ 'far fa-clock' => __( 'clock', 'buildr' ),
+ 'fas fa-clone' => __( 'clone', 'buildr' ),
+ 'far fa-clone' => __( 'clone', 'buildr' ),
+ 'fas fa-closed-captioning' => __( 'closed-captioning', 'buildr' ),
+ 'far fa-closed-captioning' => __( 'closed-captioning', 'buildr' ),
+ 'fas fa-cloud' => __( 'cloud', 'buildr' ),
+ 'fas fa-cloud-download-alt' => __( 'cloud-download-alt', 'buildr' ),
+ 'fas fa-cloud-upload-alt' => __( 'cloud-upload-alt', 'buildr' ),
+ 'fab fa-cloudscale' => __( 'cloudscale', 'buildr' ),
+ 'fab fa-cloudsmith' => __( 'cloudsmith', 'buildr' ),
+ 'fab fa-cloudversify' => __( 'cloudversify', 'buildr' ),
+ 'fas fa-code' => __( 'code', 'buildr' ),
+ 'fas fa-code-branch' => __( 'code-branch', 'buildr' ),
+ 'fab fa-codepen' => __( 'codepen', 'buildr' ),
+ 'fab fa-codiepie' => __( 'codiepie', 'buildr' ),
+ 'fas fa-coffee' => __( 'coffee', 'buildr' ),
+ 'fas fa-cog' => __( 'cog', 'buildr' ),
+ 'fas fa-cogs' => __( 'cogs', 'buildr' ),
+ 'fas fa-columns' => __( 'columns', 'buildr' ),
+ 'fas fa-comment' => __( 'comment', 'buildr' ),
+ 'far fa-comment' => __( 'comment', 'buildr' ),
+ 'fas fa-comment-alt' => __( 'comment-alt', 'buildr' ),
+ 'far fa-comment-alt' => __( 'comment-alt', 'buildr' ),
+ 'fas fa-comment-dots' => __( 'comment-dots', 'buildr' ),
+ 'fas fa-comment-slash' => __( 'comment-slash', 'buildr' ),
+ 'fas fa-comments' => __( 'comments', 'buildr' ),
+ 'far fa-comments' => __( 'comments', 'buildr' ),
+ 'fas fa-compass' => __( 'compass', 'buildr' ),
+ 'far fa-compass' => __( 'compass', 'buildr' ),
+ 'fas fa-compress' => __( 'compress', 'buildr' ),
+ 'fab fa-connectdevelop' => __( 'connectdevelop', 'buildr' ),
+ 'fab fa-contao' => __( 'contao', 'buildr' ),
+ 'fas fa-copy' => __( 'copy', 'buildr' ),
+ 'far fa-copy' => __( 'copy', 'buildr' ),
+ 'fas fa-copyright' => __( 'copyright', 'buildr' ),
+ 'far fa-copyright' => __( 'copyright', 'buildr' ),
+ 'fas fa-couch' => __( 'couch', 'buildr' ),
+ 'fab fa-cpanel' => __( 'cpanel', 'buildr' ),
+ 'fab fa-creative-commons' => __( 'creative-commons', 'buildr' ),
+ 'fas fa-credit-card' => __( 'credit-card', 'buildr' ),
+ 'far fa-credit-card' => __( 'credit-card', 'buildr' ),
+ 'fas fa-crop' => __( 'crop', 'buildr' ),
+ 'fas fa-crosshairs' => __( 'crosshairs', 'buildr' ),
+ 'fab fa-css3' => __( 'css3', 'buildr' ),
+ 'fab fa-css3-alt' => __( 'css3-alt', 'buildr' ),
+ 'fas fa-cube' => __( 'cube', 'buildr' ),
+ 'fas fa-cubes' => __( 'cubes', 'buildr' ),
+ 'fas fa-cut' => __( 'cut', 'buildr' ),
+ 'fab fa-cuttlefish' => __( 'cuttlefish', 'buildr' ),
+ 'fab fa-d-and-d' => __( 'd-and-d', 'buildr' ),
+ 'fab fa-dashcube' => __( 'dashcube', 'buildr' ),
+ 'fas fa-database' => __( 'database', 'buildr' ),
+ 'fas fa-deaf' => __( 'deaf', 'buildr' ),
+ 'fab fa-delicious' => __( 'delicious', 'buildr' ),
+ 'fab fa-deploydog' => __( 'deploydog', 'buildr' ),
+ 'fab fa-deskpro' => __( 'deskpro', 'buildr' ),
+ 'fas fa-desktop' => __( 'desktop', 'buildr' ),
+ 'fab fa-deviantart' => __( 'deviantart', 'buildr' ),
+ 'fas fa-diagnoses' => __( 'diagnoses', 'buildr' ),
+ 'fab fa-digg' => __( 'digg', 'buildr' ),
+ 'fab fa-digital-ocean' => __( 'digital-ocean', 'buildr' ),
+ 'fab fa-discord' => __( 'discord', 'buildr' ),
+ 'fab fa-discourse' => __( 'discourse', 'buildr' ),
+ 'fas fa-dna' => __( 'dna', 'buildr' ),
+ 'fab fa-dochub' => __( 'dochub', 'buildr' ),
+ 'fab fa-docker' => __( 'docker', 'buildr' ),
+ 'fas fa-dollar-sign' => __( 'dollar-sign', 'buildr' ),
+ 'fas fa-dolly' => __( 'dolly', 'buildr' ),
+ 'fas fa-dolly-flatbed' => __( 'dolly-flatbed', 'buildr' ),
+ 'fas fa-donate' => __( 'donate', 'buildr' ),
+ 'fas fa-dot-circle' => __( 'dot-circle', 'buildr' ),
+ 'far fa-dot-circle' => __( 'dot-circle', 'buildr' ),
+ 'fas fa-dove' => __( 'dove', 'buildr' ),
+ 'fas fa-download' => __( 'download', 'buildr' ),
+ 'fab fa-draft2digital' => __( 'draft2digital', 'buildr' ),
+ 'fab fa-dribbble' => __( 'dribbble', 'buildr' ),
+ 'fab fa-dribbble-square' => __( 'dribbble-square', 'buildr' ),
+ 'fab fa-dropbox' => __( 'dropbox', 'buildr' ),
+ 'fab fa-drupal' => __( 'drupal', 'buildr' ),
+ 'fab fa-dyalog' => __( 'dyalog', 'buildr' ),
+ 'fab fa-earlybirds' => __( 'earlybirds', 'buildr' ),
+ 'fab fa-edge' => __( 'edge', 'buildr' ),
+ 'fas fa-edit' => __( 'edit', 'buildr' ),
+ 'far fa-edit' => __( 'edit', 'buildr' ),
+ 'fas fa-eject' => __( 'eject', 'buildr' ),
+ 'fab fa-elementor' => __( 'elementor', 'buildr' ),
+ 'fas fa-ellipsis-h' => __( 'ellipsis-h', 'buildr' ),
+ 'fas fa-ellipsis-v' => __( 'ellipsis-v', 'buildr' ),
+ 'fab fa-ember' => __( 'ember', 'buildr' ),
+ 'fab fa-empire' => __( 'empire', 'buildr' ),
+ 'fas fa-envelope' => __( 'envelope', 'buildr' ),
+ 'far fa-envelope' => __( 'envelope', 'buildr' ),
+ 'fas fa-envelope-open' => __( 'envelope-open', 'buildr' ),
+ 'far fa-envelope-open' => __( 'envelope-open', 'buildr' ),
+ 'fas fa-envelope-square' => __( 'envelope-square', 'buildr' ),
+ 'fab fa-envira' => __( 'envira', 'buildr' ),
+ 'fas fa-eraser' => __( 'eraser', 'buildr' ),
+ 'fab fa-erlang' => __( 'erlang', 'buildr' ),
+ 'fab fa-ethereum' => __( 'ethereum', 'buildr' ),
+ 'fab fa-etsy' => __( 'etsy', 'buildr' ),
+ 'fas fa-euro-sign' => __( 'euro-sign', 'buildr' ),
+ 'fas fa-exchange-alt' => __( 'exchange-alt', 'buildr' ),
+ 'fas fa-exclamation' => __( 'exclamation', 'buildr' ),
+ 'fas fa-exclamation-circle' => __( 'exclamation-circle', 'buildr' ),
+ 'fas fa-exclamation-triangle' => __( 'exclamation-triangle', 'buildr' ),
+ 'fas fa-expand' => __( 'expand', 'buildr' ),
+ 'fas fa-expand-arrows-alt' => __( 'expand-arrows-alt', 'buildr' ),
+ 'fab fa-expeditedssl' => __( 'expeditedssl', 'buildr' ),
+ 'fas fa-external-link-alt' => __( 'external-link-alt', 'buildr' ),
+ 'fas fa-external-link-square-alt' => __( 'external-link-square-alt', 'buildr' ),
+ 'fas fa-eye' => __( 'eye', 'buildr' ),
+ 'fas fa-eye-dropper' => __( 'eye-dropper', 'buildr' ),
+ 'fas fa-eye-slash' => __( 'eye-slash', 'buildr' ),
+ 'far fa-eye-slash' => __( 'eye-slash', 'buildr' ),
+ 'fab fa-facebook' => __( 'facebook', 'buildr' ),
+ 'fab fa-facebook-f' => __( 'facebook-f', 'buildr' ),
+ 'fab fa-facebook-messenger' => __( 'facebook-messenger', 'buildr' ),
+ 'fab fa-facebook-square' => __( 'facebook-square', 'buildr' ),
+ 'fas fa-fast-backward' => __( 'fast-backward', 'buildr' ),
+ 'fas fa-fast-forward' => __( 'fast-forward', 'buildr' ),
+ 'fas fa-fax' => __( 'fax', 'buildr' ),
+ 'fas fa-female' => __( 'female', 'buildr' ),
+ 'fas fa-fighter-jet' => __( 'fighter-jet', 'buildr' ),
+ 'fas fa-file' => __( 'file', 'buildr' ),
+ 'far fa-file' => __( 'file', 'buildr' ),
+ 'fas fa-file-alt' => __( 'file-alt', 'buildr' ),
+ 'far fa-file-alt' => __( 'file-alt', 'buildr' ),
+ 'fas fa-file-archive' => __( 'file-archive', 'buildr' ),
+ 'far fa-file-archive' => __( 'file-archive', 'buildr' ),
+ 'fas fa-file-audio' => __( 'file-audio', 'buildr' ),
+ 'far fa-file-audio' => __( 'file-audio', 'buildr' ),
+ 'fas fa-file-code' => __( 'file-code', 'buildr' ),
+ 'far fa-file-code' => __( 'file-code', 'buildr' ),
+ 'fas fa-file-excel' => __( 'file-excel', 'buildr' ),
+ 'far fa-file-excel' => __( 'file-excel', 'buildr' ),
+ 'fas fa-file-image' => __( 'file-image', 'buildr' ),
+ 'far fa-file-image' => __( 'file-image', 'buildr' ),
+ 'fas fa-file-medical' => __( 'file-medical', 'buildr' ),
+ 'fas fa-file-medical-alt' => __( 'file-medical-alt', 'buildr' ),
+ 'fas fa-file-pdf' => __( 'file-pdf', 'buildr' ),
+ 'far fa-file-pdf' => __( 'file-pdf', 'buildr' ),
+ 'fas fa-file-powerpoint' => __( 'file-powerpoint', 'buildr' ),
+ 'far fa-file-powerpoint' => __( 'file-powerpoint', 'buildr' ),
+ 'fas fa-file-video' => __( 'file-video', 'buildr' ),
+ 'far fa-file-video' => __( 'file-video', 'buildr' ),
+ 'fas fa-file-word' => __( 'file-word', 'buildr' ),
+ 'far fa-file-word' => __( 'file-word', 'buildr' ),
+ 'fas fa-film' => __( 'film', 'buildr' ),
+ 'fas fa-filter' => __( 'filter', 'buildr' ),
+ 'fas fa-fire' => __( 'fire', 'buildr' ),
+ 'fas fa-fire-extinguisher' => __( 'fire-extinguisher', 'buildr' ),
+ 'fab fa-firefox' => __( 'firefox', 'buildr' ),
+ 'fas fa-first-aid' => __( 'first-aid', 'buildr' ),
+ 'fab fa-first-order' => __( 'first-order', 'buildr' ),
+ 'fab fa-firstdraft' => __( 'firstdraft', 'buildr' ),
+ 'fas fa-flag' => __( 'flag', 'buildr' ),
+ 'far fa-flag' => __( 'flag', 'buildr' ),
+ 'fas fa-flag-checkered' => __( 'flag-checkered', 'buildr' ),
+ 'fas fa-flask' => __( 'flask', 'buildr' ),
+ 'fab fa-flickr' => __( 'flickr', 'buildr' ),
+ 'fab fa-flipboard' => __( 'flipboard', 'buildr' ),
+ 'fab fa-fly' => __( 'fly', 'buildr' ),
+ 'fas fa-folder' => __( 'folder', 'buildr' ),
+ 'far fa-folder' => __( 'folder', 'buildr' ),
+ 'fas fa-folder-open' => __( 'folder-open', 'buildr' ),
+ 'far fa-folder-open' => __( 'folder-open', 'buildr' ),
+ 'fas fa-font' => __( 'font', 'buildr' ),
+ 'fab fa-font-awesome' => __( 'font-awesome', 'buildr' ),
+ 'fab fa-font-awesome-alt' => __( 'font-awesome-alt', 'buildr' ),
+ 'fab fa-font-awesome-flag' => __( 'font-awesome-flag', 'buildr' ),
+ 'fab fa-fonticons' => __( 'fonticons', 'buildr' ),
+ 'fab fa-fonticons-fi' => __( 'fonticons-fi', 'buildr' ),
+ 'fas fa-football-ball' => __( 'football-ball', 'buildr' ),
+ 'fab fa-fort-awesome' => __( 'fort-awesome', 'buildr' ),
+ 'fab fa-fort-awesome-alt' => __( 'fort-awesome-alt', 'buildr' ),
+ 'fab fa-forumbee' => __( 'forumbee', 'buildr' ),
+ 'fas fa-forward' => __( 'forward', 'buildr' ),
+ 'fab fa-foursquare' => __( 'foursquare', 'buildr' ),
+ 'fab fa-free-code-camp' => __( 'free-code-camp', 'buildr' ),
+ 'fab fa-freebsd' => __( 'freebsd', 'buildr' ),
+ 'fas fa-frown' => __( 'frown', 'buildr' ),
+ 'far fa-frown' => __( 'frown', 'buildr' ),
+ 'fas fa-futbol' => __( 'futbol', 'buildr' ),
+ 'far fa-futbol' => __( 'futbol', 'buildr' ),
+ 'fas fa-gamepad' => __( 'gamepad', 'buildr' ),
+ 'fas fa-gavel' => __( 'gavel', 'buildr' ),
+ 'fas fa-gem' => __( 'gem', 'buildr' ),
+ 'far fa-gem' => __( 'gem', 'buildr' ),
+ 'fas fa-genderless' => __( 'genderless', 'buildr' ),
+ 'fab fa-get-pocket' => __( 'get-pocket', 'buildr' ),
+ 'fab fa-gg' => __( 'gg', 'buildr' ),
+ 'fab fa-gg-circle' => __( 'gg-circle', 'buildr' ),
+ 'fas fa-gift' => __( 'gift', 'buildr' ),
+ 'fab fa-git' => __( 'git', 'buildr' ),
+ 'fab fa-git-square' => __( 'git-square', 'buildr' ),
+ 'fab fa-github' => __( 'github', 'buildr' ),
+ 'fab fa-github-alt' => __( 'github-alt', 'buildr' ),
+ 'fab fa-github-square' => __( 'github-square', 'buildr' ),
+ 'fab fa-gitkraken' => __( 'gitkraken', 'buildr' ),
+ 'fab fa-gitlab' => __( 'gitlab', 'buildr' ),
+ 'fab fa-gitter' => __( 'gitter', 'buildr' ),
+ 'fas fa-glass-martini' => __( 'glass-martini', 'buildr' ),
+ 'fab fa-glide' => __( 'glide', 'buildr' ),
+ 'fab fa-glide-g' => __( 'glide-g', 'buildr' ),
+ 'fas fa-globe' => __( 'globe', 'buildr' ),
+ 'fab fa-gofore' => __( 'gofore', 'buildr' ),
+ 'fas fa-golf-ball' => __( 'golf-ball', 'buildr' ),
+ 'fab fa-goodreads' => __( 'goodreads', 'buildr' ),
+ 'fab fa-goodreads-g' => __( 'goodreads-g', 'buildr' ),
+ 'fab fa-google' => __( 'google', 'buildr' ),
+ 'fab fa-google-drive' => __( 'google-drive', 'buildr' ),
+ 'fab fa-google-play' => __( 'google-play', 'buildr' ),
+ 'fab fa-google-plus' => __( 'google-plus', 'buildr' ),
+ 'fab fa-google-plus-g' => __( 'google-plus-g', 'buildr' ),
+ 'fab fa-google-plus-square' => __( 'google-plus-square', 'buildr' ),
+ 'fab fa-google-wallet' => __( 'google-wallet', 'buildr' ),
+ 'fas fa-graduation-cap' => __( 'graduation-cap', 'buildr' ),
+ 'fab fa-gratipay' => __( 'gratipay', 'buildr' ),
+ 'fab fa-grav' => __( 'grav', 'buildr' ),
+ 'fab fa-gripfire' => __( 'gripfire', 'buildr' ),
+ 'fab fa-grunt' => __( 'grunt', 'buildr' ),
+ 'fab fa-gulp' => __( 'gulp', 'buildr' ),
+ 'fas fa-h-square' => __( 'h-square', 'buildr' ),
+ 'fab fa-hacker-news' => __( 'hacker-news', 'buildr' ),
+ 'fab fa-hacker-news-square' => __( 'hacker-news-square', 'buildr' ),
+ 'fas fa-hand-holding' => __( 'hand-holding', 'buildr' ),
+ 'fas fa-hand-holding-heart' => __( 'hand-holding-heart', 'buildr' ),
+ 'fas fa-hand-holding-usd' => __( 'hand-holding-usd', 'buildr' ),
+ 'fas fa-hand-lizard' => __( 'hand-lizard', 'buildr' ),
+ 'far fa-hand-lizard' => __( 'hand-lizard', 'buildr' ),
+ 'fas fa-hand-paper' => __( 'hand-paper', 'buildr' ),
+ 'far fa-hand-paper' => __( 'hand-paper', 'buildr' ),
+ 'fas fa-hand-peace' => __( 'hand-peace', 'buildr' ),
+ 'far fa-hand-peace' => __( 'hand-peace', 'buildr' ),
+ 'fas fa-hand-point-down' => __( 'hand-point-down', 'buildr' ),
+ 'far fa-hand-point-down' => __( 'hand-point-down', 'buildr' ),
+ 'fas fa-hand-point-left' => __( 'hand-point-left', 'buildr' ),
+ 'far fa-hand-point-left' => __( 'hand-point-left', 'buildr' ),
+ 'fas fa-hand-point-right' => __( 'hand-point-right', 'buildr' ),
+ 'far fa-hand-point-right' => __( 'hand-point-right', 'buildr' ),
+ 'fas fa-hand-point-up' => __( 'hand-point-up', 'buildr' ),
+ 'far fa-hand-point-up' => __( 'hand-point-up', 'buildr' ),
+ 'fas fa-hand-pointer' => __( 'hand-pointer', 'buildr' ),
+ 'far fa-hand-pointer' => __( 'hand-pointer', 'buildr' ),
+ 'fas fa-hand-rock' => __( 'hand-rock', 'buildr' ),
+ 'far fa-hand-rock' => __( 'hand-rock', 'buildr' ),
+ 'fas fa-hand-scissors' => __( 'hand-scissors', 'buildr' ),
+ 'far fa-hand-scissors' => __( 'hand-scissors', 'buildr' ),
+ 'fas fa-hand-spock' => __( 'hand-spock', 'buildr' ),
+ 'far fa-hand-spock' => __( 'hand-spock', 'buildr' ),
+ 'fas fa-hands' => __( 'hands', 'buildr' ),
+ 'fas fa-hands-helping' => __( 'hands-helping', 'buildr' ),
+ 'fas fa-handshake' => __( 'handshake', 'buildr' ),
+ 'far fa-handshake' => __( 'handshake', 'buildr' ),
+ 'fas fa-hashtag' => __( 'hashtag', 'buildr' ),
+ 'fas fa-hdd' => __( 'hdd', 'buildr' ),
+ 'far fa-hdd' => __( 'hdd', 'buildr' ),
+ 'fas fa-heading' => __( 'heading', 'buildr' ),
+ 'fas fa-headphones' => __( 'headphones', 'buildr' ),
+ 'fas fa-heart' => __( 'heart', 'buildr' ),
+ 'far fa-heart' => __( 'heart', 'buildr' ),
+ 'fas fa-heartbeat' => __( 'heartbeat', 'buildr' ),
+ 'fab fa-hips' => __( 'hips', 'buildr' ),
+ 'fab fa-hire-a-helper' => __( 'hire-a-helper', 'buildr' ),
+ 'fas fa-history' => __( 'history', 'buildr' ),
+ 'fas fa-hockey-puck' => __( 'hockey-puck', 'buildr' ),
+ 'fas fa-home' => __( 'home', 'buildr' ),
+ 'fab fa-hooli' => __( 'hooli', 'buildr' ),
+ 'fas fa-hospital' => __( 'hospital', 'buildr' ),
+ 'far fa-hospital' => __( 'hospital', 'buildr' ),
+ 'fas fa-hospital-alt' => __( 'hospital-alt', 'buildr' ),
+ 'fas fa-hospital-symbol' => __( 'hospital-symbol', 'buildr' ),
+ 'fab fa-hotjar' => __( 'hotjar', 'buildr' ),
+ 'fas fa-hourglass' => __( 'hourglass', 'buildr' ),
+ 'far fa-hourglass' => __( 'hourglass', 'buildr' ),
+ 'fas fa-hourglass-end' => __( 'hourglass-end', 'buildr' ),
+ 'fas fa-hourglass-half' => __( 'hourglass-half', 'buildr' ),
+ 'fas fa-hourglass-start' => __( 'hourglass-start', 'buildr' ),
+ 'fab fa-houzz' => __( 'houzz', 'buildr' ),
+ 'fab fa-html5' => __( 'html5', 'buildr' ),
+ 'fab fa-hubspot' => __( 'hubspot', 'buildr' ),
+ 'fas fa-i-cursor' => __( 'i-cursor', 'buildr' ),
+ 'fas fa-id-badge' => __( 'id-badge', 'buildr' ),
+ 'far fa-id-badge' => __( 'id-badge', 'buildr' ),
+ 'fas fa-id-card' => __( 'id-card', 'buildr' ),
+ 'far fa-id-card' => __( 'id-card', 'buildr' ),
+ 'fas fa-id-card-alt' => __( 'id-card-alt', 'buildr' ),
+ 'fas fa-image' => __( 'image', 'buildr' ),
+ 'far fa-image' => __( 'image', 'buildr' ),
+ 'fas fa-images' => __( 'images', 'buildr' ),
+ 'far fa-images' => __( 'images', 'buildr' ),
+ 'fab fa-imdb' => __( 'imdb', 'buildr' ),
+ 'fas fa-inbox' => __( 'inbox', 'buildr' ),
+ 'fas fa-indent' => __( 'indent', 'buildr' ),
+ 'fas fa-industry' => __( 'industry', 'buildr' ),
+ 'fas fa-info' => __( 'info', 'buildr' ),
+ 'fas fa-info-circle' => __( 'info-circle', 'buildr' ),
+ 'fab fa-instagram' => __( 'instagram', 'buildr' ),
+ 'fab fa-internet-explorer' => __( 'internet-explorer', 'buildr' ),
+ 'fab fa-ioxhost' => __( 'ioxhost', 'buildr' ),
+ 'fas fa-italic' => __( 'italic', 'buildr' ),
+ 'fab fa-itunes' => __( 'itunes', 'buildr' ),
+ 'fab fa-itunes-note' => __( 'itunes-note', 'buildr' ),
+ 'fab fa-java' => __( 'java', 'buildr' ),
+ 'fab fa-jenkins' => __( 'jenkins', 'buildr' ),
+ 'fab fa-joget' => __( 'joget', 'buildr' ),
+ 'fab fa-joomla' => __( 'joomla', 'buildr' ),
+ 'fab fa-js' => __( 'js', 'buildr' ),
+ 'fab fa-js-square' => __( 'js-square', 'buildr' ),
+ 'fab fa-jsfiddle' => __( 'jsfiddle', 'buildr' ),
+ 'fas fa-key' => __( 'key', 'buildr' ),
+ 'fas fa-keyboard' => __( 'keyboard', 'buildr' ),
+ 'far fa-keyboard' => __( 'keyboard', 'buildr' ),
+ 'fab fa-keycdn' => __( 'keycdn', 'buildr' ),
+ 'fab fa-kickstarter' => __( 'kickstarter', 'buildr' ),
+ 'fab fa-kickstarter-k' => __( 'kickstarter-k', 'buildr' ),
+ 'fab fa-korvue' => __( 'korvue', 'buildr' ),
+ 'fas fa-language' => __( 'language', 'buildr' ),
+ 'fas fa-laptop' => __( 'laptop', 'buildr' ),
+ 'fab fa-laravel' => __( 'laravel', 'buildr' ),
+ 'fab fa-lastfm' => __( 'lastfm', 'buildr' ),
+ 'fab fa-lastfm-square' => __( 'lastfm-square', 'buildr' ),
+ 'fas fa-leaf' => __( 'leaf', 'buildr' ),
+ 'fab fa-leanpub' => __( 'leanpub', 'buildr' ),
+ 'fas fa-lemon' => __( 'lemon', 'buildr' ),
+ 'far fa-lemon' => __( 'lemon', 'buildr' ),
+ 'fab fa-less' => __( 'less', 'buildr' ),
+ 'fas fa-level-down-alt' => __( 'level-down-alt', 'buildr' ),
+ 'fas fa-level-up-alt' => __( 'level-up-alt', 'buildr' ),
+ 'fas fa-life-ring' => __( 'life-ring', 'buildr' ),
+ 'far fa-life-ring' => __( 'life-ring', 'buildr' ),
+ 'fas fa-lightbulb' => __( 'lightbulb', 'buildr' ),
+ 'far fa-lightbulb' => __( 'lightbulb', 'buildr' ),
+ 'fab fa-line' => __( 'line', 'buildr' ),
+ 'fas fa-link' => __( 'link', 'buildr' ),
+ 'fab fa-linkedin' => __( 'linkedin', 'buildr' ),
+ 'fab fa-linkedin-in' => __( 'linkedin-in', 'buildr' ),
+ 'fab fa-linode' => __( 'linode', 'buildr' ),
+ 'fab fa-linux' => __( 'linux', 'buildr' ),
+ 'fas fa-lira-sign' => __( 'lira-sign', 'buildr' ),
+ 'fas fa-list' => __( 'list', 'buildr' ),
+ 'fas fa-list-alt' => __( 'list-alt', 'buildr' ),
+ 'far fa-list-alt' => __( 'list-alt', 'buildr' ),
+ 'fas fa-list-ol' => __( 'list-ol', 'buildr' ),
+ 'fas fa-list-ul' => __( 'list-ul', 'buildr' ),
+ 'fas fa-location-arrow' => __( 'location-arrow', 'buildr' ),
+ 'fas fa-lock' => __( 'lock', 'buildr' ),
+ 'fas fa-lock-open' => __( 'lock-open', 'buildr' ),
+ 'fas fa-long-arrow-alt-down' => __( 'long-arrow-alt-down', 'buildr' ),
+ 'fas fa-long-arrow-alt-left' => __( 'long-arrow-alt-left', 'buildr' ),
+ 'fas fa-long-arrow-alt-right' => __( 'long-arrow-alt-right', 'buildr' ),
+ 'fas fa-long-arrow-alt-up' => __( 'long-arrow-alt-up', 'buildr' ),
+ 'fas fa-low-vision' => __( 'low-vision', 'buildr' ),
+ 'fab fa-lyft' => __( 'lyft', 'buildr' ),
+ 'fab fa-magento' => __( 'magento', 'buildr' ),
+ 'fas fa-magic' => __( 'magic', 'buildr' ),
+ 'fas fa-magnet' => __( 'magnet', 'buildr' ),
+ 'fas fa-male' => __( 'male', 'buildr' ),
+ 'fas fa-map' => __( 'map', 'buildr' ),
+ 'far fa-map' => __( 'map', 'buildr' ),
+ 'fas fa-map-marker' => __( 'map-marker', 'buildr' ),
+ 'fas fa-map-marker-alt' => __( 'map-marker-alt', 'buildr' ),
+ 'fas fa-map-pin' => __( 'map-pin', 'buildr' ),
+ 'fas fa-map-signs' => __( 'map-signs', 'buildr' ),
+ 'fas fa-mars' => __( 'mars', 'buildr' ),
+ 'fas fa-mars-double' => __( 'mars-double', 'buildr' ),
+ 'fas fa-mars-stroke' => __( 'mars-stroke', 'buildr' ),
+ 'fas fa-mars-stroke-h' => __( 'mars-stroke-h', 'buildr' ),
+ 'fas fa-mars-stroke-v' => __( 'mars-stroke-v', 'buildr' ),
+ 'fab fa-maxcdn' => __( 'maxcdn', 'buildr' ),
+ 'fab fa-medapps' => __( 'medapps', 'buildr' ),
+ 'fab fa-medium' => __( 'medium', 'buildr' ),
+ 'fab fa-medium-m' => __( 'medium-m', 'buildr' ),
+ 'fas fa-medkit' => __( 'medkit', 'buildr' ),
+ 'fab fa-medrt' => __( 'medrt', 'buildr' ),
+ 'fab fa-meetup' => __( 'meetup', 'buildr' ),
+ 'fas fa-meh' => __( 'meh', 'buildr' ),
+ 'far fa-meh' => __( 'meh', 'buildr' ),
+ 'fas fa-mercury' => __( 'mercury', 'buildr' ),
+ 'fas fa-microchip' => __( 'microchip', 'buildr' ),
+ 'fas fa-microphone' => __( 'microphone', 'buildr' ),
+ 'fas fa-microphone-slash' => __( 'microphone-slash', 'buildr' ),
+ 'fab fa-microsoft' => __( 'microsoft', 'buildr' ),
+ 'fas fa-minus' => __( 'minus', 'buildr' ),
+ 'fas fa-minus-circle' => __( 'minus-circle', 'buildr' ),
+ 'fas fa-minus-square' => __( 'minus-square', 'buildr' ),
+ 'far fa-minus-square' => __( 'minus-square', 'buildr' ),
+ 'fab fa-mix' => __( 'mix', 'buildr' ),
+ 'fab fa-mixcloud' => __( 'mixcloud', 'buildr' ),
+ 'fab fa-mizuni' => __( 'mizuni', 'buildr' ),
+ 'fas fa-mobile' => __( 'mobile', 'buildr' ),
+ 'fas fa-mobile-alt' => __( 'mobile-alt', 'buildr' ),
+ 'fab fa-modx' => __( 'modx', 'buildr' ),
+ 'fab fa-monero' => __( 'monero', 'buildr' ),
+ 'fas fa-money-bill-alt' => __( 'money-bill-alt', 'buildr' ),
+ 'far fa-money-bill-alt' => __( 'money-bill-alt', 'buildr' ),
+ 'fas fa-moon' => __( 'moon', 'buildr' ),
+ 'far fa-moon' => __( 'moon', 'buildr' ),
+ 'fas fa-motorcycle' => __( 'motorcycle', 'buildr' ),
+ 'fas fa-mouse-pointer' => __( 'mouse-pointer', 'buildr' ),
+ 'fas fa-music' => __( 'music', 'buildr' ),
+ 'fab fa-napster' => __( 'napster', 'buildr' ),
+ 'fas fa-neuter' => __( 'neuter', 'buildr' ),
+ 'fas fa-newspaper' => __( 'newspaper', 'buildr' ),
+ 'far fa-newspaper' => __( 'newspaper', 'buildr' ),
+ 'fab fa-nintendo-switch' => __( 'nintendo-switch', 'buildr' ),
+ 'fab fa-node' => __( 'node', 'buildr' ),
+ 'fab fa-node-js' => __( 'node-js', 'buildr' ),
+ 'fas fa-notes-medical' => __( 'notes-medical', 'buildr' ),
+ 'fab fa-npm' => __( 'npm', 'buildr' ),
+ 'fab fa-ns8' => __( 'ns8', 'buildr' ),
+ 'fab fa-nutritionix' => __( 'nutritionix', 'buildr' ),
+ 'fas fa-object-group' => __( 'object-group', 'buildr' ),
+ 'far fa-object-group' => __( 'object-group', 'buildr' ),
+ 'fas fa-object-ungroup' => __( 'object-ungroup', 'buildr' ),
+ 'far fa-object-ungroup' => __( 'object-ungroup', 'buildr' ),
+ 'fab fa-odnoklassniki' => __( 'odnoklassniki', 'buildr' ),
+ 'fab fa-odnoklassniki-square' => __( 'odnoklassniki-square', 'buildr' ),
+ 'fab fa-opencart' => __( 'opencart', 'buildr' ),
+ 'fab fa-openid' => __( 'openid', 'buildr' ),
+ 'fab fa-opera' => __( 'opera', 'buildr' ),
+ 'fab fa-optin-monster' => __( 'optin-monster', 'buildr' ),
+ 'fab fa-osi' => __( 'osi', 'buildr' ),
+ 'fas fa-outdent' => __( 'outdent', 'buildr' ),
+ 'fab fa-page4' => __( 'page4', 'buildr' ),
+ 'fab fa-pagelines' => __( 'pagelines', 'buildr' ),
+ 'fas fa-paint-brush' => __( 'paint-brush', 'buildr' ),
+ 'fab fa-palfed' => __( 'palfed', 'buildr' ),
+ 'fas fa-pallet' => __( 'pallet', 'buildr' ),
+ 'fas fa-paper-plane' => __( 'paper-plane', 'buildr' ),
+ 'far fa-paper-plane' => __( 'paper-plane', 'buildr' ),
+ 'fas fa-paperclip' => __( 'paperclip', 'buildr' ),
+ 'fas fa-parachute-box' => __( 'parachute-box', 'buildr' ),
+ 'fas fa-paragraph' => __( 'paragraph', 'buildr' ),
+ 'fas fa-paste' => __( 'paste', 'buildr' ),
+ 'fab fa-patreon' => __( 'patreon', 'buildr' ),
+ 'fas fa-pause' => __( 'pause', 'buildr' ),
+ 'fas fa-pause-circle' => __( 'pause-circle', 'buildr' ),
+ 'far fa-pause-circle' => __( 'pause-circle', 'buildr' ),
+ 'fas fa-paw' => __( 'paw', 'buildr' ),
+ 'fab fa-paypal' => __( 'paypal', 'buildr' ),
+ 'fas fa-pen-square' => __( 'pen-square', 'buildr' ),
+ 'fas fa-pencil-alt' => __( 'pencil-alt', 'buildr' ),
+ 'fas fa-people-carry' => __( 'people-carry', 'buildr' ),
+ 'fas fa-percent' => __( 'percent', 'buildr' ),
+ 'fab fa-periscope' => __( 'periscope', 'buildr' ),
+ 'fab fa-phabricator' => __( 'phabricator', 'buildr' ),
+ 'fab fa-phoenix-framework' => __( 'phoenix-framework', 'buildr' ),
+ 'fas fa-phone' => __( 'phone', 'buildr' ),
+ 'fas fa-phone-slash' => __( 'phone-slash', 'buildr' ),
+ 'fas fa-phone-square' => __( 'phone-square', 'buildr' ),
+ 'fas fa-phone-volume' => __( 'phone-volume', 'buildr' ),
+ 'fab fa-php' => __( 'php', 'buildr' ),
+ 'fab fa-pied-piper' => __( 'pied-piper', 'buildr' ),
+ 'fab fa-pied-piper-alt' => __( 'pied-piper-alt', 'buildr' ),
+ 'fab fa-pied-piper-hat' => __( 'pied-piper-hat', 'buildr' ),
+ 'fab fa-pied-piper-pp' => __( 'pied-piper-pp', 'buildr' ),
+ 'fas fa-piggy-bank' => __( 'piggy-bank', 'buildr' ),
+ 'fas fa-pills' => __( 'pills', 'buildr' ),
+ 'fab fa-pinterest' => __( 'pinterest', 'buildr' ),
+ 'fab fa-pinterest-p' => __( 'pinterest-p', 'buildr' ),
+ 'fab fa-pinterest-square' => __( 'pinterest-square', 'buildr' ),
+ 'fas fa-plane' => __( 'plane', 'buildr' ),
+ 'fas fa-play' => __( 'play', 'buildr' ),
+ 'fas fa-play-circle' => __( 'play-circle', 'buildr' ),
+ 'far fa-play-circle' => __( 'play-circle', 'buildr' ),
+ 'fab fa-playstation' => __( 'playstation', 'buildr' ),
+ 'fas fa-plug' => __( 'plug', 'buildr' ),
+ 'fas fa-plus' => __( 'plus', 'buildr' ),
+ 'fas fa-plus-circle' => __( 'plus-circle', 'buildr' ),
+ 'fas fa-plus-square' => __( 'plus-square', 'buildr' ),
+ 'far fa-plus-square' => __( 'plus-square', 'buildr' ),
+ 'fas fa-podcast' => __( 'podcast', 'buildr' ),
+ 'fas fa-poo' => __( 'poo', 'buildr' ),
+ 'fas fa-pound-sign' => __( 'pound-sign', 'buildr' ),
+ 'fas fa-power-off' => __( 'power-off', 'buildr' ),
+ 'fas fa-prescription-bottle' => __( 'prescription-bottle', 'buildr' ),
+ 'fas fa-prescription-bottle-alt' => __( 'prescription-bottle-alt', 'buildr' ),
+ 'fas fa-print' => __( 'print', 'buildr' ),
+ 'fas fa-procedures' => __( 'procedures', 'buildr' ),
+ 'fab fa-product-hunt' => __( 'product-hunt', 'buildr' ),
+ 'fab fa-pushed' => __( 'pushed', 'buildr' ),
+ 'fas fa-puzzle-piece' => __( 'puzzle-piece', 'buildr' ),
+ 'fab fa-python' => __( 'python', 'buildr' ),
+ 'fab fa-qq' => __( 'qq', 'buildr' ),
+ 'fas fa-qrcode' => __( 'qrcode', 'buildr' ),
+ 'fas fa-question' => __( 'question', 'buildr' ),
+ 'fas fa-question-circle' => __( 'question-circle', 'buildr' ),
+ 'far fa-question-circle' => __( 'question-circle', 'buildr' ),
+ 'fas fa-quidditch' => __( 'quidditch', 'buildr' ),
+ 'fab fa-quinscape' => __( 'quinscape', 'buildr' ),
+ 'fab fa-quora' => __( 'quora', 'buildr' ),
+ 'fas fa-quote-left' => __( 'quote-left', 'buildr' ),
+ 'fas fa-quote-right' => __( 'quote-right', 'buildr' ),
+ 'fas fa-random' => __( 'random', 'buildr' ),
+ 'fab fa-ravelry' => __( 'ravelry', 'buildr' ),
+ 'fab fa-react' => __( 'react', 'buildr' ),
+ 'fab fa-readme' => __( 'readme', 'buildr' ),
+ 'fab fa-rebel' => __( 'rebel', 'buildr' ),
+ 'fas fa-recycle' => __( 'recycle', 'buildr' ),
+ 'fab fa-red-river' => __( 'red-river', 'buildr' ),
+ 'fab fa-reddit' => __( 'reddit', 'buildr' ),
+ 'fab fa-reddit-alien' => __( 'reddit-alien', 'buildr' ),
+ 'fab fa-reddit-square' => __( 'reddit-square', 'buildr' ),
+ 'fas fa-redo' => __( 'redo', 'buildr' ),
+ 'fas fa-redo-alt' => __( 'redo-alt', 'buildr' ),
+ 'fas fa-registered' => __( 'registered', 'buildr' ),
+ 'far fa-registered' => __( 'registered', 'buildr' ),
+ 'fab fa-rendact' => __( 'rendact', 'buildr' ),
+ 'fab fa-renren' => __( 'renren', 'buildr' ),
+ 'fas fa-reply' => __( 'reply', 'buildr' ),
+ 'fas fa-reply-all' => __( 'reply-all', 'buildr' ),
+ 'fab fa-replyd' => __( 'replyd', 'buildr' ),
+ 'fab fa-resolving' => __( 'resolving', 'buildr' ),
+ 'fas fa-retweet' => __( 'retweet', 'buildr' ),
+ 'fas fa-ribbon' => __( 'ribbon', 'buildr' ),
+ 'fas fa-road' => __( 'road', 'buildr' ),
+ 'fas fa-rocket' => __( 'rocket', 'buildr' ),
+ 'fab fa-rocketchat' => __( 'rocketchat', 'buildr' ),
+ 'fab fa-rockrms' => __( 'rockrms', 'buildr' ),
+ 'fas fa-rss' => __( 'rss', 'buildr' ),
+ 'fas fa-rss-square' => __( 'rss-square', 'buildr' ),
+ 'fas fa-ruble-sign' => __( 'ruble-sign', 'buildr' ),
+ 'fas fa-rupee-sign' => __( 'rupee-sign', 'buildr' ),
+ 'fab fa-safari' => __( 'safari', 'buildr' ),
+ 'fab fa-sass' => __( 'sass', 'buildr' ),
+ 'fas fa-save' => __( 'save', 'buildr' ),
+ 'far fa-save' => __( 'save', 'buildr' ),
+ 'fab fa-schlix' => __( 'schlix', 'buildr' ),
+ 'fab fa-scribd' => __( 'scribd', 'buildr' ),
+ 'fas fa-search' => __( 'search', 'buildr' ),
+ 'fas fa-search-minus' => __( 'search-minus', 'buildr' ),
+ 'fas fa-search-plus' => __( 'search-plus', 'buildr' ),
+ 'fab fa-searchengin' => __( 'searchengin', 'buildr' ),
+ 'fas fa-seedling' => __( 'seedling', 'buildr' ),
+ 'fab fa-sellcast' => __( 'sellcast', 'buildr' ),
+ 'fab fa-sellsy' => __( 'sellsy', 'buildr' ),
+ 'fas fa-server' => __( 'server', 'buildr' ),
+ 'fab fa-servicestack' => __( 'servicestack', 'buildr' ),
+ 'fas fa-share' => __( 'share', 'buildr' ),
+ 'fas fa-share-alt' => __( 'share-alt', 'buildr' ),
+ 'fas fa-share-alt-square' => __( 'share-alt-square', 'buildr' ),
+ 'fas fa-share-square' => __( 'share-square', 'buildr' ),
+ 'far fa-share-square' => __( 'share-square', 'buildr' ),
+ 'fas fa-shekel-sign' => __( 'shekel-sign', 'buildr' ),
+ 'fas fa-shield-alt' => __( 'shield-alt', 'buildr' ),
+ 'fas fa-ship' => __( 'ship', 'buildr' ),
+ 'fas fa-shipping-fast' => __( 'shipping-fast', 'buildr' ),
+ 'fab fa-shirtsinbulk' => __( 'shirtsinbulk', 'buildr' ),
+ 'fas fa-shopping-bag' => __( 'shopping-bag', 'buildr' ),
+ 'fas fa-shopping-basket' => __( 'shopping-basket', 'buildr' ),
+ 'fas fa-shopping-cart' => __( 'shopping-cart', 'buildr' ),
+ 'fas fa-shower' => __( 'shower', 'buildr' ),
+ 'fas fa-sign' => __( 'sign', 'buildr' ),
+ 'fas fa-sign-in-alt' => __( 'sign-in-alt', 'buildr' ),
+ 'fas fa-sign-language' => __( 'sign-language', 'buildr' ),
+ 'fas fa-sign-out-alt' => __( 'sign-out-alt', 'buildr' ),
+ 'fas fa-signal' => __( 'signal', 'buildr' ),
+ 'fab fa-simplybuilt' => __( 'simplybuilt', 'buildr' ),
+ 'fab fa-sistrix' => __( 'sistrix', 'buildr' ),
+ 'fas fa-sitemap' => __( 'sitemap', 'buildr' ),
+ 'fab fa-skyatlas' => __( 'skyatlas', 'buildr' ),
+ 'fab fa-skype' => __( 'skype', 'buildr' ),
+ 'fab fa-slack' => __( 'slack', 'buildr' ),
+ 'fab fa-slack-hash' => __( 'slack-hash', 'buildr' ),
+ 'fas fa-sliders-h' => __( 'sliders-h', 'buildr' ),
+ 'fab fa-slideshare' => __( 'slideshare', 'buildr' ),
+ 'fas fa-smile' => __( 'smile', 'buildr' ),
+ 'far fa-smile' => __( 'smile', 'buildr' ),
+ 'fas fa-smoking' => __( 'smoking', 'buildr' ),
+ 'fab fa-snapchat' => __( 'snapchat', 'buildr' ),
+ 'fab fa-snapchat-ghost' => __( 'snapchat-ghost', 'buildr' ),
+ 'fab fa-snapchat-square' => __( 'snapchat-square', 'buildr' ),
+ 'fas fa-snowflake' => __( 'snowflake', 'buildr' ),
+ 'far fa-snowflake' => __( 'snowflake', 'buildr' ),
+ 'fas fa-sort' => __( 'sort', 'buildr' ),
+ 'fas fa-sort-alpha-down' => __( 'sort-alpha-down', 'buildr' ),
+ 'fas fa-sort-alpha-up' => __( 'sort-alpha-up', 'buildr' ),
+ 'fas fa-sort-amount-down' => __( 'sort-amount-down', 'buildr' ),
+ 'fas fa-sort-amount-up' => __( 'sort-amount-up', 'buildr' ),
+ 'fas fa-sort-down' => __( 'sort-down', 'buildr' ),
+ 'fas fa-sort-numeric-down' => __( 'sort-numeric-down', 'buildr' ),
+ 'fas fa-sort-numeric-up' => __( 'sort-numeric-up', 'buildr' ),
+ 'fas fa-sort-up' => __( 'sort-up', 'buildr' ),
+ 'fab fa-soundcloud' => __( 'soundcloud', 'buildr' ),
+ 'fas fa-space-shuttle' => __( 'space-shuttle', 'buildr' ),
+ 'fab fa-speakap' => __( 'speakap', 'buildr' ),
+ 'fas fa-spinner' => __( 'spinner', 'buildr' ),
+ 'fab fa-spotify' => __( 'spotify', 'buildr' ),
+ 'fas fa-square' => __( 'square', 'buildr' ),
+ 'far fa-square' => __( 'square', 'buildr' ),
+ 'fas fa-square-full' => __( 'square-full', 'buildr' ),
+ 'fab fa-stack-exchange' => __( 'stack-exchange', 'buildr' ),
+ 'fab fa-stack-overflow' => __( 'stack-overflow', 'buildr' ),
+ 'fas fa-star' => __( 'star', 'buildr' ),
+ 'far fa-star' => __( 'star', 'buildr' ),
+ 'fas fa-star-half' => __( 'star-half', 'buildr' ),
+ 'far fa-star-half' => __( 'star-half', 'buildr' ),
+ 'fab fa-staylinked' => __( 'staylinked', 'buildr' ),
+ 'fab fa-steam' => __( 'steam', 'buildr' ),
+ 'fab fa-steam-square' => __( 'steam-square', 'buildr' ),
+ 'fab fa-steam-symbol' => __( 'steam-symbol', 'buildr' ),
+ 'fas fa-step-backward' => __( 'step-backward', 'buildr' ),
+ 'fas fa-step-forward' => __( 'step-forward', 'buildr' ),
+ 'fas fa-stethoscope' => __( 'stethoscope', 'buildr' ),
+ 'fab fa-sticker-mule' => __( 'sticker-mule', 'buildr' ),
+ 'fas fa-sticky-note' => __( 'sticky-note', 'buildr' ),
+ 'far fa-sticky-note' => __( 'sticky-note', 'buildr' ),
+ 'fas fa-stop' => __( 'stop', 'buildr' ),
+ 'fas fa-stop-circle' => __( 'stop-circle', 'buildr' ),
+ 'far fa-stop-circle' => __( 'stop-circle', 'buildr' ),
+ 'fas fa-stopwatch' => __( 'stopwatch', 'buildr' ),
+ 'fab fa-strava' => __( 'strava', 'buildr' ),
+ 'fas fa-street-view' => __( 'street-view', 'buildr' ),
+ 'fas fa-strikethrough' => __( 'strikethrough', 'buildr' ),
+ 'fab fa-stripe' => __( 'stripe', 'buildr' ),
+ 'fab fa-stripe-s' => __( 'stripe-s', 'buildr' ),
+ 'fab fa-studiovinari' => __( 'studiovinari', 'buildr' ),
+ 'fab fa-stumbleupon' => __( 'stumbleupon', 'buildr' ),
+ 'fab fa-stumbleupon-circle' => __( 'stumbleupon-circle', 'buildr' ),
+ 'fas fa-subscript' => __( 'subscript', 'buildr' ),
+ 'fas fa-subway' => __( 'subway', 'buildr' ),
+ 'fas fa-suitcase' => __( 'suitcase', 'buildr' ),
+ 'fas fa-sun' => __( 'sun', 'buildr' ),
+ 'far fa-sun' => __( 'sun', 'buildr' ),
+ 'fab fa-superpowers' => __( 'superpowers', 'buildr' ),
+ 'fas fa-superscript' => __( 'superscript', 'buildr' ),
+ 'fab fa-supple' => __( 'supple', 'buildr' ),
+ 'fas fa-sync' => __( 'sync', 'buildr' ),
+ 'fas fa-sync-alt' => __( 'sync-alt', 'buildr' ),
+ 'fas fa-syringe' => __( 'syringe', 'buildr' ),
+ 'fas fa-table' => __( 'table', 'buildr' ),
+ 'fas fa-table-tennis' => __( 'table-tennis', 'buildr' ),
+ 'fas fa-tablet' => __( 'tablet', 'buildr' ),
+ 'fas fa-tablet-alt' => __( 'tablet-alt', 'buildr' ),
+ 'fas fa-tablets' => __( 'tablets', 'buildr' ),
+ 'fas fa-tachometer-alt' => __( 'tachometer-alt', 'buildr' ),
+ 'fas fa-tag' => __( 'tag', 'buildr' ),
+ 'fas fa-tags' => __( 'tags', 'buildr' ),
+ 'fas fa-tape' => __( 'tape', 'buildr' ),
+ 'fas fa-tasks' => __( 'tasks', 'buildr' ),
+ 'fas fa-taxi' => __( 'taxi', 'buildr' ),
+ 'fab fa-telegram' => __( 'telegram', 'buildr' ),
+ 'fab fa-telegram-plane' => __( 'telegram-plane', 'buildr' ),
+ 'fab fa-tencent-weibo' => __( 'tencent-weibo', 'buildr' ),
+ 'fas fa-terminal' => __( 'terminal', 'buildr' ),
+ 'fas fa-text-height' => __( 'text-height', 'buildr' ),
+ 'fas fa-text-width' => __( 'text-width', 'buildr' ),
+ 'fas fa-th' => __( 'th', 'buildr' ),
+ 'fas fa-th-large' => __( 'th-large', 'buildr' ),
+ 'fas fa-th-list' => __( 'th-list', 'buildr' ),
+ 'fab fa-themeisle' => __( 'themeisle', 'buildr' ),
+ 'fas fa-thermometer' => __( 'thermometer', 'buildr' ),
+ 'fas fa-thermometer-empty' => __( 'thermometer-empty', 'buildr' ),
+ 'fas fa-thermometer-full' => __( 'thermometer-full', 'buildr' ),
+ 'fas fa-thermometer-half' => __( 'thermometer-half', 'buildr' ),
+ 'fas fa-thermometer-quarter' => __( 'thermometer-quarter', 'buildr' ),
+ 'fas fa-thermometer-three-quarters' => __( 'thermometer-three-quarters', 'buildr' ),
+ 'fas fa-thumbs-down' => __( 'thumbs-down', 'buildr' ),
+ 'far fa-thumbs-down' => __( 'thumbs-down', 'buildr' ),
+ 'fas fa-thumbs-up' => __( 'thumbs-up', 'buildr' ),
+ 'far fa-thumbs-up' => __( 'thumbs-up', 'buildr' ),
+ 'fas fa-thumbtack' => __( 'thumbtack', 'buildr' ),
+ 'fas fa-ticket-alt' => __( 'ticket-alt', 'buildr' ),
+ 'fas fa-times' => __( 'times', 'buildr' ),
+ 'fas fa-times-circle' => __( 'times-circle', 'buildr' ),
+ 'far fa-times-circle' => __( 'times-circle', 'buildr' ),
+ 'fas fa-tint' => __( 'tint', 'buildr' ),
+ 'fas fa-toggle-off' => __( 'toggle-off', 'buildr' ),
+ 'fas fa-toggle-on' => __( 'toggle-on', 'buildr' ),
+ 'fas fa-trademark' => __( 'trademark', 'buildr' ),
+ 'fas fa-train' => __( 'train', 'buildr' ),
+ 'fas fa-transgender' => __( 'transgender', 'buildr' ),
+ 'fas fa-transgender-alt' => __( 'transgender-alt', 'buildr' ),
+ 'fas fa-trash' => __( 'trash', 'buildr' ),
+ 'fas fa-trash-alt' => __( 'trash-alt', 'buildr' ),
+ 'far fa-trash-alt' => __( 'trash-alt', 'buildr' ),
+ 'fas fa-tree' => __( 'tree', 'buildr' ),
+ 'fab fa-trello' => __( 'trello', 'buildr' ),
+ 'fab fa-tripadvisor' => __( 'tripadvisor', 'buildr' ),
+ 'fas fa-trophy' => __( 'trophy', 'buildr' ),
+ 'fas fa-truck' => __( 'truck', 'buildr' ),
+ 'fas fa-truck-loading' => __( 'truck-loading', 'buildr' ),
+ 'fas fa-truck-moving' => __( 'truck-moving', 'buildr' ),
+ 'fas fa-tty' => __( 'tty', 'buildr' ),
+ 'fab fa-tumblr' => __( 'tumblr', 'buildr' ),
+ 'fab fa-tumblr-square' => __( 'tumblr-square', 'buildr' ),
+ 'fas fa-tv' => __( 'tv', 'buildr' ),
+ 'fab fa-twitch' => __( 'twitch', 'buildr' ),
+ 'fab fa-twitter' => __( 'twitter', 'buildr' ),
+ 'fab fa-twitter-square' => __( 'twitter-square', 'buildr' ),
+ 'fab fa-typo3' => __( 'typo3', 'buildr' ),
+ 'fab fa-uber' => __( 'uber', 'buildr' ),
+ 'fab fa-uikit' => __( 'uikit', 'buildr' ),
+ 'fas fa-umbrella' => __( 'umbrella', 'buildr' ),
+ 'fas fa-underline' => __( 'underline', 'buildr' ),
+ 'fas fa-undo' => __( 'undo', 'buildr' ),
+ 'fas fa-undo-alt' => __( 'undo-alt', 'buildr' ),
+ 'fab fa-uniregistry' => __( 'uniregistry', 'buildr' ),
+ 'fas fa-universal-access' => __( 'universal-access', 'buildr' ),
+ 'fas fa-university' => __( 'university', 'buildr' ),
+ 'fas fa-unlink' => __( 'unlink', 'buildr' ),
+ 'fas fa-unlock' => __( 'unlock', 'buildr' ),
+ 'fas fa-unlock-alt' => __( 'unlock-alt', 'buildr' ),
+ 'fab fa-untappd' => __( 'untappd', 'buildr' ),
+ 'fas fa-upload' => __( 'upload', 'buildr' ),
+ 'fab fa-usb' => __( 'usb', 'buildr' ),
+ 'fas fa-user' => __( 'user', 'buildr' ),
+ 'far fa-user' => __( 'user', 'buildr' ),
+ 'fas fa-user-circle' => __( 'user-circle', 'buildr' ),
+ 'far fa-user-circle' => __( 'user-circle', 'buildr' ),
+ 'fas fa-user-md' => __( 'user-md', 'buildr' ),
+ 'fas fa-user-plus' => __( 'user-plus', 'buildr' ),
+ 'fas fa-user-secret' => __( 'user-secret', 'buildr' ),
+ 'fas fa-user-times' => __( 'user-times', 'buildr' ),
+ 'fas fa-users' => __( 'users', 'buildr' ),
+ 'fab fa-ussunnah' => __( 'ussunnah', 'buildr' ),
+ 'fas fa-utensil-spoon' => __( 'utensil-spoon', 'buildr' ),
+ 'fas fa-utensils' => __( 'utensils', 'buildr' ),
+ 'fab fa-vaadin' => __( 'vaadin', 'buildr' ),
+ 'fas fa-venus' => __( 'venus', 'buildr' ),
+ 'fas fa-venus-double' => __( 'venus-double', 'buildr' ),
+ 'fas fa-venus-mars' => __( 'venus-mars', 'buildr' ),
+ 'fab fa-viacoin' => __( 'viacoin', 'buildr' ),
+ 'fab fa-viadeo' => __( 'viadeo', 'buildr' ),
+ 'fab fa-viadeo-square' => __( 'viadeo-square', 'buildr' ),
+ 'fas fa-vial' => __( 'vial', 'buildr' ),
+ 'fas fa-vials' => __( 'vials', 'buildr' ),
+ 'fab fa-viber' => __( 'viber', 'buildr' ),
+ 'fas fa-video' => __( 'video', 'buildr' ),
+ 'fas fa-video-slash' => __( 'video-slash', 'buildr' ),
+ 'fab fa-vimeo' => __( 'vimeo', 'buildr' ),
+ 'fab fa-vimeo-square' => __( 'vimeo-square', 'buildr' ),
+ 'fab fa-vimeo-v' => __( 'vimeo-v', 'buildr' ),
+ 'fab fa-vine' => __( 'vine', 'buildr' ),
+ 'fab fa-vk' => __( 'vk', 'buildr' ),
+ 'fab fa-vnv' => __( 'vnv', 'buildr' ),
+ 'fas fa-volleyball-ball' => __( 'volleyball-ball', 'buildr' ),
+ 'fas fa-volume-down' => __( 'volume-down', 'buildr' ),
+ 'fas fa-volume-off' => __( 'volume-off', 'buildr' ),
+ 'fas fa-volume-up' => __( 'volume-up', 'buildr' ),
+ 'fab fa-vuejs' => __( 'vuejs', 'buildr' ),
+ 'fas fa-warehouse' => __( 'warehouse', 'buildr' ),
+ 'fab fa-weibo' => __( 'weibo', 'buildr' ),
+ 'fas fa-weight' => __( 'weight', 'buildr' ),
+ 'fab fa-weixin' => __( 'weixin', 'buildr' ),
+ 'fab fa-whatsapp' => __( 'whatsapp', 'buildr' ),
+ 'fab fa-whatsapp-square' => __( 'whatsapp-square', 'buildr' ),
+ 'fas fa-wheelchair' => __( 'wheelchair', 'buildr' ),
+ 'fab fa-whmcs' => __( 'whmcs', 'buildr' ),
+ 'fas fa-wifi' => __( 'wifi', 'buildr' ),
+ 'fab fa-wikipedia-w' => __( 'wikipedia-w', 'buildr' ),
+ 'fas fa-window-close' => __( 'window-close', 'buildr' ),
+ 'far fa-window-close' => __( 'window-close', 'buildr' ),
+ 'fas fa-window-maximize' => __( 'window-maximize', 'buildr' ),
+ 'far fa-window-maximize' => __( 'window-maximize', 'buildr' ),
+ 'fas fa-window-minimize' => __( 'window-minimize', 'buildr' ),
+ 'far fa-window-minimize' => __( 'window-minimize', 'buildr' ),
+ 'fas fa-window-restore' => __( 'window-restore', 'buildr' ),
+ 'far fa-window-restore' => __( 'window-restore', 'buildr' ),
+ 'fab fa-windows' => __( 'windows', 'buildr' ),
+ 'fas fa-wine-glass' => __( 'wine-glass', 'buildr' ),
+ 'fas fa-won-sign' => __( 'won-sign', 'buildr' ),
+ 'fab fa-wordpress' => __( 'wordpress', 'buildr' ),
+ 'fab fa-wordpress-simple' => __( 'wordpress-simple', 'buildr' ),
+ 'fab fa-wpbeginner' => __( 'wpbeginner', 'buildr' ),
+ 'fab fa-wpexplorer' => __( 'wpexplorer', 'buildr' ),
+ 'fab fa-wpforms' => __( 'wpforms', 'buildr' ),
+ 'fas fa-wrench' => __( 'wrench', 'buildr' ),
+ 'fas fa-x-ray' => __( 'x-ray', 'buildr' ),
+ 'fab fa-xbox' => __( 'xbox', 'buildr' ),
+ 'fab fa-xing' => __( 'xing', 'buildr' ),
+ 'fab fa-xing-square' => __( 'xing-square', 'buildr' ),
+ 'fab fa-y-combinator' => __( 'y-combinator', 'buildr' ),
+ 'fab fa-yahoo' => __( 'yahoo', 'buildr' ),
+ 'fab fa-yandex' => __( 'yandex', 'buildr' ),
+ 'fab fa-yandex-international' => __( 'yandex-international', 'buildr' ),
+ 'fab fa-yelp' => __( 'yelp', 'buildr' ),
+ 'fas fa-yen-sign' => __( 'yen-sign', 'buildr' ),
+ 'fab fa-yoast' => __( 'yoast', 'buildr' ),
+ 'fab fa-youtube' => __( 'youtube', 'buildr' ),
+ 'fab fa-youtube-square' => __( 'youtube-square', 'buildr' ),
+ );
+
+
+ return apply_filters( 'FONTAWESOME_ARRAY', $fonts_arr );
+ }
+
+
+
+ }
+ global $wbtmcore;
+ $wbtmcore = new FormFieldsGenerator();
+}
diff --git a/lib/classes/class-form-fields-wrapper.php b/lib/classes/class-form-fields-wrapper.php
new file mode 100755
index 0000000..c18fcb9
--- /dev/null
+++ b/lib/classes/class-form-fields-wrapper.php
@@ -0,0 +1,8898 @@
+
+ data-depends="[]"
+ id="field-wrapper-" class=" field-wrapper field-post-objects-wrapper
+ field-post-objects-wrapper-">
+
+ $arg):
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+ data-depends="[]"
+ id="field-wrapper-" class=" field-wrapper field-switcher-wrapper
+ field-switcher-wrapper-">
+
+
+
+
+
+
+
+
+ data-depends="[]"
+ id="field-wrapper-" class=" field-wrapper field-google-map-wrapper
+ field-google-map-wrapper-">
+
+ $name):
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ data-depends="[]"
+ id="field-wrapper-" class=" field-wrapper field-border-wrapper
+ field-border-wrapper-">
+
+
+ Width
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Style
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Color
+
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-margin-wrapper
+ field-margin-wrapper-">
+
+ $arg):
+ $name = $arg['name'];
+ $unit = $values[$index]['unit'];
+ ?>
+
+
+ ' />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-padding-wrapper
+ field-padding-wrapper-">
+
+
+ $arg):
+ $name = $arg['name'];
+ $unit = $values[$index]['unit'];
+ ?>
+
+
+ ' />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-margin-wrapper
+ field-margin-wrapper-">
+
+
+ $arg):
+ $name = $arg['name'];
+ $unit = $values[$index]['unit'];
+ ?>
+
+
+ ' />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-google-recaptcha-wrapper
+ field-google-recaptcha-wrapper-">
+
+
+
+
+
+
+
+
+
+
+
+ args_from_string( $args );
+
+ $value = isset( $option['value'] ) ? $option['value'] : '';
+ $value = !empty($value) ? $value : $default;
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-img-select-wrapper
+ field-img-select-wrapper-">
+
+
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-submit-wrapper
+ field-submit-wrapper-">
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-nonce-wrapper
+ field-nonce-wrapper-">
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-color-wrapper
+ field-color-wrapper-">
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-email-wrapper
+ field-email-wrapper-">
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-password-wrapper
+ field-password-wrapper-">
+
+
+
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-search-wrapper
+ field-search-wrapper-">
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-month-wrapper
+ field-month-wrapper-">
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-date-wrapper
+ field-date-wrapper-">
+
+
+
+
+ data-depends="[]" class=" field-wrapper field-url-wrapper field-url-wrapper-">
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-time-wrapper
+ field-time-wrapper-">
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-tel-wrapper field-tel-wrapper-">
+
+
+
+
+
+
+ data-depends="[]"
+ id="field-wrapper-" class=" field-wrapper field-text-wrapper
+ field-text-wrapper-">
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-hidden-wrapper
+ field-hidden-wrapper-">
+
+
+
+ ';
+ $sortable = isset( $option['sortable'] ) ? $option['sortable'] : true;
+ $default = isset( $option['default'] ) ? $option['default'] : array();
+
+ $values = isset( $option['value'] ) ? $option['value'] : array();
+ $values = !empty($values) ? $values : $default;
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-text-multi-wrapper
+ field-text-multi-wrapper-">
+
Add
+
+
+
+
+
+ data-depends="[]"
+ id="field-wrapper-" class=" field-wrapper field-textarea-wrapper field-textarea-wrapper-">
+
+
+
+
+
+ true,
+ 'mode' => "javascript",
+ );
+
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-code-wrapper
+ field-code-wrapper-">
+
+
+
+
+ args_from_string( $args );
+
+ $value = isset( $option['value'] ) ? $option['value'] : array();
+ $value = !empty($value) ? $value : $default;
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+ ob_start();
+ ?>
+ data-depends="[]"
+ id="field-wrapper-" class=" field-wrapper field-checkbox-wrapper
+ field-checkbox-wrapper-">
+ $argName ):
+ $checked = ( $key == $value ) ? "checked" : "";
+ ?>
+
+
+
+
+
+ args_from_string( $args );
+
+ $value = isset( $option['value'] ) ? $option['value'] : array();
+ $value = !empty($value) ? $value : $default;
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name.'[]' : $id.'[]';
+
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-checkbox-wrapper
+ field-checkbox-wrapper-">
+ $argName ):
+ $checked = is_array( $value ) && in_array( $key, $value ) ? "checked" : "";
+ ?>
+
+
+
+
+ args_from_string( $args );
+
+ $value = isset( $option['value'] ) ? $option['value'] : '';
+ $value = !empty($value) ? $value : $default;
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-radio-wrapper
+ field-radio-wrapper-">
+ $argName ):
+ $checked = ( $key == $value ) ? "checked" : "";
+ ?>
+
+
+
+
+ args_from_string( $args );
+ $default = isset( $option['default'] ) ? $option['default'] : "";
+ $multiple = isset( $option['multiple'] ) ? $option['multiple'] : false;
+
+ $value = isset( $option['value'] ) ? $option['value'] : '';
+ $value = !empty($value) ? $value : $default;
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-select-wrapper
+ field-select-wrapper-">
+
+
+
+
+ $argName ):
+ if( $multiple ) $selected = is_array( $value ) && in_array( $key, $value ) ? "selected" : "";
+ else $selected = ($value == $key) ? "selected" : "";
+ ?>
+
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-range-wrapper
+ field-range-wrapper-">
+ ' name='' id='' value='' />
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-range-input-wrapper
+ field-range-input-wrapper-">
+
+ ' max='' step='' value='' />
+
+
+
+ args_from_string( $args );
+
+ $value = isset( $option['value'] ) ? $option['value'] : "";
+ $value = !empty($value) ? $value : $default;
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-switch-wrapper
+ field-switch-wrapper-">
+ $argName ):
+ $checked = ( $key == $value ) ? "checked" : "";
+ ?>
+
+
+
+
+ args_from_string( $args );
+
+ $value = isset( $option['value'] ) ? $option['value'] : array();
+ $value = !empty($value) ? $value : $default;
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-switch-multi-wrapper
+ field-switch-multi-wrapper-">
+ $argName ):
+ $checked = is_array( $value ) && in_array( $key, $value ) ? "checked" : "";
+ ?>
+
+
+
+ args_from_string( $args );
+
+ $value = isset( $option['value'] ) ? $option['value'] : "";
+ $value = !empty($value) ? $value : $default;
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+
+ ob_start();
+ ?>
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-time-format-wrapper
+ field-time-format-wrapper-">
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-date-format-wrapper
+ field-date-format-wrapper-">
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-datepicker-wrapper
+ field-datepicker-wrapper-">
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-colorpicker-wrapper
+ field-colorpicker-wrapper-">
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-colorpicker-multi-wrapper
+ field-colorpicker-multi-wrapper-">
+
Add
+
+
+
+
+
+ '#1B2A41','hover' => '#3F3244','active' => '#60495A','visited' => '#7D8CA3' );
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-link-color-wrapper
+ field-link-color-wrapper-">
+ $value):
+ ?>
+
+ $value):
+ ?>
+
+
+
+
+
+ args_from_string( $args );
+
+ $value = isset( $option['value'] ) ? $option['value'] : "";
+ $values = !empty($value) ? $value : $default;
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-user-multi-wrapper
+ field-user-multi-wrapper-">
+
+
+
Choose User
+
+
+ $iconTitle):
+ $user_data = get_user_by('ID',$user_id);
+ $get_avatar_url = get_avatar_url($user_id,array('size'=>'60'));
+ ?>
+ -
+
+
+
+
+
+
+
+
+
+
+ args_from_string( $args );
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-icon-wrapper
+ field-icon-wrapper-">
+
+
+
+
+
+
Choose Icon
+
+
+ $iconTitle):
+ ?>
+
+
+
+
+
+
+
+ args_from_string( $args );
+
+ $value = isset( $option['value'] ) ? $option['value'] : "";
+ $values = !empty($value) ? $value : $default;
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-icon-multi-wrapper
+ field-icon-multi-wrapper-">
+
+
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-number-wrapper
+ field-number-wrapper-">
+
+
+
+ $id);
+
+ $value = isset( $option['value '] ) ? $option['value '] : "";
+ $value = !empty($value) ? $value : $default;
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-wp_editor-wrapper
+ field-wp_editor-wrapper-">
+
+
+
+ args_from_string( $args );
+ $default = isset( $option['default'] ) ? $option['default'] : "";
+ $multiple = isset( $option['multiple'] ) ? $option['multiple'] : false;
+
+ $value = isset( $option['value'] ) ? $option['value'] : '';
+ $value = !empty($value) ? $value : $default;
+
+ $field_id = $id;
+ $field_name = !empty( $field_name ) ? $field_name : $id;
+
+ if($multiple):
+ $value = !empty($value) ? $value : array();
+ endif;
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-select2-wrapper
+ field-select2-wrapper-">
+
+
+
+
+ $name ):
+
+ if( $multiple ) $selected = in_array( $key, $value ) ? "selected" : "";
+ else $selected = $value == $key ? "selected" : "";
+ ?>
+
+
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-faq-wrapper
+ field-faq-wrapper-">
+
+ $value ):
+ $title = $value['title'];
+ $link = $value['link'];
+ $content = $value['content'];
+ ?>
+
+
+
+
+
+ '100%','992px'=>'50%', '1200px'=>'30%', );
+ $heights = isset( $option['height'] ) ? $option['height'] : array('768px'=>'auto','992px'=>'250px', '1200px'=>'250px', );
+
+
+ if(!empty($conditions)):
+
+ $depends = '';
+
+ $field = isset($conditions['field']) ? $conditions['field'] :'';
+ $cond_value = isset($conditions['value']) ? $conditions['value']: '';
+ $type = isset($conditions['type']) ? $conditions['type'] : '';
+ $pattern = isset($conditions['pattern']) ? $conditions['pattern'] : '';
+ $modifier = isset($conditions['modifier']) ? $conditions['modifier'] : '';
+ $like = isset($conditions['like']) ? $conditions['like'] : '';
+ $strict = isset($conditions['strict']) ? $conditions['strict'] : '';
+ $empty = isset($conditions['empty']) ? $conditions['empty'] : '';
+ $sign = isset($conditions['sign']) ? $conditions['sign'] : '';
+ $min = isset($conditions['min']) ? $conditions['min'] : '';
+ $max = isset($conditions['max']) ? $conditions['max'] : '';
+
+ $depends .= "{'[name=".$field."]':";
+ $depends .= '{';
+
+ if(!empty($type)):
+ $depends .= "'type':";
+ $depends .= "'".$type."'";
+ endif;
+
+ if(!empty($modifier)):
+ $depends .= ",'modifier':";
+ $depends .= "'".$modifier."'";
+ endif;
+
+ if(!empty($like)):
+ $depends .= ",'like':";
+ $depends .= "'".$like."'";
+ endif;
+
+ if(!empty($strict)):
+ $depends .= ",'strict':";
+ $depends .= "'".$strict."'";
+ endif;
+
+ if(!empty($empty)):
+ $depends .= ",'empty':";
+ $depends .= "'".$empty."'";
+ endif;
+
+ if(!empty($sign)):
+ $depends .= ",'sign':";
+ $depends .= "'".$sign."'";
+ endif;
+
+ if(!empty($min)):
+ $depends .= ",'min':";
+ $depends .= "'".$min."'";
+ endif;
+
+ if(!empty($max)):
+ $depends .= ",'max':";
+ $depends .= "'".$max."'";
+ endif;
+ if(!empty($cond_value)):
+ $depends .= ",'value':";
+ if(is_array($cond_value)):
+ $count= count($cond_value);
+ $i = 1;
+ $depends .= "[";
+ foreach ($cond_value as $val):
+ $depends .= "'".$val."'";
+ if($i<$count)
+ $depends .= ",";
+ $i++;
+ endforeach;
+ $depends .= "]";
+ else:
+ $depends .= "[";
+ $depends .= "'".$cond_value."'";
+ $depends .= "]";
+ endif;
+ endif;
+ $depends .= '}}';
+
+ endif;
+
+
+
+
+ ob_start();
+ ?>
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-grid-wrapper
+ field-grid-wrapper-">
+ $grid_item){
+ $title = isset($grid_item['title']) ? $grid_item['title'] : '';
+ $link = isset($grid_item['link']) ? $grid_item['link'] : '';
+ $thumb = isset($grid_item['thumb']) ? $grid_item['thumb'] : '';
+ ?>
+
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-color-palette-wrapper
+ field-color-palette-wrapper-">
+ $color ):
+
+ $checked = ( $key == $value ) ? "checked" : "";
+ ?>
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-color-palette-multi-wrapper
+ field-color-palette-multi-wrapper-">
+ $color ):
+ $checked = is_array( $value ) && in_array( $key, $value ) ? "checked" : "";
+ ?>
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-media-wrapper
+ field-media-wrapper-">
+
+
+
Upload
Clear
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-media-multi-wrapper
+ field-media-multi-wrapper-">
+
Upload
Clear
+
+
+
+
+
+ data-depends="[]"
+ id="field-wrapper-" class=" field-wrapper field-custom-html-wrapper
+ field-custom-html-wrapper-">
+
+
+
+
+
+ data-depends="[]" id="field-wrapper-" class=" field-wrapper field-repeatable-wrapper
+ field-repeatable-wrapper-">
+
Add
+
+ $val):
+ $title_field_val = isset($val[$title_field]) ? $val[$title_field] : '#'.$count;
+ ?>
+
+
+
+
+ $field):
+ $type = $field['type'];
+ $item_id = $field['item_id'];
+ $name = $field['name'];
+ $title_field_class = ($title_field == $field_index) ? 'title-field':'';
+ ?>
+
+
+
+
+
+
+
+
+ get_pages_array();
+ if( strpos( $string, 'POSTS_IDS_ARRAY' ) !== false ) return $this->get_posts_array();
+ if( strpos( $string, 'POST_TYPES_ARRAY' ) !== false ) return $this->get_post_types_array();
+ if( strpos( $string, 'TAX_' ) !== false ) return $this->get_taxonomies_array( $string );
+ if( strpos( $string, 'USER_ROLES' ) !== false ) return $this->get_user_roles_array();
+ if( strpos( $string, 'USER_IDS_ARRAY' ) !== false ) return $this->get_user_ids_array();
+ if( strpos( $string, 'MENUS' ) !== false ) return $this->get_menus_array();
+ if( strpos( $string, 'SIDEBARS_ARRAY' ) !== false ) return $this->get_sidebars_array();
+ if( strpos( $string, 'THUMB_SIEZS_ARRAY' ) !== false ) return $this->get_thumb_sizes_array();
+ if( strpos( $string, 'FONTAWESOME_ARRAY' ) !== false ) return $this->get_font_aws_array();
+
+ return array();
+ }
+
+
+
+
+ public function get_taxonomies_array( $string ){
+
+ $taxonomies = array();
+
+ preg_match_all( "/\%([^\]]*)\%/", $string, $matches );
+
+ if( isset( $matches[1][0] ) ) $taxonomy = $matches[1][0];
+ else throw new Pick_error('Invalid taxonomy declaration !');
+
+ if( ! taxonomy_exists( $taxonomy ) ) throw new Pick_error("Taxonomy $taxonomy doesn't exists !");
+
+ $terms = get_terms( $taxonomy, array(
+ 'hide_empty' => false,
+ ) );
+
+ foreach( $terms as $term ) $taxonomies[ $term->term_id ] = $term->name;
+
+ return $taxonomies;
+ }
+
+
+
+ public function get_user_ids_array(){
+
+ $user_ids = array();
+ $users = get_users();
+
+ foreach( $users as $user ) $user_ids[ $user->ID ] = $user->display_name. '(#'.$user->ID.')';
+
+ return apply_filters( 'USER_IDS_ARRAY', $user_ids );
+ }
+
+
+ public function get_pages_array(){
+
+ $pages_array = array();
+ foreach( get_pages() as $page ) $pages_array[ $page->ID ] = $page->post_title;
+
+ return apply_filters( 'PAGES_IDS_ARRAY', $pages_array );
+ }
+
+ public function get_menus_array(){
+
+ $menus = get_registered_nav_menus();
+
+
+
+ return apply_filters( 'MENUS_ARRAY', $menus );
+ }
+
+ public function get_sidebars_array(){
+
+ global $wp_registered_sidebars;
+ $sidebars = $wp_registered_sidebars;
+
+ foreach ($sidebars as $index => $sidebar){
+
+ $sidebars_name[$index] = $sidebar['name'];
+ }
+
+
+ return apply_filters( 'SIDEBARS_ARRAY', $sidebars_name );
+ }
+
+ public function get_user_roles_array(){
+ require_once ABSPATH . 'wp-admin/includes/user.php';
+
+ $roles = get_editable_roles();
+
+ foreach ($roles as $index => $data){
+
+ $role_name[$index] = $data['name'];
+ }
+
+ return apply_filters( 'USER_ROLES', $role_name );
+ }
+
+
+
+ public function get_post_types_array(){
+
+ $post_types = get_post_types('', 'names' );
+ $pages_array = array();
+ foreach( $post_types as $index => $name ) $pages_array[ $index ] = $name;
+
+ return apply_filters( 'POST_TYPES_ARRAY', $pages_array );
+ }
+
+
+ public function get_posts_array(){
+
+ $posts_array = array();
+ foreach( get_posts(array('posts_per_page'=>-1)) as $page ) $posts_array[ $page->ID ] = $page->post_title;
+
+ return apply_filters( 'POSTS_IDS_ARRAY', $posts_array );
+ }
+
+
+ public function get_thumb_sizes_array(){
+
+ $get_intermediate_image_sizes = get_intermediate_image_sizes();
+ $get_intermediate_image_sizes = array_merge($get_intermediate_image_sizes,array('full'));
+ $thumb_sizes_array = array();
+
+ foreach( $get_intermediate_image_sizes as $key => $name ):
+ $size_key = str_replace('_', ' ',$name);
+ $size_key = str_replace('-', ' ',$size_key);
+ $size_name = ucfirst($size_key);
+ $thumb_sizes_array[$name] = $size_name;
+ endforeach;
+
+ return apply_filters( 'THUMB_SIEZS_ARRAY', $get_intermediate_image_sizes );
+ }
+
+
+
+
+ public function get_font_aws_array(){
+
+ $fonts_arr = array (
+ 'fab fa-500px' => __( '500px', 'buildr' ),
+ 'fab fa-accessible-icon' => __( 'accessible-icon', 'buildr' ),
+ 'fab fa-accusoft' => __( 'accusoft', 'buildr' ),
+ 'fas fa-address-book' => __( 'address-book', 'buildr' ),
+ 'far fa-address-book' => __( 'address-book', 'buildr' ),
+ 'fas fa-address-card' => __( 'address-card', 'buildr' ),
+ 'far fa-address-card' => __( 'address-card', 'buildr' ),
+ 'fas fa-adjust' => __( 'adjust', 'buildr' ),
+ 'fab fa-adn' => __( 'adn', 'buildr' ),
+ 'fab fa-adversal' => __( 'adversal', 'buildr' ),
+ 'fab fa-affiliatetheme' => __( 'affiliatetheme', 'buildr' ),
+ 'fab fa-algolia' => __( 'algolia', 'buildr' ),
+ 'fas fa-align-center' => __( 'align-center', 'buildr' ),
+ 'fas fa-align-justify' => __( 'align-justify', 'buildr' ),
+ 'fas fa-align-left' => __( 'align-left', 'buildr' ),
+ 'fas fa-align-right' => __( 'align-right', 'buildr' ),
+ 'fas fa-allergies' => __( 'allergies', 'buildr' ),
+ 'fab fa-amazon' => __( 'amazon', 'buildr' ),
+ 'fab fa-amazon-pay' => __( 'amazon-pay', 'buildr' ),
+ 'fas fa-ambulance' => __( 'ambulance', 'buildr' ),
+ 'fas fa-american-sign-language-interpreting' => __( 'american-sign-language-interpreting', 'buildr' ),
+ 'fab fa-amilia' => __( 'amilia', 'buildr' ),
+ 'fas fa-anchor' => __( 'anchor', 'buildr' ),
+ 'fab fa-android' => __( 'android', 'buildr' ),
+ 'fab fa-angellist' => __( 'angellist', 'buildr' ),
+ 'fas fa-angle-double-down' => __( 'angle-double-down', 'buildr' ),
+ 'fas fa-angle-double-left' => __( 'angle-double-left', 'buildr' ),
+ 'fas fa-angle-double-right' => __( 'angle-double-right', 'buildr' ),
+ 'fas fa-angle-double-up' => __( 'angle-double-up', 'buildr' ),
+ 'fas fa-angle-down' => __( 'angle-down', 'buildr' ),
+ 'fas fa-angle-left' => __( 'angle-left', 'buildr' ),
+ 'fas fa-angle-right' => __( 'angle-right', 'buildr' ),
+ 'fas fa-angle-up' => __( 'angle-up', 'buildr' ),
+ 'fab fa-angrycreative' => __( 'angrycreative', 'buildr' ),
+ 'fab fa-angular' => __( 'angular', 'buildr' ),
+ 'fab fa-app-store' => __( 'app-store', 'buildr' ),
+ 'fab fa-app-store-ios' => __( 'app-store-ios', 'buildr' ),
+ 'fab fa-apper' => __( 'apper', 'buildr' ),
+ 'fab fa-apple' => __( 'apple', 'buildr' ),
+ 'fab fa-apple-pay' => __( 'apple-pay', 'buildr' ),
+ 'fas fa-archive' => __( 'archive', 'buildr' ),
+ 'fas fa-arrow-alt-circle-down' => __( 'arrow-alt-circle-down', 'buildr' ),
+ 'far fa-arrow-alt-circle-down' => __( 'arrow-alt-circle-down', 'buildr' ),
+ 'fas fa-arrow-alt-circle-left' => __( 'arrow-alt-circle-left', 'buildr' ),
+ 'far fa-arrow-alt-circle-left' => __( 'arrow-alt-circle-left', 'buildr' ),
+ 'fas fa-arrow-alt-circle-right' => __( 'arrow-alt-circle-right', 'buildr' ),
+ 'far fa-arrow-alt-circle-right' => __( 'arrow-alt-circle-right', 'buildr' ),
+ 'fas fa-arrow-alt-circle-up' => __( 'arrow-alt-circle-up', 'buildr' ),
+ 'far fa-arrow-alt-circle-up' => __( 'arrow-alt-circle-up', 'buildr' ),
+ 'fas fa-arrow-circle-down' => __( 'arrow-circle-down', 'buildr' ),
+ 'fas fa-arrow-circle-left' => __( 'arrow-circle-left', 'buildr' ),
+ 'fas fa-arrow-circle-right' => __( 'arrow-circle-right', 'buildr' ),
+ 'fas fa-arrow-circle-up' => __( 'arrow-circle-up', 'buildr' ),
+ 'fas fa-arrow-down' => __( 'arrow-down', 'buildr' ),
+ 'fas fa-arrow-left' => __( 'arrow-left', 'buildr' ),
+ 'fas fa-arrow-right' => __( 'arrow-right', 'buildr' ),
+ 'fas fa-arrow-up' => __( 'arrow-up', 'buildr' ),
+ 'fas fa-arrows-alt' => __( 'arrows-alt', 'buildr' ),
+ 'fas fa-arrows-alt-h' => __( 'arrows-alt-h', 'buildr' ),
+ 'fas fa-arrows-alt-v' => __( 'arrows-alt-v', 'buildr' ),
+ 'fas fa-assistive-listening-systems' => __( 'assistive-listening-systems', 'buildr' ),
+ 'fas fa-asterisk' => __( 'asterisk', 'buildr' ),
+ 'fab fa-asymmetrik' => __( 'asymmetrik', 'buildr' ),
+ 'fas fa-at' => __( 'at', 'buildr' ),
+ 'fab fa-audible' => __( 'audible', 'buildr' ),
+ 'fas fa-audio-description' => __( 'audio-description', 'buildr' ),
+ 'fab fa-autoprefixer' => __( 'autoprefixer', 'buildr' ),
+ 'fab fa-avianex' => __( 'avianex', 'buildr' ),
+ 'fab fa-aviato' => __( 'aviato', 'buildr' ),
+ 'fab fa-aws' => __( 'aws', 'buildr' ),
+ 'fas fa-backward' => __( 'backward', 'buildr' ),
+ 'fas fa-balance-scale' => __( 'balance-scale', 'buildr' ),
+ 'fas fa-ban' => __( 'ban', 'buildr' ),
+ 'fas fa-band-aid' => __( 'band-aid', 'buildr' ),
+ 'fab fa-bandcamp' => __( 'bandcamp', 'buildr' ),
+ 'fas fa-barcode' => __( 'barcode', 'buildr' ),
+ 'fas fa-bars' => __( 'bars', 'buildr' ),
+ 'fas fa-baseball-ball' => __( 'baseball-ball', 'buildr' ),
+ 'fas fa-basketball-ball' => __( 'basketball-ball', 'buildr' ),
+ 'fas fa-bath' => __( 'bath', 'buildr' ),
+ 'fas fa-battery-empty' => __( 'battery-empty', 'buildr' ),
+ 'fas fa-battery-full' => __( 'battery-full', 'buildr' ),
+ 'fas fa-battery-half' => __( 'battery-half', 'buildr' ),
+ 'fas fa-battery-quarter' => __( 'battery-quarter', 'buildr' ),
+ 'fas fa-battery-three-quarters' => __( 'battery-three-quarters', 'buildr' ),
+ 'fas fa-bed' => __( 'bed', 'buildr' ),
+ 'fas fa-beer' => __( 'beer', 'buildr' ),
+ 'fab fa-behance' => __( 'behance', 'buildr' ),
+ 'fab fa-behance-square' => __( 'behance-square', 'buildr' ),
+ 'fas fa-bell' => __( 'bell', 'buildr' ),
+ 'far fa-bell' => __( 'bell', 'buildr' ),
+ 'fas fa-bell-slash' => __( 'bell-slash', 'buildr' ),
+ 'far fa-bell-slash' => __( 'bell-slash', 'buildr' ),
+ 'fas fa-bicycle' => __( 'bicycle', 'buildr' ),
+ 'fab fa-bimobject' => __( 'bimobject', 'buildr' ),
+ 'fas fa-binoculars' => __( 'binoculars', 'buildr' ),
+ 'fas fa-birthday-cake' => __( 'birthday-cake', 'buildr' ),
+ 'fab fa-bitbucket' => __( 'bitbucket', 'buildr' ),
+ 'fab fa-bitcoin' => __( 'bitcoin', 'buildr' ),
+ 'fab fa-bity' => __( 'bity', 'buildr' ),
+ 'fab fa-black-tie' => __( 'black-tie', 'buildr' ),
+ 'fab fa-blackberry' => __( 'blackberry', 'buildr' ),
+ 'fas fa-blind' => __( 'blind', 'buildr' ),
+ 'fab fa-blogger' => __( 'blogger', 'buildr' ),
+ 'fab fa-blogger-b' => __( 'blogger-b', 'buildr' ),
+ 'fab fa-bluetooth' => __( 'bluetooth', 'buildr' ),
+ 'fab fa-bluetooth-b' => __( 'bluetooth-b', 'buildr' ),
+ 'fas fa-bold' => __( 'bold', 'buildr' ),
+ 'fas fa-bolt' => __( 'bolt', 'buildr' ),
+ 'fas fa-bomb' => __( 'bomb', 'buildr' ),
+ 'fas fa-book' => __( 'book', 'buildr' ),
+ 'fas fa-bookmark' => __( 'bookmark', 'buildr' ),
+ 'far fa-bookmark' => __( 'bookmark', 'buildr' ),
+ 'fas fa-bowling-ball' => __( 'bowling-ball', 'buildr' ),
+ 'fas fa-box' => __( 'box', 'buildr' ),
+ 'fas fa-box-open' => __( 'box-open', 'buildr' ),
+ 'fas fa-boxes' => __( 'boxes', 'buildr' ),
+ 'fas fa-braille' => __( 'braille', 'buildr' ),
+ 'fas fa-briefcase' => __( 'briefcase', 'buildr' ),
+ 'fas fa-briefcase-medical' => __( 'briefcase-medical', 'buildr' ),
+ 'fab fa-btc' => __( 'btc', 'buildr' ),
+ 'fas fa-bug' => __( 'bug', 'buildr' ),
+ 'fas fa-building' => __( 'building', 'buildr' ),
+ 'far fa-building' => __( 'building', 'buildr' ),
+ 'fas fa-bullhorn' => __( 'bullhorn', 'buildr' ),
+ 'fas fa-bullseye' => __( 'bullseye', 'buildr' ),
+ 'fas fa-burn' => __( 'burn', 'buildr' ),
+ 'fab fa-buromobelexperte' => __( 'buromobelexperte', 'buildr' ),
+ 'fas fa-bus' => __( 'bus', 'buildr' ),
+ 'fab fa-buysellads' => __( 'buysellads', 'buildr' ),
+ 'fas fa-calculator' => __( 'calculator', 'buildr' ),
+ 'fas fa-calendar' => __( 'calendar', 'buildr' ),
+ 'far fa-calendar' => __( 'calendar', 'buildr' ),
+ 'fas fa-calendar-alt' => __( 'calendar-alt', 'buildr' ),
+ 'far fa-calendar-alt' => __( 'calendar-alt', 'buildr' ),
+ 'fas fa-calendar-check' => __( 'calendar-check', 'buildr' ),
+ 'far fa-calendar-check' => __( 'calendar-check', 'buildr' ),
+ 'fas fa-calendar-minus' => __( 'calendar-minus', 'buildr' ),
+ 'far fa-calendar-minus' => __( 'calendar-minus', 'buildr' ),
+ 'fas fa-calendar-plus' => __( 'calendar-plus', 'buildr' ),
+ 'far fa-calendar-plus' => __( 'calendar-plus', 'buildr' ),
+ 'fas fa-calendar-times' => __( 'calendar-times', 'buildr' ),
+ 'far fa-calendar-times' => __( 'calendar-times', 'buildr' ),
+ 'fas fa-camera' => __( 'camera', 'buildr' ),
+ 'fas fa-camera-retro' => __( 'camera-retro', 'buildr' ),
+ 'fas fa-capsules' => __( 'capsules', 'buildr' ),
+ 'fas fa-car' => __( 'car', 'buildr' ),
+ 'fas fa-caret-down' => __( 'caret-down', 'buildr' ),
+ 'fas fa-caret-left' => __( 'caret-left', 'buildr' ),
+ 'fas fa-caret-right' => __( 'caret-right', 'buildr' ),
+ 'fas fa-caret-square-down' => __( 'caret-square-down', 'buildr' ),
+ 'far fa-caret-square-down' => __( 'caret-square-down', 'buildr' ),
+ 'fas fa-caret-square-left' => __( 'caret-square-left', 'buildr' ),
+ 'far fa-caret-square-left' => __( 'caret-square-left', 'buildr' ),
+ 'fas fa-caret-square-right' => __( 'caret-square-right', 'buildr' ),
+ 'far fa-caret-square-right' => __( 'caret-square-right', 'buildr' ),
+ 'fas fa-caret-square-up' => __( 'caret-square-up', 'buildr' ),
+ 'far fa-caret-square-up' => __( 'caret-square-up', 'buildr' ),
+ 'fas fa-caret-up' => __( 'caret-up', 'buildr' ),
+ 'fas fa-cart-arrow-down' => __( 'cart-arrow-down', 'buildr' ),
+ 'fas fa-cart-plus' => __( 'cart-plus', 'buildr' ),
+ 'fab fa-cc-amazon-pay' => __( 'cc-amazon-pay', 'buildr' ),
+ 'fab fa-cc-amex' => __( 'cc-amex', 'buildr' ),
+ 'fab fa-cc-apple-pay' => __( 'cc-apple-pay', 'buildr' ),
+ 'fab fa-cc-diners-club' => __( 'cc-diners-club', 'buildr' ),
+ 'fab fa-cc-discover' => __( 'cc-discover', 'buildr' ),
+ 'fab fa-cc-jcb' => __( 'cc-jcb', 'buildr' ),
+ 'fab fa-cc-mastercard' => __( 'cc-mastercard', 'buildr' ),
+ 'fab fa-cc-paypal' => __( 'cc-paypal', 'buildr' ),
+ 'fab fa-cc-stripe' => __( 'cc-stripe', 'buildr' ),
+ 'fab fa-cc-visa' => __( 'cc-visa', 'buildr' ),
+ 'fab fa-centercode' => __( 'centercode', 'buildr' ),
+ 'fas fa-certificate' => __( 'certificate', 'buildr' ),
+ 'fas fa-chart-area' => __( 'chart-area', 'buildr' ),
+ 'fas fa-chart-bar' => __( 'chart-bar', 'buildr' ),
+ 'far fa-chart-bar' => __( 'chart-bar', 'buildr' ),
+ 'fas fa-chart-line' => __( 'chart-line', 'buildr' ),
+ 'fas fa-chart-pie' => __( 'chart-pie', 'buildr' ),
+ 'fas fa-check' => __( 'check', 'buildr' ),
+ 'fas fa-check-circle' => __( 'check-circle', 'buildr' ),
+ 'far fa-check-circle' => __( 'check-circle', 'buildr' ),
+ 'fas fa-check-square' => __( 'check-square', 'buildr' ),
+ 'far fa-check-square' => __( 'check-square', 'buildr' ),
+ 'fas fa-chess' => __( 'chess', 'buildr' ),
+ 'fas fa-chess-bishop' => __( 'chess-bishop', 'buildr' ),
+ 'fas fa-chess-board' => __( 'chess-board', 'buildr' ),
+ 'fas fa-chess-king' => __( 'chess-king', 'buildr' ),
+ 'fas fa-chess-knight' => __( 'chess-knight', 'buildr' ),
+ 'fas fa-chess-pawn' => __( 'chess-pawn', 'buildr' ),
+ 'fas fa-chess-queen' => __( 'chess-queen', 'buildr' ),
+ 'fas fa-chess-rook' => __( 'chess-rook', 'buildr' ),
+ 'fas fa-chevron-circle-down' => __( 'chevron-circle-down', 'buildr' ),
+ 'fas fa-chevron-circle-left' => __( 'chevron-circle-left', 'buildr' ),
+ 'fas fa-chevron-circle-right' => __( 'chevron-circle-right', 'buildr' ),
+ 'fas fa-chevron-circle-up' => __( 'chevron-circle-up', 'buildr' ),
+ 'fas fa-chevron-down' => __( 'chevron-down', 'buildr' ),
+ 'fas fa-chevron-left' => __( 'chevron-left', 'buildr' ),
+ 'fas fa-chevron-right' => __( 'chevron-right', 'buildr' ),
+ 'fas fa-chevron-up' => __( 'chevron-up', 'buildr' ),
+ 'fas fa-child' => __( 'child', 'buildr' ),
+ 'fab fa-chrome' => __( 'chrome', 'buildr' ),
+ 'fas fa-circle' => __( 'circle', 'buildr' ),
+ 'far fa-circle' => __( 'circle', 'buildr' ),
+ 'fas fa-circle-notch' => __( 'circle-notch', 'buildr' ),
+ 'fas fa-clipboard' => __( 'clipboard', 'buildr' ),
+ 'far fa-clipboard' => __( 'clipboard', 'buildr' ),
+ 'fas fa-clipboard-check' => __( 'clipboard-check', 'buildr' ),
+ 'fas fa-clipboard-list' => __( 'clipboard-list', 'buildr' ),
+ 'fas fa-clock' => __( 'clock', 'buildr' ),
+ 'far fa-clock' => __( 'clock', 'buildr' ),
+ 'fas fa-clone' => __( 'clone', 'buildr' ),
+ 'far fa-clone' => __( 'clone', 'buildr' ),
+ 'fas fa-closed-captioning' => __( 'closed-captioning', 'buildr' ),
+ 'far fa-closed-captioning' => __( 'closed-captioning', 'buildr' ),
+ 'fas fa-cloud' => __( 'cloud', 'buildr' ),
+ 'fas fa-cloud-download-alt' => __( 'cloud-download-alt', 'buildr' ),
+ 'fas fa-cloud-upload-alt' => __( 'cloud-upload-alt', 'buildr' ),
+ 'fab fa-cloudscale' => __( 'cloudscale', 'buildr' ),
+ 'fab fa-cloudsmith' => __( 'cloudsmith', 'buildr' ),
+ 'fab fa-cloudversify' => __( 'cloudversify', 'buildr' ),
+ 'fas fa-code' => __( 'code', 'buildr' ),
+ 'fas fa-code-branch' => __( 'code-branch', 'buildr' ),
+ 'fab fa-codepen' => __( 'codepen', 'buildr' ),
+ 'fab fa-codiepie' => __( 'codiepie', 'buildr' ),
+ 'fas fa-coffee' => __( 'coffee', 'buildr' ),
+ 'fas fa-cog' => __( 'cog', 'buildr' ),
+ 'fas fa-cogs' => __( 'cogs', 'buildr' ),
+ 'fas fa-columns' => __( 'columns', 'buildr' ),
+ 'fas fa-comment' => __( 'comment', 'buildr' ),
+ 'far fa-comment' => __( 'comment', 'buildr' ),
+ 'fas fa-comment-alt' => __( 'comment-alt', 'buildr' ),
+ 'far fa-comment-alt' => __( 'comment-alt', 'buildr' ),
+ 'fas fa-comment-dots' => __( 'comment-dots', 'buildr' ),
+ 'fas fa-comment-slash' => __( 'comment-slash', 'buildr' ),
+ 'fas fa-comments' => __( 'comments', 'buildr' ),
+ 'far fa-comments' => __( 'comments', 'buildr' ),
+ 'fas fa-compass' => __( 'compass', 'buildr' ),
+ 'far fa-compass' => __( 'compass', 'buildr' ),
+ 'fas fa-compress' => __( 'compress', 'buildr' ),
+ 'fab fa-connectdevelop' => __( 'connectdevelop', 'buildr' ),
+ 'fab fa-contao' => __( 'contao', 'buildr' ),
+ 'fas fa-copy' => __( 'copy', 'buildr' ),
+ 'far fa-copy' => __( 'copy', 'buildr' ),
+ 'fas fa-copyright' => __( 'copyright', 'buildr' ),
+ 'far fa-copyright' => __( 'copyright', 'buildr' ),
+ 'fas fa-couch' => __( 'couch', 'buildr' ),
+ 'fab fa-cpanel' => __( 'cpanel', 'buildr' ),
+ 'fab fa-creative-commons' => __( 'creative-commons', 'buildr' ),
+ 'fas fa-credit-card' => __( 'credit-card', 'buildr' ),
+ 'far fa-credit-card' => __( 'credit-card', 'buildr' ),
+ 'fas fa-crop' => __( 'crop', 'buildr' ),
+ 'fas fa-crosshairs' => __( 'crosshairs', 'buildr' ),
+ 'fab fa-css3' => __( 'css3', 'buildr' ),
+ 'fab fa-css3-alt' => __( 'css3-alt', 'buildr' ),
+ 'fas fa-cube' => __( 'cube', 'buildr' ),
+ 'fas fa-cubes' => __( 'cubes', 'buildr' ),
+ 'fas fa-cut' => __( 'cut', 'buildr' ),
+ 'fab fa-cuttlefish' => __( 'cuttlefish', 'buildr' ),
+ 'fab fa-d-and-d' => __( 'd-and-d', 'buildr' ),
+ 'fab fa-dashcube' => __( 'dashcube', 'buildr' ),
+ 'fas fa-database' => __( 'database', 'buildr' ),
+ 'fas fa-deaf' => __( 'deaf', 'buildr' ),
+ 'fab fa-delicious' => __( 'delicious', 'buildr' ),
+ 'fab fa-deploydog' => __( 'deploydog', 'buildr' ),
+ 'fab fa-deskpro' => __( 'deskpro', 'buildr' ),
+ 'fas fa-desktop' => __( 'desktop', 'buildr' ),
+ 'fab fa-deviantart' => __( 'deviantart', 'buildr' ),
+ 'fas fa-diagnoses' => __( 'diagnoses', 'buildr' ),
+ 'fab fa-digg' => __( 'digg', 'buildr' ),
+ 'fab fa-digital-ocean' => __( 'digital-ocean', 'buildr' ),
+ 'fab fa-discord' => __( 'discord', 'buildr' ),
+ 'fab fa-discourse' => __( 'discourse', 'buildr' ),
+ 'fas fa-dna' => __( 'dna', 'buildr' ),
+ 'fab fa-dochub' => __( 'dochub', 'buildr' ),
+ 'fab fa-docker' => __( 'docker', 'buildr' ),
+ 'fas fa-dollar-sign' => __( 'dollar-sign', 'buildr' ),
+ 'fas fa-dolly' => __( 'dolly', 'buildr' ),
+ 'fas fa-dolly-flatbed' => __( 'dolly-flatbed', 'buildr' ),
+ 'fas fa-donate' => __( 'donate', 'buildr' ),
+ 'fas fa-dot-circle' => __( 'dot-circle', 'buildr' ),
+ 'far fa-dot-circle' => __( 'dot-circle', 'buildr' ),
+ 'fas fa-dove' => __( 'dove', 'buildr' ),
+ 'fas fa-download' => __( 'download', 'buildr' ),
+ 'fab fa-draft2digital' => __( 'draft2digital', 'buildr' ),
+ 'fab fa-dribbble' => __( 'dribbble', 'buildr' ),
+ 'fab fa-dribbble-square' => __( 'dribbble-square', 'buildr' ),
+ 'fab fa-dropbox' => __( 'dropbox', 'buildr' ),
+ 'fab fa-drupal' => __( 'drupal', 'buildr' ),
+ 'fab fa-dyalog' => __( 'dyalog', 'buildr' ),
+ 'fab fa-earlybirds' => __( 'earlybirds', 'buildr' ),
+ 'fab fa-edge' => __( 'edge', 'buildr' ),
+ 'fas fa-edit' => __( 'edit', 'buildr' ),
+ 'far fa-edit' => __( 'edit', 'buildr' ),
+ 'fas fa-eject' => __( 'eject', 'buildr' ),
+ 'fab fa-elementor' => __( 'elementor', 'buildr' ),
+ 'fas fa-ellipsis-h' => __( 'ellipsis-h', 'buildr' ),
+ 'fas fa-ellipsis-v' => __( 'ellipsis-v', 'buildr' ),
+ 'fab fa-ember' => __( 'ember', 'buildr' ),
+ 'fab fa-empire' => __( 'empire', 'buildr' ),
+ 'fas fa-envelope' => __( 'envelope', 'buildr' ),
+ 'far fa-envelope' => __( 'envelope', 'buildr' ),
+ 'fas fa-envelope-open' => __( 'envelope-open', 'buildr' ),
+ 'far fa-envelope-open' => __( 'envelope-open', 'buildr' ),
+ 'fas fa-envelope-square' => __( 'envelope-square', 'buildr' ),
+ 'fab fa-envira' => __( 'envira', 'buildr' ),
+ 'fas fa-eraser' => __( 'eraser', 'buildr' ),
+ 'fab fa-erlang' => __( 'erlang', 'buildr' ),
+ 'fab fa-ethereum' => __( 'ethereum', 'buildr' ),
+ 'fab fa-etsy' => __( 'etsy', 'buildr' ),
+ 'fas fa-euro-sign' => __( 'euro-sign', 'buildr' ),
+ 'fas fa-exchange-alt' => __( 'exchange-alt', 'buildr' ),
+ 'fas fa-exclamation' => __( 'exclamation', 'buildr' ),
+ 'fas fa-exclamation-circle' => __( 'exclamation-circle', 'buildr' ),
+ 'fas fa-exclamation-triangle' => __( 'exclamation-triangle', 'buildr' ),
+ 'fas fa-expand' => __( 'expand', 'buildr' ),
+ 'fas fa-expand-arrows-alt' => __( 'expand-arrows-alt', 'buildr' ),
+ 'fab fa-expeditedssl' => __( 'expeditedssl', 'buildr' ),
+ 'fas fa-external-link-alt' => __( 'external-link-alt', 'buildr' ),
+ 'fas fa-external-link-square-alt' => __( 'external-link-square-alt', 'buildr' ),
+ 'fas fa-eye' => __( 'eye', 'buildr' ),
+ 'fas fa-eye-dropper' => __( 'eye-dropper', 'buildr' ),
+ 'fas fa-eye-slash' => __( 'eye-slash', 'buildr' ),
+ 'far fa-eye-slash' => __( 'eye-slash', 'buildr' ),
+ 'fab fa-facebook' => __( 'facebook', 'buildr' ),
+ 'fab fa-facebook-f' => __( 'facebook-f', 'buildr' ),
+ 'fab fa-facebook-messenger' => __( 'facebook-messenger', 'buildr' ),
+ 'fab fa-facebook-square' => __( 'facebook-square', 'buildr' ),
+ 'fas fa-fast-backward' => __( 'fast-backward', 'buildr' ),
+ 'fas fa-fast-forward' => __( 'fast-forward', 'buildr' ),
+ 'fas fa-fax' => __( 'fax', 'buildr' ),
+ 'fas fa-female' => __( 'female', 'buildr' ),
+ 'fas fa-fighter-jet' => __( 'fighter-jet', 'buildr' ),
+ 'fas fa-file' => __( 'file', 'buildr' ),
+ 'far fa-file' => __( 'file', 'buildr' ),
+ 'fas fa-file-alt' => __( 'file-alt', 'buildr' ),
+ 'far fa-file-alt' => __( 'file-alt', 'buildr' ),
+ 'fas fa-file-archive' => __( 'file-archive', 'buildr' ),
+ 'far fa-file-archive' => __( 'file-archive', 'buildr' ),
+ 'fas fa-file-audio' => __( 'file-audio', 'buildr' ),
+ 'far fa-file-audio' => __( 'file-audio', 'buildr' ),
+ 'fas fa-file-code' => __( 'file-code', 'buildr' ),
+ 'far fa-file-code' => __( 'file-code', 'buildr' ),
+ 'fas fa-file-excel' => __( 'file-excel', 'buildr' ),
+ 'far fa-file-excel' => __( 'file-excel', 'buildr' ),
+ 'fas fa-file-image' => __( 'file-image', 'buildr' ),
+ 'far fa-file-image' => __( 'file-image', 'buildr' ),
+ 'fas fa-file-medical' => __( 'file-medical', 'buildr' ),
+ 'fas fa-file-medical-alt' => __( 'file-medical-alt', 'buildr' ),
+ 'fas fa-file-pdf' => __( 'file-pdf', 'buildr' ),
+ 'far fa-file-pdf' => __( 'file-pdf', 'buildr' ),
+ 'fas fa-file-powerpoint' => __( 'file-powerpoint', 'buildr' ),
+ 'far fa-file-powerpoint' => __( 'file-powerpoint', 'buildr' ),
+ 'fas fa-file-video' => __( 'file-video', 'buildr' ),
+ 'far fa-file-video' => __( 'file-video', 'buildr' ),
+ 'fas fa-file-word' => __( 'file-word', 'buildr' ),
+ 'far fa-file-word' => __( 'file-word', 'buildr' ),
+ 'fas fa-film' => __( 'film', 'buildr' ),
+ 'fas fa-filter' => __( 'filter', 'buildr' ),
+ 'fas fa-fire' => __( 'fire', 'buildr' ),
+ 'fas fa-fire-extinguisher' => __( 'fire-extinguisher', 'buildr' ),
+ 'fab fa-firefox' => __( 'firefox', 'buildr' ),
+ 'fas fa-first-aid' => __( 'first-aid', 'buildr' ),
+ 'fab fa-first-order' => __( 'first-order', 'buildr' ),
+ 'fab fa-firstdraft' => __( 'firstdraft', 'buildr' ),
+ 'fas fa-flag' => __( 'flag', 'buildr' ),
+ 'far fa-flag' => __( 'flag', 'buildr' ),
+ 'fas fa-flag-checkered' => __( 'flag-checkered', 'buildr' ),
+ 'fas fa-flask' => __( 'flask', 'buildr' ),
+ 'fab fa-flickr' => __( 'flickr', 'buildr' ),
+ 'fab fa-flipboard' => __( 'flipboard', 'buildr' ),
+ 'fab fa-fly' => __( 'fly', 'buildr' ),
+ 'fas fa-folder' => __( 'folder', 'buildr' ),
+ 'far fa-folder' => __( 'folder', 'buildr' ),
+ 'fas fa-folder-open' => __( 'folder-open', 'buildr' ),
+ 'far fa-folder-open' => __( 'folder-open', 'buildr' ),
+ 'fas fa-font' => __( 'font', 'buildr' ),
+ 'fab fa-font-awesome' => __( 'font-awesome', 'buildr' ),
+ 'fab fa-font-awesome-alt' => __( 'font-awesome-alt', 'buildr' ),
+ 'fab fa-font-awesome-flag' => __( 'font-awesome-flag', 'buildr' ),
+ 'fab fa-fonticons' => __( 'fonticons', 'buildr' ),
+ 'fab fa-fonticons-fi' => __( 'fonticons-fi', 'buildr' ),
+ 'fas fa-football-ball' => __( 'football-ball', 'buildr' ),
+ 'fab fa-fort-awesome' => __( 'fort-awesome', 'buildr' ),
+ 'fab fa-fort-awesome-alt' => __( 'fort-awesome-alt', 'buildr' ),
+ 'fab fa-forumbee' => __( 'forumbee', 'buildr' ),
+ 'fas fa-forward' => __( 'forward', 'buildr' ),
+ 'fab fa-foursquare' => __( 'foursquare', 'buildr' ),
+ 'fab fa-free-code-camp' => __( 'free-code-camp', 'buildr' ),
+ 'fab fa-freebsd' => __( 'freebsd', 'buildr' ),
+ 'fas fa-frown' => __( 'frown', 'buildr' ),
+ 'far fa-frown' => __( 'frown', 'buildr' ),
+ 'fas fa-futbol' => __( 'futbol', 'buildr' ),
+ 'far fa-futbol' => __( 'futbol', 'buildr' ),
+ 'fas fa-gamepad' => __( 'gamepad', 'buildr' ),
+ 'fas fa-gavel' => __( 'gavel', 'buildr' ),
+ 'fas fa-gem' => __( 'gem', 'buildr' ),
+ 'far fa-gem' => __( 'gem', 'buildr' ),
+ 'fas fa-genderless' => __( 'genderless', 'buildr' ),
+ 'fab fa-get-pocket' => __( 'get-pocket', 'buildr' ),
+ 'fab fa-gg' => __( 'gg', 'buildr' ),
+ 'fab fa-gg-circle' => __( 'gg-circle', 'buildr' ),
+ 'fas fa-gift' => __( 'gift', 'buildr' ),
+ 'fab fa-git' => __( 'git', 'buildr' ),
+ 'fab fa-git-square' => __( 'git-square', 'buildr' ),
+ 'fab fa-github' => __( 'github', 'buildr' ),
+ 'fab fa-github-alt' => __( 'github-alt', 'buildr' ),
+ 'fab fa-github-square' => __( 'github-square', 'buildr' ),
+ 'fab fa-gitkraken' => __( 'gitkraken', 'buildr' ),
+ 'fab fa-gitlab' => __( 'gitlab', 'buildr' ),
+ 'fab fa-gitter' => __( 'gitter', 'buildr' ),
+ 'fas fa-glass-martini' => __( 'glass-martini', 'buildr' ),
+ 'fab fa-glide' => __( 'glide', 'buildr' ),
+ 'fab fa-glide-g' => __( 'glide-g', 'buildr' ),
+ 'fas fa-globe' => __( 'globe', 'buildr' ),
+ 'fab fa-gofore' => __( 'gofore', 'buildr' ),
+ 'fas fa-golf-ball' => __( 'golf-ball', 'buildr' ),
+ 'fab fa-goodreads' => __( 'goodreads', 'buildr' ),
+ 'fab fa-goodreads-g' => __( 'goodreads-g', 'buildr' ),
+ 'fab fa-google' => __( 'google', 'buildr' ),
+ 'fab fa-google-drive' => __( 'google-drive', 'buildr' ),
+ 'fab fa-google-play' => __( 'google-play', 'buildr' ),
+ 'fab fa-google-plus' => __( 'google-plus', 'buildr' ),
+ 'fab fa-google-plus-g' => __( 'google-plus-g', 'buildr' ),
+ 'fab fa-google-plus-square' => __( 'google-plus-square', 'buildr' ),
+ 'fab fa-google-wallet' => __( 'google-wallet', 'buildr' ),
+ 'fas fa-graduation-cap' => __( 'graduation-cap', 'buildr' ),
+ 'fab fa-gratipay' => __( 'gratipay', 'buildr' ),
+ 'fab fa-grav' => __( 'grav', 'buildr' ),
+ 'fab fa-gripfire' => __( 'gripfire', 'buildr' ),
+ 'fab fa-grunt' => __( 'grunt', 'buildr' ),
+ 'fab fa-gulp' => __( 'gulp', 'buildr' ),
+ 'fas fa-h-square' => __( 'h-square', 'buildr' ),
+ 'fab fa-hacker-news' => __( 'hacker-news', 'buildr' ),
+ 'fab fa-hacker-news-square' => __( 'hacker-news-square', 'buildr' ),
+ 'fas fa-hand-holding' => __( 'hand-holding', 'buildr' ),
+ 'fas fa-hand-holding-heart' => __( 'hand-holding-heart', 'buildr' ),
+ 'fas fa-hand-holding-usd' => __( 'hand-holding-usd', 'buildr' ),
+ 'fas fa-hand-lizard' => __( 'hand-lizard', 'buildr' ),
+ 'far fa-hand-lizard' => __( 'hand-lizard', 'buildr' ),
+ 'fas fa-hand-paper' => __( 'hand-paper', 'buildr' ),
+ 'far fa-hand-paper' => __( 'hand-paper', 'buildr' ),
+ 'fas fa-hand-peace' => __( 'hand-peace', 'buildr' ),
+ 'far fa-hand-peace' => __( 'hand-peace', 'buildr' ),
+ 'fas fa-hand-point-down' => __( 'hand-point-down', 'buildr' ),
+ 'far fa-hand-point-down' => __( 'hand-point-down', 'buildr' ),
+ 'fas fa-hand-point-left' => __( 'hand-point-left', 'buildr' ),
+ 'far fa-hand-point-left' => __( 'hand-point-left', 'buildr' ),
+ 'fas fa-hand-point-right' => __( 'hand-point-right', 'buildr' ),
+ 'far fa-hand-point-right' => __( 'hand-point-right', 'buildr' ),
+ 'fas fa-hand-point-up' => __( 'hand-point-up', 'buildr' ),
+ 'far fa-hand-point-up' => __( 'hand-point-up', 'buildr' ),
+ 'fas fa-hand-pointer' => __( 'hand-pointer', 'buildr' ),
+ 'far fa-hand-pointer' => __( 'hand-pointer', 'buildr' ),
+ 'fas fa-hand-rock' => __( 'hand-rock', 'buildr' ),
+ 'far fa-hand-rock' => __( 'hand-rock', 'buildr' ),
+ 'fas fa-hand-scissors' => __( 'hand-scissors', 'buildr' ),
+ 'far fa-hand-scissors' => __( 'hand-scissors', 'buildr' ),
+ 'fas fa-hand-spock' => __( 'hand-spock', 'buildr' ),
+ 'far fa-hand-spock' => __( 'hand-spock', 'buildr' ),
+ 'fas fa-hands' => __( 'hands', 'buildr' ),
+ 'fas fa-hands-helping' => __( 'hands-helping', 'buildr' ),
+ 'fas fa-handshake' => __( 'handshake', 'buildr' ),
+ 'far fa-handshake' => __( 'handshake', 'buildr' ),
+ 'fas fa-hashtag' => __( 'hashtag', 'buildr' ),
+ 'fas fa-hdd' => __( 'hdd', 'buildr' ),
+ 'far fa-hdd' => __( 'hdd', 'buildr' ),
+ 'fas fa-heading' => __( 'heading', 'buildr' ),
+ 'fas fa-headphones' => __( 'headphones', 'buildr' ),
+ 'fas fa-heart' => __( 'heart', 'buildr' ),
+ 'far fa-heart' => __( 'heart', 'buildr' ),
+ 'fas fa-heartbeat' => __( 'heartbeat', 'buildr' ),
+ 'fab fa-hips' => __( 'hips', 'buildr' ),
+ 'fab fa-hire-a-helper' => __( 'hire-a-helper', 'buildr' ),
+ 'fas fa-history' => __( 'history', 'buildr' ),
+ 'fas fa-hockey-puck' => __( 'hockey-puck', 'buildr' ),
+ 'fas fa-home' => __( 'home', 'buildr' ),
+ 'fab fa-hooli' => __( 'hooli', 'buildr' ),
+ 'fas fa-hospital' => __( 'hospital', 'buildr' ),
+ 'far fa-hospital' => __( 'hospital', 'buildr' ),
+ 'fas fa-hospital-alt' => __( 'hospital-alt', 'buildr' ),
+ 'fas fa-hospital-symbol' => __( 'hospital-symbol', 'buildr' ),
+ 'fab fa-hotjar' => __( 'hotjar', 'buildr' ),
+ 'fas fa-hourglass' => __( 'hourglass', 'buildr' ),
+ 'far fa-hourglass' => __( 'hourglass', 'buildr' ),
+ 'fas fa-hourglass-end' => __( 'hourglass-end', 'buildr' ),
+ 'fas fa-hourglass-half' => __( 'hourglass-half', 'buildr' ),
+ 'fas fa-hourglass-start' => __( 'hourglass-start', 'buildr' ),
+ 'fab fa-houzz' => __( 'houzz', 'buildr' ),
+ 'fab fa-html5' => __( 'html5', 'buildr' ),
+ 'fab fa-hubspot' => __( 'hubspot', 'buildr' ),
+ 'fas fa-i-cursor' => __( 'i-cursor', 'buildr' ),
+ 'fas fa-id-badge' => __( 'id-badge', 'buildr' ),
+ 'far fa-id-badge' => __( 'id-badge', 'buildr' ),
+ 'fas fa-id-card' => __( 'id-card', 'buildr' ),
+ 'far fa-id-card' => __( 'id-card', 'buildr' ),
+ 'fas fa-id-card-alt' => __( 'id-card-alt', 'buildr' ),
+ 'fas fa-image' => __( 'image', 'buildr' ),
+ 'far fa-image' => __( 'image', 'buildr' ),
+ 'fas fa-images' => __( 'images', 'buildr' ),
+ 'far fa-images' => __( 'images', 'buildr' ),
+ 'fab fa-imdb' => __( 'imdb', 'buildr' ),
+ 'fas fa-inbox' => __( 'inbox', 'buildr' ),
+ 'fas fa-indent' => __( 'indent', 'buildr' ),
+ 'fas fa-industry' => __( 'industry', 'buildr' ),
+ 'fas fa-info' => __( 'info', 'buildr' ),
+ 'fas fa-info-circle' => __( 'info-circle', 'buildr' ),
+ 'fab fa-instagram' => __( 'instagram', 'buildr' ),
+ 'fab fa-internet-explorer' => __( 'internet-explorer', 'buildr' ),
+ 'fab fa-ioxhost' => __( 'ioxhost', 'buildr' ),
+ 'fas fa-italic' => __( 'italic', 'buildr' ),
+ 'fab fa-itunes' => __( 'itunes', 'buildr' ),
+ 'fab fa-itunes-note' => __( 'itunes-note', 'buildr' ),
+ 'fab fa-java' => __( 'java', 'buildr' ),
+ 'fab fa-jenkins' => __( 'jenkins', 'buildr' ),
+ 'fab fa-joget' => __( 'joget', 'buildr' ),
+ 'fab fa-joomla' => __( 'joomla', 'buildr' ),
+ 'fab fa-js' => __( 'js', 'buildr' ),
+ 'fab fa-js-square' => __( 'js-square', 'buildr' ),
+ 'fab fa-jsfiddle' => __( 'jsfiddle', 'buildr' ),
+ 'fas fa-key' => __( 'key', 'buildr' ),
+ 'fas fa-keyboard' => __( 'keyboard', 'buildr' ),
+ 'far fa-keyboard' => __( 'keyboard', 'buildr' ),
+ 'fab fa-keycdn' => __( 'keycdn', 'buildr' ),
+ 'fab fa-kickstarter' => __( 'kickstarter', 'buildr' ),
+ 'fab fa-kickstarter-k' => __( 'kickstarter-k', 'buildr' ),
+ 'fab fa-korvue' => __( 'korvue', 'buildr' ),
+ 'fas fa-language' => __( 'language', 'buildr' ),
+ 'fas fa-laptop' => __( 'laptop', 'buildr' ),
+ 'fab fa-laravel' => __( 'laravel', 'buildr' ),
+ 'fab fa-lastfm' => __( 'lastfm', 'buildr' ),
+ 'fab fa-lastfm-square' => __( 'lastfm-square', 'buildr' ),
+ 'fas fa-leaf' => __( 'leaf', 'buildr' ),
+ 'fab fa-leanpub' => __( 'leanpub', 'buildr' ),
+ 'fas fa-lemon' => __( 'lemon', 'buildr' ),
+ 'far fa-lemon' => __( 'lemon', 'buildr' ),
+ 'fab fa-less' => __( 'less', 'buildr' ),
+ 'fas fa-level-down-alt' => __( 'level-down-alt', 'buildr' ),
+ 'fas fa-level-up-alt' => __( 'level-up-alt', 'buildr' ),
+ 'fas fa-life-ring' => __( 'life-ring', 'buildr' ),
+ 'far fa-life-ring' => __( 'life-ring', 'buildr' ),
+ 'fas fa-lightbulb' => __( 'lightbulb', 'buildr' ),
+ 'far fa-lightbulb' => __( 'lightbulb', 'buildr' ),
+ 'fab fa-line' => __( 'line', 'buildr' ),
+ 'fas fa-link' => __( 'link', 'buildr' ),
+ 'fab fa-linkedin' => __( 'linkedin', 'buildr' ),
+ 'fab fa-linkedin-in' => __( 'linkedin-in', 'buildr' ),
+ 'fab fa-linode' => __( 'linode', 'buildr' ),
+ 'fab fa-linux' => __( 'linux', 'buildr' ),
+ 'fas fa-lira-sign' => __( 'lira-sign', 'buildr' ),
+ 'fas fa-list' => __( 'list', 'buildr' ),
+ 'fas fa-list-alt' => __( 'list-alt', 'buildr' ),
+ 'far fa-list-alt' => __( 'list-alt', 'buildr' ),
+ 'fas fa-list-ol' => __( 'list-ol', 'buildr' ),
+ 'fas fa-list-ul' => __( 'list-ul', 'buildr' ),
+ 'fas fa-location-arrow' => __( 'location-arrow', 'buildr' ),
+ 'fas fa-lock' => __( 'lock', 'buildr' ),
+ 'fas fa-lock-open' => __( 'lock-open', 'buildr' ),
+ 'fas fa-long-arrow-alt-down' => __( 'long-arrow-alt-down', 'buildr' ),
+ 'fas fa-long-arrow-alt-left' => __( 'long-arrow-alt-left', 'buildr' ),
+ 'fas fa-long-arrow-alt-right' => __( 'long-arrow-alt-right', 'buildr' ),
+ 'fas fa-long-arrow-alt-up' => __( 'long-arrow-alt-up', 'buildr' ),
+ 'fas fa-low-vision' => __( 'low-vision', 'buildr' ),
+ 'fab fa-lyft' => __( 'lyft', 'buildr' ),
+ 'fab fa-magento' => __( 'magento', 'buildr' ),
+ 'fas fa-magic' => __( 'magic', 'buildr' ),
+ 'fas fa-magnet' => __( 'magnet', 'buildr' ),
+ 'fas fa-male' => __( 'male', 'buildr' ),
+ 'fas fa-map' => __( 'map', 'buildr' ),
+ 'far fa-map' => __( 'map', 'buildr' ),
+ 'fas fa-map-marker' => __( 'map-marker', 'buildr' ),
+ 'fas fa-map-marker-alt' => __( 'map-marker-alt', 'buildr' ),
+ 'fas fa-map-pin' => __( 'map-pin', 'buildr' ),
+ 'fas fa-map-signs' => __( 'map-signs', 'buildr' ),
+ 'fas fa-mars' => __( 'mars', 'buildr' ),
+ 'fas fa-mars-double' => __( 'mars-double', 'buildr' ),
+ 'fas fa-mars-stroke' => __( 'mars-stroke', 'buildr' ),
+ 'fas fa-mars-stroke-h' => __( 'mars-stroke-h', 'buildr' ),
+ 'fas fa-mars-stroke-v' => __( 'mars-stroke-v', 'buildr' ),
+ 'fab fa-maxcdn' => __( 'maxcdn', 'buildr' ),
+ 'fab fa-medapps' => __( 'medapps', 'buildr' ),
+ 'fab fa-medium' => __( 'medium', 'buildr' ),
+ 'fab fa-medium-m' => __( 'medium-m', 'buildr' ),
+ 'fas fa-medkit' => __( 'medkit', 'buildr' ),
+ 'fab fa-medrt' => __( 'medrt', 'buildr' ),
+ 'fab fa-meetup' => __( 'meetup', 'buildr' ),
+ 'fas fa-meh' => __( 'meh', 'buildr' ),
+ 'far fa-meh' => __( 'meh', 'buildr' ),
+ 'fas fa-mercury' => __( 'mercury', 'buildr' ),
+ 'fas fa-microchip' => __( 'microchip', 'buildr' ),
+ 'fas fa-microphone' => __( 'microphone', 'buildr' ),
+ 'fas fa-microphone-slash' => __( 'microphone-slash', 'buildr' ),
+ 'fab fa-microsoft' => __( 'microsoft', 'buildr' ),
+ 'fas fa-minus' => __( 'minus', 'buildr' ),
+ 'fas fa-minus-circle' => __( 'minus-circle', 'buildr' ),
+ 'fas fa-minus-square' => __( 'minus-square', 'buildr' ),
+ 'far fa-minus-square' => __( 'minus-square', 'buildr' ),
+ 'fab fa-mix' => __( 'mix', 'buildr' ),
+ 'fab fa-mixcloud' => __( 'mixcloud', 'buildr' ),
+ 'fab fa-mizuni' => __( 'mizuni', 'buildr' ),
+ 'fas fa-mobile' => __( 'mobile', 'buildr' ),
+ 'fas fa-mobile-alt' => __( 'mobile-alt', 'buildr' ),
+ 'fab fa-modx' => __( 'modx', 'buildr' ),
+ 'fab fa-monero' => __( 'monero', 'buildr' ),
+ 'fas fa-money-bill-alt' => __( 'money-bill-alt', 'buildr' ),
+ 'far fa-money-bill-alt' => __( 'money-bill-alt', 'buildr' ),
+ 'fas fa-moon' => __( 'moon', 'buildr' ),
+ 'far fa-moon' => __( 'moon', 'buildr' ),
+ 'fas fa-motorcycle' => __( 'motorcycle', 'buildr' ),
+ 'fas fa-mouse-pointer' => __( 'mouse-pointer', 'buildr' ),
+ 'fas fa-music' => __( 'music', 'buildr' ),
+ 'fab fa-napster' => __( 'napster', 'buildr' ),
+ 'fas fa-neuter' => __( 'neuter', 'buildr' ),
+ 'fas fa-newspaper' => __( 'newspaper', 'buildr' ),
+ 'far fa-newspaper' => __( 'newspaper', 'buildr' ),
+ 'fab fa-nintendo-switch' => __( 'nintendo-switch', 'buildr' ),
+ 'fab fa-node' => __( 'node', 'buildr' ),
+ 'fab fa-node-js' => __( 'node-js', 'buildr' ),
+ 'fas fa-notes-medical' => __( 'notes-medical', 'buildr' ),
+ 'fab fa-npm' => __( 'npm', 'buildr' ),
+ 'fab fa-ns8' => __( 'ns8', 'buildr' ),
+ 'fab fa-nutritionix' => __( 'nutritionix', 'buildr' ),
+ 'fas fa-object-group' => __( 'object-group', 'buildr' ),
+ 'far fa-object-group' => __( 'object-group', 'buildr' ),
+ 'fas fa-object-ungroup' => __( 'object-ungroup', 'buildr' ),
+ 'far fa-object-ungroup' => __( 'object-ungroup', 'buildr' ),
+ 'fab fa-odnoklassniki' => __( 'odnoklassniki', 'buildr' ),
+ 'fab fa-odnoklassniki-square' => __( 'odnoklassniki-square', 'buildr' ),
+ 'fab fa-opencart' => __( 'opencart', 'buildr' ),
+ 'fab fa-openid' => __( 'openid', 'buildr' ),
+ 'fab fa-opera' => __( 'opera', 'buildr' ),
+ 'fab fa-optin-monster' => __( 'optin-monster', 'buildr' ),
+ 'fab fa-osi' => __( 'osi', 'buildr' ),
+ 'fas fa-outdent' => __( 'outdent', 'buildr' ),
+ 'fab fa-page4' => __( 'page4', 'buildr' ),
+ 'fab fa-pagelines' => __( 'pagelines', 'buildr' ),
+ 'fas fa-paint-brush' => __( 'paint-brush', 'buildr' ),
+ 'fab fa-palfed' => __( 'palfed', 'buildr' ),
+ 'fas fa-pallet' => __( 'pallet', 'buildr' ),
+ 'fas fa-paper-plane' => __( 'paper-plane', 'buildr' ),
+ 'far fa-paper-plane' => __( 'paper-plane', 'buildr' ),
+ 'fas fa-paperclip' => __( 'paperclip', 'buildr' ),
+ 'fas fa-parachute-box' => __( 'parachute-box', 'buildr' ),
+ 'fas fa-paragraph' => __( 'paragraph', 'buildr' ),
+ 'fas fa-paste' => __( 'paste', 'buildr' ),
+ 'fab fa-patreon' => __( 'patreon', 'buildr' ),
+ 'fas fa-pause' => __( 'pause', 'buildr' ),
+ 'fas fa-pause-circle' => __( 'pause-circle', 'buildr' ),
+ 'far fa-pause-circle' => __( 'pause-circle', 'buildr' ),
+ 'fas fa-paw' => __( 'paw', 'buildr' ),
+ 'fab fa-paypal' => __( 'paypal', 'buildr' ),
+ 'fas fa-pen-square' => __( 'pen-square', 'buildr' ),
+ 'fas fa-pencil-alt' => __( 'pencil-alt', 'buildr' ),
+ 'fas fa-people-carry' => __( 'people-carry', 'buildr' ),
+ 'fas fa-percent' => __( 'percent', 'buildr' ),
+ 'fab fa-periscope' => __( 'periscope', 'buildr' ),
+ 'fab fa-phabricator' => __( 'phabricator', 'buildr' ),
+ 'fab fa-phoenix-framework' => __( 'phoenix-framework', 'buildr' ),
+ 'fas fa-phone' => __( 'phone', 'buildr' ),
+ 'fas fa-phone-slash' => __( 'phone-slash', 'buildr' ),
+ 'fas fa-phone-square' => __( 'phone-square', 'buildr' ),
+ 'fas fa-phone-volume' => __( 'phone-volume', 'buildr' ),
+ 'fab fa-php' => __( 'php', 'buildr' ),
+ 'fab fa-pied-piper' => __( 'pied-piper', 'buildr' ),
+ 'fab fa-pied-piper-alt' => __( 'pied-piper-alt', 'buildr' ),
+ 'fab fa-pied-piper-hat' => __( 'pied-piper-hat', 'buildr' ),
+ 'fab fa-pied-piper-pp' => __( 'pied-piper-pp', 'buildr' ),
+ 'fas fa-piggy-bank' => __( 'piggy-bank', 'buildr' ),
+ 'fas fa-pills' => __( 'pills', 'buildr' ),
+ 'fab fa-pinterest' => __( 'pinterest', 'buildr' ),
+ 'fab fa-pinterest-p' => __( 'pinterest-p', 'buildr' ),
+ 'fab fa-pinterest-square' => __( 'pinterest-square', 'buildr' ),
+ 'fas fa-plane' => __( 'plane', 'buildr' ),
+ 'fas fa-play' => __( 'play', 'buildr' ),
+ 'fas fa-play-circle' => __( 'play-circle', 'buildr' ),
+ 'far fa-play-circle' => __( 'play-circle', 'buildr' ),
+ 'fab fa-playstation' => __( 'playstation', 'buildr' ),
+ 'fas fa-plug' => __( 'plug', 'buildr' ),
+ 'fas fa-plus' => __( 'plus', 'buildr' ),
+ 'fas fa-plus-circle' => __( 'plus-circle', 'buildr' ),
+ 'fas fa-plus-square' => __( 'plus-square', 'buildr' ),
+ 'far fa-plus-square' => __( 'plus-square', 'buildr' ),
+ 'fas fa-podcast' => __( 'podcast', 'buildr' ),
+ 'fas fa-poo' => __( 'poo', 'buildr' ),
+ 'fas fa-pound-sign' => __( 'pound-sign', 'buildr' ),
+ 'fas fa-power-off' => __( 'power-off', 'buildr' ),
+ 'fas fa-prescription-bottle' => __( 'prescription-bottle', 'buildr' ),
+ 'fas fa-prescription-bottle-alt' => __( 'prescription-bottle-alt', 'buildr' ),
+ 'fas fa-print' => __( 'print', 'buildr' ),
+ 'fas fa-procedures' => __( 'procedures', 'buildr' ),
+ 'fab fa-product-hunt' => __( 'product-hunt', 'buildr' ),
+ 'fab fa-pushed' => __( 'pushed', 'buildr' ),
+ 'fas fa-puzzle-piece' => __( 'puzzle-piece', 'buildr' ),
+ 'fab fa-python' => __( 'python', 'buildr' ),
+ 'fab fa-qq' => __( 'qq', 'buildr' ),
+ 'fas fa-qrcode' => __( 'qrcode', 'buildr' ),
+ 'fas fa-question' => __( 'question', 'buildr' ),
+ 'fas fa-question-circle' => __( 'question-circle', 'buildr' ),
+ 'far fa-question-circle' => __( 'question-circle', 'buildr' ),
+ 'fas fa-quidditch' => __( 'quidditch', 'buildr' ),
+ 'fab fa-quinscape' => __( 'quinscape', 'buildr' ),
+ 'fab fa-quora' => __( 'quora', 'buildr' ),
+ 'fas fa-quote-left' => __( 'quote-left', 'buildr' ),
+ 'fas fa-quote-right' => __( 'quote-right', 'buildr' ),
+ 'fas fa-random' => __( 'random', 'buildr' ),
+ 'fab fa-ravelry' => __( 'ravelry', 'buildr' ),
+ 'fab fa-react' => __( 'react', 'buildr' ),
+ 'fab fa-readme' => __( 'readme', 'buildr' ),
+ 'fab fa-rebel' => __( 'rebel', 'buildr' ),
+ 'fas fa-recycle' => __( 'recycle', 'buildr' ),
+ 'fab fa-red-river' => __( 'red-river', 'buildr' ),
+ 'fab fa-reddit' => __( 'reddit', 'buildr' ),
+ 'fab fa-reddit-alien' => __( 'reddit-alien', 'buildr' ),
+ 'fab fa-reddit-square' => __( 'reddit-square', 'buildr' ),
+ 'fas fa-redo' => __( 'redo', 'buildr' ),
+ 'fas fa-redo-alt' => __( 'redo-alt', 'buildr' ),
+ 'fas fa-registered' => __( 'registered', 'buildr' ),
+ 'far fa-registered' => __( 'registered', 'buildr' ),
+ 'fab fa-rendact' => __( 'rendact', 'buildr' ),
+ 'fab fa-renren' => __( 'renren', 'buildr' ),
+ 'fas fa-reply' => __( 'reply', 'buildr' ),
+ 'fas fa-reply-all' => __( 'reply-all', 'buildr' ),
+ 'fab fa-replyd' => __( 'replyd', 'buildr' ),
+ 'fab fa-resolving' => __( 'resolving', 'buildr' ),
+ 'fas fa-retweet' => __( 'retweet', 'buildr' ),
+ 'fas fa-ribbon' => __( 'ribbon', 'buildr' ),
+ 'fas fa-road' => __( 'road', 'buildr' ),
+ 'fas fa-rocket' => __( 'rocket', 'buildr' ),
+ 'fab fa-rocketchat' => __( 'rocketchat', 'buildr' ),
+ 'fab fa-rockrms' => __( 'rockrms', 'buildr' ),
+ 'fas fa-rss' => __( 'rss', 'buildr' ),
+ 'fas fa-rss-square' => __( 'rss-square', 'buildr' ),
+ 'fas fa-ruble-sign' => __( 'ruble-sign', 'buildr' ),
+ 'fas fa-rupee-sign' => __( 'rupee-sign', 'buildr' ),
+ 'fab fa-safari' => __( 'safari', 'buildr' ),
+ 'fab fa-sass' => __( 'sass', 'buildr' ),
+ 'fas fa-save' => __( 'save', 'buildr' ),
+ 'far fa-save' => __( 'save', 'buildr' ),
+ 'fab fa-schlix' => __( 'schlix', 'buildr' ),
+ 'fab fa-scribd' => __( 'scribd', 'buildr' ),
+ 'fas fa-search' => __( 'search', 'buildr' ),
+ 'fas fa-search-minus' => __( 'search-minus', 'buildr' ),
+ 'fas fa-search-plus' => __( 'search-plus', 'buildr' ),
+ 'fab fa-searchengin' => __( 'searchengin', 'buildr' ),
+ 'fas fa-seedling' => __( 'seedling', 'buildr' ),
+ 'fab fa-sellcast' => __( 'sellcast', 'buildr' ),
+ 'fab fa-sellsy' => __( 'sellsy', 'buildr' ),
+ 'fas fa-server' => __( 'server', 'buildr' ),
+ 'fab fa-servicestack' => __( 'servicestack', 'buildr' ),
+ 'fas fa-share' => __( 'share', 'buildr' ),
+ 'fas fa-share-alt' => __( 'share-alt', 'buildr' ),
+ 'fas fa-share-alt-square' => __( 'share-alt-square', 'buildr' ),
+ 'fas fa-share-square' => __( 'share-square', 'buildr' ),
+ 'far fa-share-square' => __( 'share-square', 'buildr' ),
+ 'fas fa-shekel-sign' => __( 'shekel-sign', 'buildr' ),
+ 'fas fa-shield-alt' => __( 'shield-alt', 'buildr' ),
+ 'fas fa-ship' => __( 'ship', 'buildr' ),
+ 'fas fa-shipping-fast' => __( 'shipping-fast', 'buildr' ),
+ 'fab fa-shirtsinbulk' => __( 'shirtsinbulk', 'buildr' ),
+ 'fas fa-shopping-bag' => __( 'shopping-bag', 'buildr' ),
+ 'fas fa-shopping-basket' => __( 'shopping-basket', 'buildr' ),
+ 'fas fa-shopping-cart' => __( 'shopping-cart', 'buildr' ),
+ 'fas fa-shower' => __( 'shower', 'buildr' ),
+ 'fas fa-sign' => __( 'sign', 'buildr' ),
+ 'fas fa-sign-in-alt' => __( 'sign-in-alt', 'buildr' ),
+ 'fas fa-sign-language' => __( 'sign-language', 'buildr' ),
+ 'fas fa-sign-out-alt' => __( 'sign-out-alt', 'buildr' ),
+ 'fas fa-signal' => __( 'signal', 'buildr' ),
+ 'fab fa-simplybuilt' => __( 'simplybuilt', 'buildr' ),
+ 'fab fa-sistrix' => __( 'sistrix', 'buildr' ),
+ 'fas fa-sitemap' => __( 'sitemap', 'buildr' ),
+ 'fab fa-skyatlas' => __( 'skyatlas', 'buildr' ),
+ 'fab fa-skype' => __( 'skype', 'buildr' ),
+ 'fab fa-slack' => __( 'slack', 'buildr' ),
+ 'fab fa-slack-hash' => __( 'slack-hash', 'buildr' ),
+ 'fas fa-sliders-h' => __( 'sliders-h', 'buildr' ),
+ 'fab fa-slideshare' => __( 'slideshare', 'buildr' ),
+ 'fas fa-smile' => __( 'smile', 'buildr' ),
+ 'far fa-smile' => __( 'smile', 'buildr' ),
+ 'fas fa-smoking' => __( 'smoking', 'buildr' ),
+ 'fab fa-snapchat' => __( 'snapchat', 'buildr' ),
+ 'fab fa-snapchat-ghost' => __( 'snapchat-ghost', 'buildr' ),
+ 'fab fa-snapchat-square' => __( 'snapchat-square', 'buildr' ),
+ 'fas fa-snowflake' => __( 'snowflake', 'buildr' ),
+ 'far fa-snowflake' => __( 'snowflake', 'buildr' ),
+ 'fas fa-sort' => __( 'sort', 'buildr' ),
+ 'fas fa-sort-alpha-down' => __( 'sort-alpha-down', 'buildr' ),
+ 'fas fa-sort-alpha-up' => __( 'sort-alpha-up', 'buildr' ),
+ 'fas fa-sort-amount-down' => __( 'sort-amount-down', 'buildr' ),
+ 'fas fa-sort-amount-up' => __( 'sort-amount-up', 'buildr' ),
+ 'fas fa-sort-down' => __( 'sort-down', 'buildr' ),
+ 'fas fa-sort-numeric-down' => __( 'sort-numeric-down', 'buildr' ),
+ 'fas fa-sort-numeric-up' => __( 'sort-numeric-up', 'buildr' ),
+ 'fas fa-sort-up' => __( 'sort-up', 'buildr' ),
+ 'fab fa-soundcloud' => __( 'soundcloud', 'buildr' ),
+ 'fas fa-space-shuttle' => __( 'space-shuttle', 'buildr' ),
+ 'fab fa-speakap' => __( 'speakap', 'buildr' ),
+ 'fas fa-spinner' => __( 'spinner', 'buildr' ),
+ 'fab fa-spotify' => __( 'spotify', 'buildr' ),
+ 'fas fa-square' => __( 'square', 'buildr' ),
+ 'far fa-square' => __( 'square', 'buildr' ),
+ 'fas fa-square-full' => __( 'square-full', 'buildr' ),
+ 'fab fa-stack-exchange' => __( 'stack-exchange', 'buildr' ),
+ 'fab fa-stack-overflow' => __( 'stack-overflow', 'buildr' ),
+ 'fas fa-star' => __( 'star', 'buildr' ),
+ 'far fa-star' => __( 'star', 'buildr' ),
+ 'fas fa-star-half' => __( 'star-half', 'buildr' ),
+ 'far fa-star-half' => __( 'star-half', 'buildr' ),
+ 'fab fa-staylinked' => __( 'staylinked', 'buildr' ),
+ 'fab fa-steam' => __( 'steam', 'buildr' ),
+ 'fab fa-steam-square' => __( 'steam-square', 'buildr' ),
+ 'fab fa-steam-symbol' => __( 'steam-symbol', 'buildr' ),
+ 'fas fa-step-backward' => __( 'step-backward', 'buildr' ),
+ 'fas fa-step-forward' => __( 'step-forward', 'buildr' ),
+ 'fas fa-stethoscope' => __( 'stethoscope', 'buildr' ),
+ 'fab fa-sticker-mule' => __( 'sticker-mule', 'buildr' ),
+ 'fas fa-sticky-note' => __( 'sticky-note', 'buildr' ),
+ 'far fa-sticky-note' => __( 'sticky-note', 'buildr' ),
+ 'fas fa-stop' => __( 'stop', 'buildr' ),
+ 'fas fa-stop-circle' => __( 'stop-circle', 'buildr' ),
+ 'far fa-stop-circle' => __( 'stop-circle', 'buildr' ),
+ 'fas fa-stopwatch' => __( 'stopwatch', 'buildr' ),
+ 'fab fa-strava' => __( 'strava', 'buildr' ),
+ 'fas fa-street-view' => __( 'street-view', 'buildr' ),
+ 'fas fa-strikethrough' => __( 'strikethrough', 'buildr' ),
+ 'fab fa-stripe' => __( 'stripe', 'buildr' ),
+ 'fab fa-stripe-s' => __( 'stripe-s', 'buildr' ),
+ 'fab fa-studiovinari' => __( 'studiovinari', 'buildr' ),
+ 'fab fa-stumbleupon' => __( 'stumbleupon', 'buildr' ),
+ 'fab fa-stumbleupon-circle' => __( 'stumbleupon-circle', 'buildr' ),
+ 'fas fa-subscript' => __( 'subscript', 'buildr' ),
+ 'fas fa-subway' => __( 'subway', 'buildr' ),
+ 'fas fa-suitcase' => __( 'suitcase', 'buildr' ),
+ 'fas fa-sun' => __( 'sun', 'buildr' ),
+ 'far fa-sun' => __( 'sun', 'buildr' ),
+ 'fab fa-superpowers' => __( 'superpowers', 'buildr' ),
+ 'fas fa-superscript' => __( 'superscript', 'buildr' ),
+ 'fab fa-supple' => __( 'supple', 'buildr' ),
+ 'fas fa-sync' => __( 'sync', 'buildr' ),
+ 'fas fa-sync-alt' => __( 'sync-alt', 'buildr' ),
+ 'fas fa-syringe' => __( 'syringe', 'buildr' ),
+ 'fas fa-table' => __( 'table', 'buildr' ),
+ 'fas fa-table-tennis' => __( 'table-tennis', 'buildr' ),
+ 'fas fa-tablet' => __( 'tablet', 'buildr' ),
+ 'fas fa-tablet-alt' => __( 'tablet-alt', 'buildr' ),
+ 'fas fa-tablets' => __( 'tablets', 'buildr' ),
+ 'fas fa-tachometer-alt' => __( 'tachometer-alt', 'buildr' ),
+ 'fas fa-tag' => __( 'tag', 'buildr' ),
+ 'fas fa-tags' => __( 'tags', 'buildr' ),
+ 'fas fa-tape' => __( 'tape', 'buildr' ),
+ 'fas fa-tasks' => __( 'tasks', 'buildr' ),
+ 'fas fa-taxi' => __( 'taxi', 'buildr' ),
+ 'fab fa-telegram' => __( 'telegram', 'buildr' ),
+ 'fab fa-telegram-plane' => __( 'telegram-plane', 'buildr' ),
+ 'fab fa-tencent-weibo' => __( 'tencent-weibo', 'buildr' ),
+ 'fas fa-terminal' => __( 'terminal', 'buildr' ),
+ 'fas fa-text-height' => __( 'text-height', 'buildr' ),
+ 'fas fa-text-width' => __( 'text-width', 'buildr' ),
+ 'fas fa-th' => __( 'th', 'buildr' ),
+ 'fas fa-th-large' => __( 'th-large', 'buildr' ),
+ 'fas fa-th-list' => __( 'th-list', 'buildr' ),
+ 'fab fa-themeisle' => __( 'themeisle', 'buildr' ),
+ 'fas fa-thermometer' => __( 'thermometer', 'buildr' ),
+ 'fas fa-thermometer-empty' => __( 'thermometer-empty', 'buildr' ),
+ 'fas fa-thermometer-full' => __( 'thermometer-full', 'buildr' ),
+ 'fas fa-thermometer-half' => __( 'thermometer-half', 'buildr' ),
+ 'fas fa-thermometer-quarter' => __( 'thermometer-quarter', 'buildr' ),
+ 'fas fa-thermometer-three-quarters' => __( 'thermometer-three-quarters', 'buildr' ),
+ 'fas fa-thumbs-down' => __( 'thumbs-down', 'buildr' ),
+ 'far fa-thumbs-down' => __( 'thumbs-down', 'buildr' ),
+ 'fas fa-thumbs-up' => __( 'thumbs-up', 'buildr' ),
+ 'far fa-thumbs-up' => __( 'thumbs-up', 'buildr' ),
+ 'fas fa-thumbtack' => __( 'thumbtack', 'buildr' ),
+ 'fas fa-ticket-alt' => __( 'ticket-alt', 'buildr' ),
+ 'fas fa-times' => __( 'times', 'buildr' ),
+ 'fas fa-times-circle' => __( 'times-circle', 'buildr' ),
+ 'far fa-times-circle' => __( 'times-circle', 'buildr' ),
+ 'fas fa-tint' => __( 'tint', 'buildr' ),
+ 'fas fa-toggle-off' => __( 'toggle-off', 'buildr' ),
+ 'fas fa-toggle-on' => __( 'toggle-on', 'buildr' ),
+ 'fas fa-trademark' => __( 'trademark', 'buildr' ),
+ 'fas fa-train' => __( 'train', 'buildr' ),
+ 'fas fa-transgender' => __( 'transgender', 'buildr' ),
+ 'fas fa-transgender-alt' => __( 'transgender-alt', 'buildr' ),
+ 'fas fa-trash' => __( 'trash', 'buildr' ),
+ 'fas fa-trash-alt' => __( 'trash-alt', 'buildr' ),
+ 'far fa-trash-alt' => __( 'trash-alt', 'buildr' ),
+ 'fas fa-tree' => __( 'tree', 'buildr' ),
+ 'fab fa-trello' => __( 'trello', 'buildr' ),
+ 'fab fa-tripadvisor' => __( 'tripadvisor', 'buildr' ),
+ 'fas fa-trophy' => __( 'trophy', 'buildr' ),
+ 'fas fa-truck' => __( 'truck', 'buildr' ),
+ 'fas fa-truck-loading' => __( 'truck-loading', 'buildr' ),
+ 'fas fa-truck-moving' => __( 'truck-moving', 'buildr' ),
+ 'fas fa-tty' => __( 'tty', 'buildr' ),
+ 'fab fa-tumblr' => __( 'tumblr', 'buildr' ),
+ 'fab fa-tumblr-square' => __( 'tumblr-square', 'buildr' ),
+ 'fas fa-tv' => __( 'tv', 'buildr' ),
+ 'fab fa-twitch' => __( 'twitch', 'buildr' ),
+ 'fab fa-twitter' => __( 'twitter', 'buildr' ),
+ 'fab fa-twitter-square' => __( 'twitter-square', 'buildr' ),
+ 'fab fa-typo3' => __( 'typo3', 'buildr' ),
+ 'fab fa-uber' => __( 'uber', 'buildr' ),
+ 'fab fa-uikit' => __( 'uikit', 'buildr' ),
+ 'fas fa-umbrella' => __( 'umbrella', 'buildr' ),
+ 'fas fa-underline' => __( 'underline', 'buildr' ),
+ 'fas fa-undo' => __( 'undo', 'buildr' ),
+ 'fas fa-undo-alt' => __( 'undo-alt', 'buildr' ),
+ 'fab fa-uniregistry' => __( 'uniregistry', 'buildr' ),
+ 'fas fa-universal-access' => __( 'universal-access', 'buildr' ),
+ 'fas fa-university' => __( 'university', 'buildr' ),
+ 'fas fa-unlink' => __( 'unlink', 'buildr' ),
+ 'fas fa-unlock' => __( 'unlock', 'buildr' ),
+ 'fas fa-unlock-alt' => __( 'unlock-alt', 'buildr' ),
+ 'fab fa-untappd' => __( 'untappd', 'buildr' ),
+ 'fas fa-upload' => __( 'upload', 'buildr' ),
+ 'fab fa-usb' => __( 'usb', 'buildr' ),
+ 'fas fa-user' => __( 'user', 'buildr' ),
+ 'far fa-user' => __( 'user', 'buildr' ),
+ 'fas fa-user-circle' => __( 'user-circle', 'buildr' ),
+ 'far fa-user-circle' => __( 'user-circle', 'buildr' ),
+ 'fas fa-user-md' => __( 'user-md', 'buildr' ),
+ 'fas fa-user-plus' => __( 'user-plus', 'buildr' ),
+ 'fas fa-user-secret' => __( 'user-secret', 'buildr' ),
+ 'fas fa-user-times' => __( 'user-times', 'buildr' ),
+ 'fas fa-users' => __( 'users', 'buildr' ),
+ 'fab fa-ussunnah' => __( 'ussunnah', 'buildr' ),
+ 'fas fa-utensil-spoon' => __( 'utensil-spoon', 'buildr' ),
+ 'fas fa-utensils' => __( 'utensils', 'buildr' ),
+ 'fab fa-vaadin' => __( 'vaadin', 'buildr' ),
+ 'fas fa-venus' => __( 'venus', 'buildr' ),
+ 'fas fa-venus-double' => __( 'venus-double', 'buildr' ),
+ 'fas fa-venus-mars' => __( 'venus-mars', 'buildr' ),
+ 'fab fa-viacoin' => __( 'viacoin', 'buildr' ),
+ 'fab fa-viadeo' => __( 'viadeo', 'buildr' ),
+ 'fab fa-viadeo-square' => __( 'viadeo-square', 'buildr' ),
+ 'fas fa-vial' => __( 'vial', 'buildr' ),
+ 'fas fa-vials' => __( 'vials', 'buildr' ),
+ 'fab fa-viber' => __( 'viber', 'buildr' ),
+ 'fas fa-video' => __( 'video', 'buildr' ),
+ 'fas fa-video-slash' => __( 'video-slash', 'buildr' ),
+ 'fab fa-vimeo' => __( 'vimeo', 'buildr' ),
+ 'fab fa-vimeo-square' => __( 'vimeo-square', 'buildr' ),
+ 'fab fa-vimeo-v' => __( 'vimeo-v', 'buildr' ),
+ 'fab fa-vine' => __( 'vine', 'buildr' ),
+ 'fab fa-vk' => __( 'vk', 'buildr' ),
+ 'fab fa-vnv' => __( 'vnv', 'buildr' ),
+ 'fas fa-volleyball-ball' => __( 'volleyball-ball', 'buildr' ),
+ 'fas fa-volume-down' => __( 'volume-down', 'buildr' ),
+ 'fas fa-volume-off' => __( 'volume-off', 'buildr' ),
+ 'fas fa-volume-up' => __( 'volume-up', 'buildr' ),
+ 'fab fa-vuejs' => __( 'vuejs', 'buildr' ),
+ 'fas fa-warehouse' => __( 'warehouse', 'buildr' ),
+ 'fab fa-weibo' => __( 'weibo', 'buildr' ),
+ 'fas fa-weight' => __( 'weight', 'buildr' ),
+ 'fab fa-weixin' => __( 'weixin', 'buildr' ),
+ 'fab fa-whatsapp' => __( 'whatsapp', 'buildr' ),
+ 'fab fa-whatsapp-square' => __( 'whatsapp-square', 'buildr' ),
+ 'fas fa-wheelchair' => __( 'wheelchair', 'buildr' ),
+ 'fab fa-whmcs' => __( 'whmcs', 'buildr' ),
+ 'fas fa-wifi' => __( 'wifi', 'buildr' ),
+ 'fab fa-wikipedia-w' => __( 'wikipedia-w', 'buildr' ),
+ 'fas fa-window-close' => __( 'window-close', 'buildr' ),
+ 'far fa-window-close' => __( 'window-close', 'buildr' ),
+ 'fas fa-window-maximize' => __( 'window-maximize', 'buildr' ),
+ 'far fa-window-maximize' => __( 'window-maximize', 'buildr' ),
+ 'fas fa-window-minimize' => __( 'window-minimize', 'buildr' ),
+ 'far fa-window-minimize' => __( 'window-minimize', 'buildr' ),
+ 'fas fa-window-restore' => __( 'window-restore', 'buildr' ),
+ 'far fa-window-restore' => __( 'window-restore', 'buildr' ),
+ 'fab fa-windows' => __( 'windows', 'buildr' ),
+ 'fas fa-wine-glass' => __( 'wine-glass', 'buildr' ),
+ 'fas fa-won-sign' => __( 'won-sign', 'buildr' ),
+ 'fab fa-wordpress' => __( 'wordpress', 'buildr' ),
+ 'fab fa-wordpress-simple' => __( 'wordpress-simple', 'buildr' ),
+ 'fab fa-wpbeginner' => __( 'wpbeginner', 'buildr' ),
+ 'fab fa-wpexplorer' => __( 'wpexplorer', 'buildr' ),
+ 'fab fa-wpforms' => __( 'wpforms', 'buildr' ),
+ 'fas fa-wrench' => __( 'wrench', 'buildr' ),
+ 'fas fa-x-ray' => __( 'x-ray', 'buildr' ),
+ 'fab fa-xbox' => __( 'xbox', 'buildr' ),
+ 'fab fa-xing' => __( 'xing', 'buildr' ),
+ 'fab fa-xing-square' => __( 'xing-square', 'buildr' ),
+ 'fab fa-y-combinator' => __( 'y-combinator', 'buildr' ),
+ 'fab fa-yahoo' => __( 'yahoo', 'buildr' ),
+ 'fab fa-yandex' => __( 'yandex', 'buildr' ),
+ 'fab fa-yandex-international' => __( 'yandex-international', 'buildr' ),
+ 'fab fa-yelp' => __( 'yelp', 'buildr' ),
+ 'fas fa-yen-sign' => __( 'yen-sign', 'buildr' ),
+ 'fab fa-yoast' => __( 'yoast', 'buildr' ),
+ 'fab fa-youtube' => __( 'youtube', 'buildr' ),
+ 'fab fa-youtube-square' => __( 'youtube-square', 'buildr' ),
+ );
+
+
+ return apply_filters( 'FONTAWESOME_ARRAY', $fonts_arr );
+ }
+
+
+
+ }
+}
\ No newline at end of file
diff --git a/lib/classes/class-menu-page.php b/lib/classes/class-menu-page.php
new file mode 100755
index 0000000..a9b6032
--- /dev/null
+++ b/lib/classes/class-menu-page.php
@@ -0,0 +1,610 @@
+data = &$args;
+
+ if( $this->add_in_menu() ) {
+ add_action( 'admin_menu', array( $this, 'add_menu_in_admin_menu' ), 12 );
+ }
+
+ add_action( 'admin_init', array( $this, 'display_fields' ), 12 );
+ add_filter( 'whitelist_options', array( $this, 'whitelist_options' ), 99, 1 );
+ }
+
+ public function add_menu_in_admin_menu(){
+
+ if( "main" == $this->get_menu_type() ) {
+ add_menu_page( $this->get_menu_name(), $this->get_menu_title(), $this->get_capability(), $this->get_menu_slug(), array( $this, 'display_function' ), $this->get_menu_icon() );
+ }
+
+ foreach ($this->get_pages() as $panelsIndex=>$panels):
+ add_submenu_page( $this->get_menu_slug(), $panels['page_nav'], $panels['page_nav'], $this->get_capability(),
+ $panelsIndex,
+ array( $this, 'display_function' ) );
+ endforeach;
+
+ }
+
+ public function section_callback( $section ) {
+
+ $section_id = $section['id'];
+
+ $data = isset( $section['callback'][0]->data ) ? $section['callback'][0]->data : array();
+
+
+ ?>
+ ';
+ }
+
+ public function display_fields() {
+
+ foreach ($this->get_pages() as $panelsIndex=>$panels):
+ foreach ($panels['page_settings'] as $sectionIndex=>$sections):
+
+ add_settings_section(
+ $sectionIndex,
+ isset( $sections['title'] ) ? $sections['title'] : "",
+ array( $this, 'section_callback'),
+ $panelsIndex
+ );
+
+ foreach( $sections['options'] as $option ) :
+
+ add_settings_field( $option['id'], $option['title'], array($this,'field_generator'), $panelsIndex, $sectionIndex, $option );
+
+ endforeach;
+
+ endforeach;
+ endforeach;
+
+
+
+ }
+
+ public function field_generator( $option ) {
+
+ $id = isset( $option['id'] ) ? $option['id'] : "";
+ $type = isset( $option['type'] ) ? $option['type'] : "";
+ $details = isset( $option['details'] ) ? $option['details'] : "";
+
+ if( empty( $id ) ) return;
+
+ $prent_option_name = $this->get_option_name();
+ $FormFieldsGenerator = new FormFieldsGenerator();
+
+ if(!empty($prent_option_name)):
+ $field_name = $prent_option_name.'['.$id.']';
+ $option['field_name'] = $field_name;
+
+ $prent_option_value = get_option( $prent_option_name );
+ $option['value'] = isset($prent_option_value[$id]) ? $prent_option_value[$id] : '';
+ else:
+ $option['field_name'] = $id;
+ $option['value'] = get_option( $id );
+ endif;
+
+
+ ?>
+
+
+ field_text($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'text_multi' ){
+ echo $FormFieldsGenerator->field_text_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'textarea' ){
+ echo $FormFieldsGenerator->field_textarea($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'checkbox' ){
+ echo $FormFieldsGenerator->field_checkbox($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'checkbox_multi' ){
+ echo $FormFieldsGenerator->field_checkbox_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'radio' ){
+ echo $FormFieldsGenerator->field_radio($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'select' ){
+ echo $FormFieldsGenerator->field_select($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'range' ){
+ echo $FormFieldsGenerator->field_range($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'range_input' ){
+ echo $FormFieldsGenerator->field_range_input($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'switch' ){
+ echo $FormFieldsGenerator->field_switch($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'switch_multi' ){
+ echo $FormFieldsGenerator->field_switch_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'switch_img' ){
+ echo $FormFieldsGenerator->field_switch_img($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'time_format' ){
+ echo $FormFieldsGenerator->field_time_format($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'date_format' ){
+ echo $FormFieldsGenerator->field_date_format($option);
+ }
+
+ elseif( isset($option['type']) && $option['type'] === 'datepicker' ){
+ echo $FormFieldsGenerator->field_datepicker($option);
+ }
+
+ elseif( isset($option['type']) && $option['type'] === 'colorpicker' ){
+ echo $FormFieldsGenerator->field_colorpicker($option);
+ }
+
+ elseif( isset($option['type']) && $option['type'] === 'colorpicker_multi' ){
+ echo $FormFieldsGenerator->field_colorpicker_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'link_color' ){
+ echo $FormFieldsGenerator->field_link_color($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'icon' ){
+ echo $FormFieldsGenerator->field_icon($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'icon_multi' ){
+ echo $FormFieldsGenerator->field_icon_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'dimensions' ){
+ echo $FormFieldsGenerator->field_dimensions($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'wp_editor' ){
+ echo $FormFieldsGenerator->field_wp_editor($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'select2' ){
+ echo $FormFieldsGenerator->field_select2($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'faq' ){
+ echo $FormFieldsGenerator->field_faq($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'grid' ){
+ echo $FormFieldsGenerator->field_grid($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'color_sets' ){
+ echo $FormFieldsGenerator->field_color_sets($option);
+ }
+
+ elseif( isset($option['type']) && $option['type'] === 'color_palette' ){
+ echo $FormFieldsGenerator->field_color_palette($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'color_palette_multi' ){
+ echo $FormFieldsGenerator->field_color_palette_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'media' ){
+ echo $FormFieldsGenerator->field_media($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'media_multi' ){
+ echo $FormFieldsGenerator->field_media_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'repeatable' ){
+ echo $FormFieldsGenerator->field_repeatable($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'user' ){
+ echo $FormFieldsGenerator->field_user($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'margin' ){
+ echo $FormFieldsGenerator->field_margin($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'padding' ){
+ echo $FormFieldsGenerator->field_padding($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'border' ){
+ echo $FormFieldsGenerator->field_border($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'switcher' ){
+ echo $FormFieldsGenerator->field_switcher($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'password' ){
+ echo $FormFieldsGenerator->field_password($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'post_objects' ){
+ echo $FormFieldsGenerator->field_post_objects($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'google_map' ){
+ echo $FormFieldsGenerator->field_google_map($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'image_link' ){
+ echo $FormFieldsGenerator->field_image_link($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'option_group_accordion' ){
+ echo $FormFieldsGenerator->field_option_group_accordion($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'option_group_tabs' ){
+ echo $FormFieldsGenerator->field_option_group_tabs($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'option_group' ){
+ echo $FormFieldsGenerator->field_option_group($option);
+ }
+
+
+
+ elseif( isset($option['type']) && $option['type'] === $type ){
+ do_action( "wp_theme_settings_field_$type", $option );
+ }
+
+
+
+ if( !empty( $details ) ) echo "$details
";
+
+
+ }
+
+
+ public function generate_field_text( $option ){
+
+ $prent_option_name = $this->get_option_name();
+
+ $id = isset( $option['id'] ) ? $option['id'] : "";
+ $placeholder = isset( $option['placeholder'] ) ? $option['placeholder'] : "";
+ $default = isset( $option['default'] ) ? $option['default'] : "";
+
+
+
+
+ if($prent_option_name):
+ $field_name = $prent_option_name.'['.$id.']';
+
+ $prent_option_value = get_option( $prent_option_name );
+ $value = $prent_option_value[$id];
+ else:
+ $field_name = $id;
+ $value = get_option( $id );
+ endif;
+
+ $value = !empty($value) ? $value : $default;
+
+
+
+ echo "";
+ }
+
+
+
+
+
+
+
+
+ public function whitelist_options( $whitelist_options ){
+ $prent_option_name = $this->get_option_name();
+
+ if($prent_option_name):
+ $whitelist_options[$this->get_menu_slug()][] = $prent_option_name;
+ else:
+ foreach( $this->get_pages() as $page_id => $page ): foreach( $page['page_settings'] as $section ):
+ foreach( $section['options'] as $option ):
+ $whitelist_options[$this->get_menu_slug()][] = $option['id'];
+ endforeach; endforeach;
+ endforeach;
+ endif;
+
+
+
+
+ update_option('whitelist_options',$whitelist_options );
+
+ return $whitelist_options;
+ }
+
+ public function display_function(){
+
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+ get_current_page();
+
+ foreach( $this->get_pages() as $page_id => $page ):
+
+ $page_settings = !empty($page['page_settings']) ? $page['page_settings'] : array();
+
+
+ $page_settings_count = count($page_settings);
+ //var_dump($page_settings);
+ ?>
+ -
+ ' class='nav-item'>
+
+ 1)) echo ''; ?>
+
+ 1)):
+ ?>
+
+ $nav_sections):
+ $nav_sections_title = !empty($nav_sections['nav_title']) ? $nav_sections['nav_title'] : $nav_sections['title'];
+
+ //var_dump($nav_sections_title);
+ ?>
+ -
+
+ ' class='nav-item '>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ get_pages() as $panelsIndex=>$panels):
+
+ $pages[] = $panelsIndex;
+
+ endforeach;
+
+
+ // var_dump($pages);
+
+ foreach ($pages as $page):
+ if($current_page == $page){
+ $_current_page = $page;
+ break;
+ }
+ else{
+ $_current_page = $pages[0];
+ }
+ endforeach;
+
+ return $_current_page;
+
+ }
+
+ private function get_item_name(){
+ if( isset( $this->data['item_name'] ) ) return $this->data['item_name'];
+ else return "PickPlugins";
+ }
+
+ private function get_item_version(){
+ if( isset( $this->data['item_version'] ) ) return $this->data['item_version'];
+ else return "1.0.0";
+ }
+
+
+ private function get_menu_type(){
+ if( isset( $this->data['menu_type'] ) ) return $this->data['menu_type'];
+ else return "main";
+ }
+ private function get_pages(){
+ if( isset( $this->data['panels'] ) ) return $this->data['panels'];
+ else return array();
+ }
+
+ private function get_settings_name(){
+ if( isset( $this->data['settings_name'] ) ) return $this->data['settings_name'];
+ else return "my_custom_settings";
+ }
+ private function get_menu_icon(){
+ if( isset( $this->data['menu_icon'] ) ) return $this->data['menu_icon'];
+ else return "";
+ }
+ private function get_menu_slug(){
+ if( isset( $this->data['menu_slug'] ) ) return $this->data['menu_slug'];
+ else return "my-custom-settings";
+ }
+ private function get_capability(){
+ if( isset( $this->data['capability'] ) ) return $this->data['capability'];
+ else return "manage_options";
+ }
+ private function get_menu_page_title(){
+ if( isset( $this->data['menu_page_title'] ) ) return $this->data['menu_page_title'];
+ else return "My Custom Menu";
+ }
+ private function get_menu_name(){
+ if( isset( $this->data['menu_name'] ) ) return $this->data['menu_name'];
+ else return "Menu Name";
+ }
+ private function get_menu_title(){
+ if( isset( $this->data['menu_title'] ) ) return $this->data['menu_title'];
+ else return "Menu Title";
+ }
+ private function get_page_title(){
+ if( isset( $this->data['page_title'] ) ) return $this->data['page_title'];
+ else return "Page Title";
+ }
+ private function add_in_menu(){
+ if( isset( $this->data['add_in_menu'] ) && $this->data['add_in_menu'] ) return true;
+ else return false;
+ }
+
+ private function get_option_name(){
+ if( isset( $this->data['option_name'] )) return $this->data['option_name'];
+ else return false;
+ }
+
+ private function get_option_id(){
+ if( isset( $this->data['option_id'] ) && $this->data['option_id'] ) return $this->data['option_id'];
+ else return "";
+ }
+
+ }
+
+}
+
+
diff --git a/lib/classes/class-meta-box.php b/lib/classes/class-meta-box.php
new file mode 100755
index 0000000..a4f9829
--- /dev/null
+++ b/lib/classes/class-meta-box.php
@@ -0,0 +1,527 @@
+data = &$args;
+
+ add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ), 12 );
+ add_action( 'save_post', array( $this, 'save_post' ), 12 );
+
+
+ }
+
+ public function add_meta_boxes(){
+
+
+ add_meta_box($this->get_meta_box_id(),$this->get_meta_box_title(),array( $this, 'meta_box_callback' ),
+ $this->get_meta_box_screen(), $this->get_meta_box_context(), $this->get_meta_box_priority(),$this->get_callback_args());
+ }
+
+
+ public function save_post($post_id){
+
+ $get_option_name = $this->get_option_name();
+ $post_id = $this->get_post_id();
+
+ if(!empty($get_option_name)):
+ $option_value = serialize($_POST[$get_option_name]);
+
+ update_post_meta($post_id, $get_option_name, $option_value);
+
+
+ else:
+
+ foreach ($this->get_panels() as $panelsIndex=>$panel):
+ foreach ($panel['sections'] as $sectionIndex=>$section):
+ foreach ($section['options'] as $option):
+
+ $option_value = isset($_POST[$option['id']]) ? $_POST[$option['id']] : '';
+
+ if(is_array($option_value)){
+ $option_value = serialize($option_value);
+ }
+
+
+
+ update_post_meta($post_id, $option['id'], $option_value);
+
+ endforeach;
+ endforeach;
+ endforeach;
+
+ endif;
+
+
+
+ }
+
+
+ public function meta_box_callback(){
+
+ $get_nav_position = $this->get_nav_position();
+
+ //var_dump($get_nav_position);
+ ?>
+
+
+ get_post_id();
+
+ if( empty( $id ) ) return;
+
+ $prent_option_name = $this->get_option_name();
+ $FormFieldsGenerator = new FormFieldsGenerator();
+
+ if(!empty($prent_option_name)):
+ $field_name = $prent_option_name.'['.$id.']';
+ $option['field_name'] = $field_name;
+
+ $prent_option_value = get_post_meta($post_id, $prent_option_name, true );
+
+ $prent_option_value = is_serialized($prent_option_value) ? unserialize($prent_option_value): array();
+ $option['value'] = isset($prent_option_value[$id]) ? $prent_option_value[$id] : '';
+ else:
+ $option['field_name'] = $id;
+ $option_value = get_post_meta($post_id, $id, true );
+ $option['value'] = is_serialized($option_value) ? unserialize($option_value): $option_value;
+
+ endif;
+
+
+ //var_dump($prent_option_value);
+
+ ?>
+
+ field_text($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'text_multi' ){
+ echo $FormFieldsGenerator->field_text_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'textarea' ){
+ echo $FormFieldsGenerator->field_textarea($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'checkbox' ){
+ echo $FormFieldsGenerator->field_checkbox($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'checkbox_multi' ){
+ echo $FormFieldsGenerator->field_checkbox_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'radio' ){
+ echo $FormFieldsGenerator->field_radio($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'select' ){
+ echo $FormFieldsGenerator->field_select($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'range' ){
+ echo $FormFieldsGenerator->field_range($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'range_input' ){
+ echo $FormFieldsGenerator->field_range_input($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'switch' ){
+ echo $FormFieldsGenerator->field_switch($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'switch_multi' ){
+ echo $FormFieldsGenerator->field_switch_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'switch_img' ){
+ echo $FormFieldsGenerator->field_switch_img($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'time_format' ){
+ echo $FormFieldsGenerator->field_time_format($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'date_format' ){
+ echo $FormFieldsGenerator->field_date_format($option);
+ }
+
+ elseif( isset($option['type']) && $option['type'] === 'datepicker' ){
+ echo $FormFieldsGenerator->field_datepicker($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'color_sets' ){
+ echo $FormFieldsGenerator->field_color_sets($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'colorpicker' ){
+ echo $FormFieldsGenerator->field_colorpicker($option);
+ }
+
+ elseif( isset($option['type']) && $option['type'] === 'colorpicker_multi' ){
+ echo $FormFieldsGenerator->field_colorpicker_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'link_color' ){
+ echo $FormFieldsGenerator->field_link_color($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'icon' ){
+ echo $FormFieldsGenerator->field_icon($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'icon_multi' ){
+ echo $FormFieldsGenerator->field_icon_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'dimensions' ){
+ echo $FormFieldsGenerator->field_dimensions($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'wp_editor' ){
+ echo $FormFieldsGenerator->field_wp_editor($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'select2' ){
+ echo $FormFieldsGenerator->field_select2($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'faq' ){
+ echo $FormFieldsGenerator->field_faq($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'grid' ){
+ echo $FormFieldsGenerator->field_grid($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'color_palette' ){
+ echo $FormFieldsGenerator->field_color_palette($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'color_palette_multi' ){
+ echo $FormFieldsGenerator->field_color_palette_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'media' ){
+ echo $FormFieldsGenerator->field_media($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'media_multi' ){
+ echo $FormFieldsGenerator->field_media_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'repeatable' ){
+ echo $FormFieldsGenerator->field_repeatable($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'user' ){
+ echo $FormFieldsGenerator->field_user($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'margin' ){
+ echo $FormFieldsGenerator->field_margin($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'padding' ){
+ echo $FormFieldsGenerator->field_padding($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'border' ){
+ echo $FormFieldsGenerator->field_border($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'switcher' ){
+ echo $FormFieldsGenerator->field_switcher($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'password' ){
+ echo $FormFieldsGenerator->field_password($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'post_objects' ){
+ echo $FormFieldsGenerator->field_post_objects($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'google_map' ){
+ echo $FormFieldsGenerator->field_google_map($option);
+ }
+
+ elseif( isset($option['type']) && $option['type'] === $type ){
+ do_action( "wp_theme_settings_field_$type", $option );
+ }
+ if( !empty( $details ) ) echo "$details
";
+
+
+ }
+
+
+
+ private function get_meta_box_id(){
+ if( isset( $this->data['meta_box_id'] ) ) return $this->data['meta_box_id'];
+ else return "";
+ }
+
+ private function get_meta_box_title(){
+ if( isset( $this->data['meta_box_title'] ) ) return $this->data['meta_box_title'];
+ else return "";
+ }
+
+ private function get_meta_box_screen(){
+ if( isset( $this->data['screen'] ) ) return $this->data['screen'];
+ else return array('post');
+ }
+
+ private function get_meta_box_context(){
+ if( isset( $this->data['context'] ) ) return $this->data['context'];
+ else return 'normal';
+ }
+
+ private function get_meta_box_priority(){
+ if( isset( $this->data['priority'] ) ) return $this->data['priority'];
+ else return "high";
+ }
+
+ private function get_callback_args(){
+ if( isset( $this->data['callback_args'] ) ) return $this->data['callback_args'];
+ else return array();
+ }
+
+ private function get_panels(){
+ if( isset( $this->data['panels'] ) ) return $this->data['panels'];
+ else return array();
+ }
+
+
+ private function get_item_name(){
+ if( isset( $this->data['item_name'] ) ) return $this->data['item_name'];
+ else return "PickPlugins";
+ }
+
+ private function get_item_version(){
+ if( isset( $this->data['item_version'] ) ) return $this->data['item_version'];
+ else return "1.0.0";
+ }
+
+ private function get_option_name(){
+ if( isset( $this->data['option_name'] )) return $this->data['option_name'];
+ else return false;
+ }
+
+ private function get_nav_position(){
+ if( isset( $this->data['nav_position'] )) return $this->data['nav_position'];
+ else return 'left';
+ }
+
+
+ private function get_post_id(){
+
+ $post_id = get_the_ID();
+ return $post_id;
+ }
+
+
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+}
\ No newline at end of file
diff --git a/lib/classes/class-taxonomy-edit.php b/lib/classes/class-taxonomy-edit.php
new file mode 100755
index 0000000..97b99c3
--- /dev/null
+++ b/lib/classes/class-taxonomy-edit.php
@@ -0,0 +1,284 @@
+data = &$args;
+
+ add_action( $this->get_taxonomy().'_add_form_fields', array( $this, 'add_form_fields' ), 12 );
+ add_action( $this->get_taxonomy().'_edit_form_fields', array( $this, 'edit_form_fields' ), 12 );
+
+ add_action( 'edited_'.$this->get_taxonomy(), array( $this, 'save_update_taxonomy' ), 12 );
+ add_action( 'create_'.$this->get_taxonomy(), array( $this, 'save_update_taxonomy' ), 12 );
+
+ }
+
+
+
+
+ public function save_update_taxonomy($term_id){
+
+
+
+
+
+ foreach ($this->get_panels() as $optionIndex=>$option):
+
+
+
+ $option_value = isset($_POST[$option['id']]) ? $_POST[$option['id']] : '';
+
+ if(is_array($option_value)){
+ $option_value = serialize($option_value);
+ }
+
+
+
+ update_term_meta($term_id, $option['id'], $option_value);
+
+ endforeach;
+
+
+
+
+ }
+
+
+ public function edit_form_fields($term){
+
+ $term_id = $term->term_id;
+
+ ?>
+ get_panels() as $optionIndex=>$option):
+
+ //var_dump($option);
+
+ ?>
+
+ |
+
+ field_generator($option, $term_id)
+ ?>
+ |
+
+
+ get_panels() as $optionIndex=>$option):
+
+ ?>
+
+ |
+
+ field_generator($option, $term_id)
+ ?>
+ |
+
+ field_text($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'text_multi' ){
+ echo $FormFieldsGenerator->field_text_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'textarea' ){
+ echo $FormFieldsGenerator->field_textarea($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'checkbox' ){
+ echo $FormFieldsGenerator->field_checkbox($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'radio' ){
+ echo $FormFieldsGenerator->field_radio($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'select' ){
+ echo $FormFieldsGenerator->field_select($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'range' ){
+ echo $FormFieldsGenerator->field_range($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'range_input' ){
+ echo $FormFieldsGenerator->field_range_input($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'switch' ){
+ echo $FormFieldsGenerator->field_switch($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'switch_multi' ){
+ echo $FormFieldsGenerator->field_switch_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'switch_img' ){
+ echo $FormFieldsGenerator->field_switch_img($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'time_format' ){
+ echo $FormFieldsGenerator->field_time_format($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'date_format' ){
+ echo $FormFieldsGenerator->field_date_format($option);
+ }
+
+ elseif( isset($option['type']) && $option['type'] === 'datepicker' ){
+ echo $FormFieldsGenerator->field_datepicker($option);
+ }
+
+ elseif( isset($option['type']) && $option['type'] === 'colorpicker' ){
+ echo $FormFieldsGenerator->field_colorpicker($option);
+ }
+
+ elseif( isset($option['type']) && $option['type'] === 'colorpicker_multi' ){
+ echo $FormFieldsGenerator->field_colorpicker_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'link_color' ){
+ echo $FormFieldsGenerator->field_link_color($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'icon' ){
+ echo $FormFieldsGenerator->field_icon($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'icon_multi' ){
+ echo $FormFieldsGenerator->field_icon_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'dimensions' ){
+ echo $FormFieldsGenerator->field_dimensions($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'wp_editor' ){
+ echo $FormFieldsGenerator->field_wp_editor($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'select2' ){
+ echo $FormFieldsGenerator->field_select2($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'faq' ){
+ echo $FormFieldsGenerator->field_faq($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'grid' ){
+ echo $FormFieldsGenerator->field_grid($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'color_palette' ){
+ echo $FormFieldsGenerator->field_color_palette($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'color_palette_multi' ){
+ echo $FormFieldsGenerator->field_color_palette_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'media' ){
+ echo $FormFieldsGenerator->field_media($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'media_multi' ){
+ echo $FormFieldsGenerator->field_media_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'repeatable' ){
+ echo $FormFieldsGenerator->field_repeatable($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'user' ){
+ echo $FormFieldsGenerator->field_user($option);
+ }
+
+
+
+
+ elseif( isset($option['type']) && $option['type'] === $type ){
+ do_action( "wp_theme_settings_field_$type", $option );
+ }
+ if( !empty( $details ) ) echo "$details
";
+
+
+ }
+
+
+
+ private function get_taxonomy(){
+ if( isset( $this->data['taxonomy'] ) ) return $this->data['taxonomy'];
+ else return "category";
+ }
+
+
+
+ private function get_panels(){
+ if( isset( $this->data['options'] ) ) return $this->data['options'];
+ else return array();
+ }
+
+
+
+
+
+
+
+ private function get_tax_id(){
+
+ //$post_id = get_the_ID();
+ //return $post_id;
+ }
+
+
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+}
\ No newline at end of file
diff --git a/lib/classes/class-theme-page.php b/lib/classes/class-theme-page.php
new file mode 100755
index 0000000..63c5620
--- /dev/null
+++ b/lib/classes/class-theme-page.php
@@ -0,0 +1,560 @@
+data = &$args;
+
+ if( $this->add_in_menu() ) {
+ add_action( 'admin_menu', array( $this, 'add_menu_in_admin_menu' ), 12 );
+ }
+
+ add_action( 'admin_init', array( $this, 'display_fields' ), 12 );
+ add_filter( 'whitelist_options', array( $this, 'whitelist_options' ), 99, 1 );
+ }
+
+ public function add_menu_in_admin_menu(){
+
+ if( "main" == $this->get_menu_type() ) {
+ add_theme_page( $this->get_menu_name(), $this->get_menu_title(), $this->get_capability(), $this->get_menu_slug(), array( $this, 'display_function' ), $this->get_menu_icon() );
+ }
+
+ if( "sub" == $this->get_menu_type() ) {
+ add_submenu_page($this->data['cpt_menu'], $this->get_menu_title(), $this->get_menu_title(), $this->get_capability(), $this->get_menu_slug(), array( $this, 'display_function' ));
+ }
+
+
+ }
+
+ public function section_callback( $section ) {
+
+ $section_id = $section['id'];
+ //var_dump($section_id);
+
+
+ $data = isset( $section['callback'][0]->data ) ? $section['callback'][0]->data : array();
+
+
+
+ //$description = $section['description'];
+
+ $description = $section['id'] ;
+ echo '';
+ }
+
+ public function display_fields() {
+
+ foreach ($this->get_pages() as $panelsIndex=>$panels):
+
+ //var_dump($panelsIndex);
+
+ foreach ($panels['page_settings'] as $sectionIndex=>$sections):
+
+ add_settings_section(
+ $sectionIndex,
+ isset( $sections['title'] ) ? $sections['title'] : "",
+ array( $this, 'section_callback'),
+ $panelsIndex
+ );
+
+ foreach( $sections['options'] as $option ) :
+
+ add_settings_field( $option['id'], $option['title'], array($this,'field_generator'), $panelsIndex, $sectionIndex, $option );
+
+ endforeach;
+
+ endforeach;
+ endforeach;
+
+
+
+ }
+
+ public function field_generator( $option ) {
+
+ $id = isset( $option['id'] ) ? $option['id'] : "";
+ $type = isset( $option['type'] ) ? $option['type'] : "";
+ $details = isset( $option['details'] ) ? $option['details'] : "";
+
+ if( empty( $id ) ) return;
+
+ $FormFieldsGenerator = array();
+ $prent_option_name = $this->get_option_name();
+ $FormFieldsGenerator = new FormFieldsGenerator();
+
+ if(!empty($prent_option_name)):
+ $field_name = $prent_option_name.'['.$id.']';
+ $option['field_name'] = $field_name;
+
+ $prent_option_value = get_option( $prent_option_name );
+ $option['value'] = isset($prent_option_value[$id]) ? $prent_option_value[$id] : '';
+ else:
+ $option['field_name'] = $id;
+ $option['value'] = get_option( $id );
+ endif;
+
+
+ ?>
+ field_text($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'text_multi' ){
+ echo $FormFieldsGenerator->field_text_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'textarea' ){
+ echo $FormFieldsGenerator->field_textarea($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'checkbox' ){
+ echo $FormFieldsGenerator->field_checkbox($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'checkbox_multi' ){
+ echo $FormFieldsGenerator->field_checkbox_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'radio' ){
+ echo $FormFieldsGenerator->field_radio($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'select' ){
+ echo $FormFieldsGenerator->field_select($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'range' ){
+ echo $FormFieldsGenerator->field_range($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'range_input' ){
+ echo $FormFieldsGenerator->field_range_input($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'switch' ){
+ echo $FormFieldsGenerator->field_switch($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'switch_multi' ){
+ echo $FormFieldsGenerator->field_switch_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'switch_img' ){
+ echo $FormFieldsGenerator->field_switch_img($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'time_format' ){
+ echo $FormFieldsGenerator->field_time_format($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'date_format' ){
+ echo $FormFieldsGenerator->field_date_format($option);
+ }
+
+ elseif( isset($option['type']) && $option['type'] === 'datepicker' ){
+ echo $FormFieldsGenerator->field_datepicker($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'color_sets' ){
+ echo $FormFieldsGenerator->field_color_sets($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'colorpicker' ){
+ echo $FormFieldsGenerator->field_colorpicker($option);
+ }
+
+ elseif( isset($option['type']) && $option['type'] === 'colorpicker_multi' ){
+ echo $FormFieldsGenerator->field_colorpicker_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'link_color' ){
+ echo $FormFieldsGenerator->field_link_color($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'icon' ){
+ echo $FormFieldsGenerator->field_icon($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'icon_multi' ){
+ echo $FormFieldsGenerator->field_icon_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'dimensions' ){
+ echo $FormFieldsGenerator->field_dimensions($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'wp_editor' ){
+ echo $FormFieldsGenerator->field_wp_editor($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'select2' ){
+ echo $FormFieldsGenerator->field_select2($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'faq' ){
+ echo $FormFieldsGenerator->field_faq($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'grid' ){
+ echo $FormFieldsGenerator->field_grid($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'color_palette' ){
+ echo $FormFieldsGenerator->field_color_palette($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'color_palette_multi' ){
+ echo $FormFieldsGenerator->field_color_palette_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'media' ){
+ echo $FormFieldsGenerator->field_media($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'media_multi' ){
+ echo $FormFieldsGenerator->field_media_multi($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'repeatable' ){
+ echo $FormFieldsGenerator->field_repeatable($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'user' ){
+ echo $FormFieldsGenerator->field_user($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'margin' ){
+ echo $FormFieldsGenerator->field_margin($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'padding' ){
+ echo $FormFieldsGenerator->field_padding($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'border' ){
+ echo $FormFieldsGenerator->field_border($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'switcher' ){
+ echo $FormFieldsGenerator->field_switcher($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'password' ){
+ echo $FormFieldsGenerator->field_password($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'post_objects' ){
+ echo $FormFieldsGenerator->field_post_objects($option);
+ }
+ elseif( isset($option['type']) && $option['type'] === 'google_map' ){
+ echo $FormFieldsGenerator->field_google_map($option);
+ }
+
+
+ elseif( isset($option['type']) && $option['type'] === $type ){
+ do_action( "wp_theme_settings_field_$type", $option );
+ }
+ if( !empty( $details ) ) echo "$details
";
+
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+ public function whitelist_options( $whitelist_options ){
+ $prent_option_name = $this->get_option_name();
+
+ if($prent_option_name):
+ $whitelist_options[$this->get_menu_slug()][] = $prent_option_name;
+ else:
+ foreach( $this->get_pages() as $page_id => $page ): foreach( $page['page_settings'] as $section ):
+ foreach( $section['options'] as $option ):
+ $whitelist_options[$this->get_menu_slug()][] = $option['id'];
+ endforeach; endforeach;
+ endforeach;
+ endif;
+
+
+
+
+ update_option('whitelist_options',$whitelist_options );
+
+ return $whitelist_options;
+ }
+
+ public function display_function(){
+
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+ get_current_page();
+
+ foreach( $this->get_pages() as $page_id => $page ):
+
+ $page_settings = !empty($page['page_settings']) ? $page['page_settings'] : array();
+
+
+ $page_settings_count = count($page_settings);
+ //var_dump($page_settings);
+ ?>
+ -
+ ' class='nav-item'>
+
+ 1)) echo ''; ?>
+
+ 1)):
+ ?>
+
+ $nav_sections):
+ $nav_sections_title = !empty($nav_sections['nav_title']) ? $nav_sections['nav_title'] : $nav_sections['title'];
+
+ //var_dump($nav_sections_title);
+ ?>
+ -
+
+ ' class='nav-item '>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ get_pages() as $panelsIndex=>$panels):
+
+ $pages[] = $panelsIndex;
+
+ endforeach;
+
+
+ // var_dump($pages);
+
+ foreach ($pages as $page):
+ if($current_page == $page){
+ $_current_page = $page;
+ break;
+ }
+ else{
+ $_current_page = $pages[0];
+ }
+ endforeach;
+
+ return $_current_page;
+
+ }
+
+ private function get_item_name(){
+ if( isset( $this->data['item_name'] ) ) return $this->data['item_name'];
+ else return "PickPlugins";
+ }
+
+ private function get_item_version(){
+ if( isset( $this->data['item_version'] ) ) return $this->data['item_version'];
+ else return "1.0.0";
+ }
+
+
+ private function get_menu_type(){
+ if( isset( $this->data['menu_type'] ) ) return $this->data['menu_type'];
+ else return "main";
+ }
+ private function get_pages(){
+ if( isset( $this->data['panels'] ) ) return $this->data['panels'];
+ else return array();
+ }
+
+ private function get_settings_name(){
+ if( isset( $this->data['settings_name'] ) ) return $this->data['settings_name'];
+ else return "my_custom_settings";
+ }
+ private function get_menu_icon(){
+ if( isset( $this->data['menu_icon'] ) ) return $this->data['menu_icon'];
+ else return "";
+ }
+ private function get_menu_slug(){
+ if( isset( $this->data['menu_slug'] ) ) return $this->data['menu_slug'];
+ else return "my-custom-settings";
+ }
+ private function get_capability(){
+ if( isset( $this->data['capability'] ) ) return $this->data['capability'];
+ else return "manage_options";
+ }
+ private function get_menu_page_title(){
+ if( isset( $this->data['menu_page_title'] ) ) return $this->data['menu_page_title'];
+ else return "My Custom Menu";
+ }
+ private function get_menu_name(){
+ if( isset( $this->data['menu_name'] ) ) return $this->data['menu_name'];
+ else return "Menu Name";
+ }
+ private function get_menu_title(){
+ if( isset( $this->data['menu_title'] ) ) return $this->data['menu_title'];
+ else return "Menu Title";
+ }
+ private function get_page_title(){
+ if( isset( $this->data['page_title'] ) ) return $this->data['page_title'];
+ else return "Page Title";
+ }
+ private function add_in_menu(){
+ if( isset( $this->data['add_in_menu'] ) && $this->data['add_in_menu'] ) return true;
+ else return false;
+ }
+
+ private function get_option_name(){
+ if( isset( $this->data['option_name'] )) return $this->data['option_name'];
+ else return false;
+ }
+
+ private function get_option_id(){
+ if( isset( $this->data['option_id'] ) && $this->data['option_id'] ) return $this->data['option_id'];
+ else return "";
+ }
+
+ }
+
+}
+
+
diff --git a/lib/classes/class-wc-product-data.php b/lib/classes/class-wc-product-data.php
new file mode 100755
index 0000000..8b4732e
--- /dev/null
+++ b/lib/classes/class-wc-product-data.php
@@ -0,0 +1,75 @@
+set_defaults();
+
+ if ( ! $product->get_id() || ! ( $post_object = get_post( $product->get_id() ) ) || ! in_array( $post_object->post_type, $this->cpt_product() ) ) { // change birds with your post type
+ throw new Exception( __( 'Invalid product.', 'woocommerce' ) );
+ }
+
+ $id = $product->get_id();
+
+ $product->set_props( array(
+ 'name' => $post_object->post_title,
+ 'slug' => $post_object->post_name,
+ 'date_created' => 0 < $post_object->post_date_gmt ? wc_string_to_timestamp( $post_object->post_date_gmt ) : null,
+ 'date_modified' => 0 < $post_object->post_modified_gmt ? wc_string_to_timestamp( $post_object->post_modified_gmt ) : null,
+ 'status' => $post_object->post_status,
+ 'description' => $post_object->post_content,
+ 'product_id' => $post_object->ID,
+ 'sku' => $post_object->ID,
+ 'short_description' => $post_object->post_excerpt,
+ 'parent_id' => $post_object->post_parent,
+ 'menu_order' => $post_object->menu_order,
+ 'reviews_allowed' => 'open' === $post_object->comment_status,
+ ) );
+
+ $this->read_attributes( $product );
+ $this->read_downloads( $product );
+ $this->read_visibility( $product );
+ $this->read_product_data( $product );
+ $this->read_extra_data( $product );
+ $product->set_object_read( true );
+ }
+
+ /**
+ * Get the product type based on product ID.
+ *
+ * @since 3.0.0
+ * @param int $product_id
+ * @return bool|string
+ */
+ public function get_product_type( $product_id ) {
+ $post_type = get_post_type( $product_id );
+ if ( 'product_variation' === $post_type ) {
+ return 'variation';
+ } elseif ( in_array( $post_type, $this->cpt_product() ) ) { // change birds with your post type
+ $terms = get_the_terms( $product_id, 'product_type' );
+ return ! empty( $terms ) ? sanitize_title( current( $terms )->name ) : 'simple';
+ } else {
+ return false;
+ }
+ }
+}
+
+ add_filter( 'woocommerce_data_stores', 'wbtm_woocommerce_data_stores' );
+ function wbtm_woocommerce_data_stores ( $stores ) {
+ $stores['product'] = 'MAGE_Product_Data_Store_CPT';
+ return $stores;
+ }
+}
+}
\ No newline at end of file
diff --git a/readme.txt b/readme.txt
index b9eae4a..94a30b7 100644
--- a/readme.txt
+++ b/readme.txt
@@ -4,7 +4,7 @@ Tags: event, woocomerce events manager, events manager, Wordpress Events plugin,
Requires at least: 5.3
Stable tag: trunk
Version: 2.1.3
-Tested up to: 5.3
+Tested up to: 5.4
Requires PHP: 7.0
WC requires at least: 3.0
WC tested up to: 4.0
@@ -141,7 +141,7 @@ To Show the Event Only Title Style. example 👉[Title Style Demo](https://demo.
`
**Event Carousal:**
-To Show the Event Carousal. example 👉[Title Style Demo](https://demo.vaincode.com/mage-event/event-carousal/)👈:
+To Show the Event Carousal. example 👉[Event Carousal Demo](https://demo.vaincode.com/mage-event/event-carousal/)👈:
`
[event-list style='grid' pagination='carousal' carousal-dots='yes' carousal-nav='yes' column=3]
@@ -177,7 +177,7 @@ By default there is no pagination with the event list but if you want to show pa
`
**Filter By City:**
-Filter Event by City. example 👉[Title Style Demo](https://demo.vaincode.com/mage-event/event-list-filter-by-city/)👈:
+Filter Event by City. example 👉[Filter By City Demo](https://demo.vaincode.com/mage-event/event-list-filter-by-city/)👈:
`
[event-list style='grid' city='Dhaka' column=3 show=8]
@@ -185,7 +185,7 @@ Filter Event by City. example 👉[Title Style Demo](https://demo.vaincode.com/m
`
**Filter By Country:**
-Filter Event by Country.example 👉[Title Style Demo](https://demo.vaincode.com/mage-event/event-list-filter-by-country/)👈:
+Filter Event by Country.example 👉[Filter By Country Demo](https://demo.vaincode.com/mage-event/event-list-filter-by-country/)👈:
`
[event-list style='grid' country='India' column=3 show=8]
@@ -208,13 +208,27 @@ You can sort event list by event start datetime. By default it showing as Assend
`
-### Event City List ShortCode:
+### Event Add To Cart Section ShortCode:
+You can show Event Cart Section with Ticket type & extra servive list anywhere in your website by using the below shortcode. example 👉[See Demo](https://demo.vaincode.com/mage-event/event-add-to-cart-section/)👈:
+`
+[event-add-cart-section event=EventID]
+`
+
+### Event City List ShortCode:
+Display the City List which is used in the event anywhere in your website by using below shortcode. example 👉[City List Demo](https://demo.vaincode.com/mage-event/event-city-list/)👈:
`
[event-city-list]
`
+### Event Speaker List ShortCode:
+Display Event Speaker List Any Post or Page by using the below Shortcode.. example 👉[View Demo](https://demo.vaincode.com/mage-event/speaker-list/)👈:
+`
+[event-speaker-list event=EventID]
+
+`
+
= Some Others Very Nice Addon Support Available =
@@ -505,3 +519,20 @@ Fixed Grid style broken issue
Date Timezone Wrong name Display issue fixed
Calendar No Event Display Issue Fixed
11 April 2020*
+
+
+= 3.2.4 =
+* Update Release:
+Code Optimized & Improved
+Expire Event List Not showing issue fixed
+Wrong Download Button Removed from order list
+Wrong Timezone name show into Date issue fixed
+Virtual Event Theme Added
+Speaker List Added with Speaker Template
+Speaker List Shortcode Added
+Event Cart Section Shortcode Added
+Custom CSS Code section added into Event Settings
+Event Settings Page Design Improved
+Event Location & Date Show/Hide from Order Details and Email Body option added into the event settings
+Multi Date Expand/Collapse option added into Event Details Page.
+28 April 2020*
\ No newline at end of file
diff --git a/templates/single-speaker.php b/templates/single-speaker.php
new file mode 100644
index 0000000..e7a1fee
--- /dev/null
+++ b/templates/single-speaker.php
@@ -0,0 +1,17 @@
+
+
+term_id;
-// print_r(get_queried_object());
?>
-
-
-
name; ?>
-
description; ?>
-
- array( 'mep_events' ),
- 'posts_per_page' => -1,
- 'tax_query' => array(
- array(
- 'taxonomy' => 'mep_cat',
- 'field' => 'term_id',
- 'terms' => $term_id
- )
- )
-
- );
- $loop = new WP_Query( $args_search_qqq );
- while ($loop->have_posts()) {
- $loop->the_post();
- $event_meta = get_post_custom(get_the_id());
- $time = strtotime($event_meta['event_start_date'][0].' '.$event_meta['event_start_time'][0]);
- $newformat = date('Y-m-d H:i:s',$time);
-
-
- if(time() < strtotime($newformat)){
-
- ?>
-
-
-
-
- on -
-
- ,, ,,,
-
+
+
+
name; ?>
+
description; ?>
+
+ have_posts()) {
+ $loop->the_post();
+ do_action('mep_event_list_shortcode', get_the_id(), 'three_column', 'grid');
+ }
+ wp_reset_postdata();
+ mep_event_pagination($loop->max_num_pages);
+ ?>
+
-
-
+get_footer();
\ No newline at end of file
diff --git a/templates/taxonomy-organozer.php b/templates/taxonomy-organozer.php
index 5d826bf..5d02de7 100644
--- a/templates/taxonomy-organozer.php
+++ b/templates/taxonomy-organozer.php
@@ -1,71 +1,26 @@
term_id;
-// print_r(get_queried_object());
?>
-
-
-
-
name; ?>
-
description; ?>
-
- array( 'mep_events' ),
- 'posts_per_page' => -1,
- 'tax_query' => array(
- array(
- 'taxonomy' => 'mep_org',
- 'field' => 'term_id',
- 'terms' => $term_id
- )
- )
-
- );
- $loop = new WP_Query( $args_search_qqq );
- while ($loop->have_posts()) {
- $loop->the_post();
- $event_meta = get_post_custom(get_the_id());
- $time = strtotime($event_meta['event_start_date'][0].' '.$event_meta['event_start_time'][0]);
- $newformat = date('Y-m-d H:i:s',$time);
-
-
- if(time() < strtotime($newformat)){
-
-
- $start_datetime = $event_meta['event_start_date'][0].' '.$event_meta['event_start_time'][0];
- $start_date = $event_meta['event_start_date'][0];
- $start_time = $event_meta['event_start_time'][0];
-
- $end_datetime = $event_meta['event_end_date'][0].' '.$event_meta['event_end_time'][0];
-
- $end_date = $event_meta['event_end_date'][0];
- $end_time = $event_meta['event_end_time'][0];
-
-
-
-
-
- ?>
-
-
-
-
- on -
-
- ,, ,,,
-
+
+
+
name; ?>
+
description; ?>
+
+ have_posts()) {
+ $loop->the_post();
+ do_action('mep_event_list_shortcode', get_the_id(), 'three_column', 'grid');
+ }
+ wp_reset_postdata();
+ mep_event_pagination($loop->max_num_pages);
+ ?>
+
-
-
diff --git a/templates/themes/default-theme.php b/templates/themes/default-theme.php
index ed6446c..792f7af 100644
--- a/templates/themes/default-theme.php
+++ b/templates/themes/default-theme.php
@@ -2,16 +2,16 @@
// Template Name: Default Theme
// Settings Value :::::::::::::::::::::::::::::::::::::::;
-$hide_date_details = mep_get_option('mep_event_hide_date_from_details', 'general_setting_sec', 'no');
-$hide_time_details = mep_get_option('mep_event_hide_time_from_details', 'general_setting_sec', 'no');
-$hide_location_details = mep_get_option('mep_event_hide_location_from_details', 'general_setting_sec', 'no');
-$hide_total_seat_details = mep_get_option('mep_event_hide_total_seat_from_details', 'general_setting_sec', 'no');
-$hide_org_by_details = mep_get_option('mep_event_hide_org_from_details', 'general_setting_sec', 'no');
-$hide_address_details = mep_get_option('mep_event_hide_address_from_details', 'general_setting_sec', 'no');
-$hide_schedule_details = mep_get_option('mep_event_hide_event_schedule_details', 'general_setting_sec', 'no');
-$hide_share_details = mep_get_option('mep_event_hide_share_this_details', 'general_setting_sec', 'no');
-$hide_calendar_details = mep_get_option('mep_event_hide_calendar_details', 'general_setting_sec', 'no');
-
+$hide_date_details = mep_get_option('mep_event_hide_date_from_details', 'general_setting_sec', 'no');
+$hide_time_details = mep_get_option('mep_event_hide_time_from_details', 'general_setting_sec', 'no');
+$hide_location_details = mep_get_option('mep_event_hide_location_from_details', 'general_setting_sec', 'no');
+$hide_total_seat_details = mep_get_option('mep_event_hide_total_seat_from_details', 'general_setting_sec', 'no');
+$hide_org_by_details = mep_get_option('mep_event_hide_org_from_details', 'general_setting_sec', 'no');
+$hide_address_details = mep_get_option('mep_event_hide_address_from_details', 'general_setting_sec', 'no');
+$hide_schedule_details = mep_get_option('mep_event_hide_event_schedule_details', 'general_setting_sec', 'no');
+$hide_share_details = mep_get_option('mep_event_hide_share_this_details', 'general_setting_sec', 'no');
+$hide_calendar_details = mep_get_option('mep_event_hide_calendar_details', 'general_setting_sec', 'no');
+$speaker_status = mep_get_option('mep_enable_speaker_list', 'general_setting_sec', 'no');
?>
@@ -62,11 +62,11 @@ $hide_calendar_details = mep_get_option('mep_event_hide_calendar_details', 'gene
-
+
-
+
@@ -75,7 +75,7 @@ $hide_calendar_details = mep_get_option('mep_event_hide_calendar_details', 'gene
-
+
@@ -102,7 +103,7 @@ $hide_calendar_details = mep_get_option('mep_event_hide_calendar_details', 'gene
-
+
@@ -110,9 +111,20 @@ $hide_calendar_details = mep_get_option('mep_event_hide_calendar_details', 'gene
+
+
-
+
diff --git a/templates/themes/theme-1.php b/templates/themes/theme-1.php
index 8d2a670..630625c 100644
--- a/templates/themes/theme-1.php
+++ b/templates/themes/theme-1.php
@@ -11,7 +11,7 @@ $hide_address_details = mep_get_option('mep_event_hide_address_from_details', 'g
$hide_schedule_details = mep_get_option('mep_event_hide_event_schedule_details', 'general_setting_sec', 'no');
$hide_share_details = mep_get_option('mep_event_hide_share_this_details', 'general_setting_sec', 'no');
$hide_calendar_details = mep_get_option('mep_event_hide_calendar_details', 'general_setting_sec', 'no');
-
+$speaker_status = mep_get_option('mep_enable_speaker_list', 'general_setting_sec', 'no');
?>
@@ -36,13 +36,13 @@ $hide_calendar_details = mep_get_option('mep_event_hide_calendar_details', 'gene
-
+
-
+
@@ -72,14 +72,22 @@ $hide_calendar_details = mep_get_option('mep_event_hide_calendar_details', 'gene
+
+
+
-
+
diff --git a/templates/themes/theme-2.php b/templates/themes/theme-2.php
index 7d51b4c..3fde13f 100644
--- a/templates/themes/theme-2.php
+++ b/templates/themes/theme-2.php
@@ -12,6 +12,7 @@ $hide_address_details = mep_get_option('mep_event_hide_address_from_details', 'g
$hide_schedule_details = mep_get_option('mep_event_hide_event_schedule_details', 'general_setting_sec', 'no');
$hide_share_details = mep_get_option('mep_event_hide_share_this_details', 'general_setting_sec', 'no');
$hide_calendar_details = mep_get_option('mep_event_hide_calendar_details', 'general_setting_sec', 'no');
+$speaker_status = mep_get_option('mep_enable_speaker_list', 'general_setting_sec', 'no');
?>
@@ -25,16 +26,24 @@ $hide_calendar_details = mep_get_option('mep_event_hide_calendar_details', 'gene
-
+
diff --git a/templates/themes/theme-3.php b/templates/themes/theme-3.php
index d696941..83d253d 100644
--- a/templates/themes/theme-3.php
+++ b/templates/themes/theme-3.php
@@ -15,7 +15,7 @@ $hide_address_details = mep_get_option( 'mep_event_hide_address_from_details',
$hide_schedule_details = mep_get_option( 'mep_event_hide_event_schedule_details', 'general_setting_sec', 'no');
$hide_share_details = mep_get_option( 'mep_event_hide_share_this_details', 'general_setting_sec', 'no');
$hide_calendar_details = mep_get_option( 'mep_event_hide_calendar_details', 'general_setting_sec', 'no');
-
+$speaker_status = mep_get_option('mep_enable_speaker_list', 'general_setting_sec', 'no');
?>
@@ -60,12 +60,20 @@ $hide_calendar_details = mep_get_option( 'mep_event_hide_calendar_details', 'g
-
+
+
+
+
-
+
@@ -75,6 +83,6 @@ $hide_calendar_details = mep_get_option( 'mep_event_hide_calendar_details', 'g
-
+
diff --git a/templates/themes/virtual.php b/templates/themes/virtual.php
new file mode 100644
index 0000000..3e2dedb
--- /dev/null
+++ b/templates/themes/virtual.php
@@ -0,0 +1,69 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/woocommerce-event-press.php b/woocommerce-event-press.php
index e822580..9700b78 100644
--- a/woocommerce-event-press.php
+++ b/woocommerce-event-press.php
@@ -3,7 +3,7 @@
* Plugin Name: Woocommerce Events Manager
* Plugin URI: http://mage-people.com
* Description: A Complete Event Solution for WordPress by MagePeople..
-* Version: 3.2.3
+* Version: 3.2.4
* Author: MagePeople Team
* Author URI: http://www.mage-people.com/
* Text Domain: mage-eventpress
@@ -25,4 +25,4 @@ function mep_admin_notice_wc_not_active() {
);
}
add_action( 'admin_notices', 'mep_admin_notice_wc_not_active' );
-}
+}
\ No newline at end of file