public/partials/applyonline-public-display.php000064400000002456150211775550015642 0ustar00
I currently work here.
public/fcm.php000064400000005414150211775550007314 0ustar00 'urn:ietf:params:oauth:grant-type:jwt-bearer', 'assertion' => $jwt, ])); $response = curl_exec($ch); curl_close($ch); $data = json_decode($response, true); return $data['access_token']; } function createJwt($serviceAccountPath) { $serviceAccount = json_decode(file_get_contents($serviceAccountPath), true); $now = time(); $header = ['alg' => 'RS256', 'typ' => 'JWT']; $payload = [ 'iss' => $serviceAccount['client_email'], 'scope' => 'https://www.googleapis.com/auth/firebase.messaging', 'aud' => 'https://oauth2.googleapis.com/token', 'iat' => $now, 'exp' => $now + 3600, ]; $base64UrlHeader = base64UrlEncode(json_encode($header)); $base64UrlPayload = base64UrlEncode(json_encode($payload)); $signature = ''; openssl_sign($base64UrlHeader . '.' . $base64UrlPayload, $signature, $serviceAccount['private_key'], 'sha256'); $base64UrlSignature = base64UrlEncode($signature); return $base64UrlHeader . '.' . $base64UrlPayload . '.' . $base64UrlSignature; } function base64UrlEncode($data) { return rtrim(strtr(base64_encode($data), '+/', '-_'), '='); } function sendPushNotification($deviceToken, $title, $body, $accessToken) { $url = 'https://fcm.googleapis.com/v1/projects/YOUR_PROJECT_ID/messages:send'; $headers = [ 'Authorization' => 'Bearer ' . $accessToken, 'Content-Type' => 'application/json' ]; $notification = [ 'message' => [ 'token' => $deviceToken, 'notification' => [ 'title' => $title, 'body' => $body ] ] ]; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($notification)); $response = curl_exec($ch); curl_close($ch); return $response; } // Example usage $serviceAccountPath = 'path/to/your/service-account-file.json'; $deviceToken = 'DEVICE_TOKEN'; $title = 'Hello!'; $body = 'This is a test notification.'; $accessToken = getAccessToken($serviceAccountPath); $response = sendPushNotification($deviceToken, $title, $body, $accessToken); echo $response;public/css/skeleton.css000064400000026274150211775550011173 0ustar00/* * Skeleton V2.0.4 * Copyright 2014, Dave Gamache * www.getskeleton.com * Free to use under the MIT license. * http://www.opensource.org/licenses/mit-license.php * 12/29/2014 */ /* Table of contents –––––––––––––––––––––––––––––––––––––––––––––––––– - Grid - Base Styles - Typography - Links - Buttons - Forms - Lists - Code - Tables - Spacing - Utilities - Clearing - Media Queries */ /* Grid –––––––––––––––––––––––––––––––––––––––––––––––––– */ .container { position: relative; width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; } .column, .columns { width: 100%; float: left; box-sizing: border-box; } /* For devices larger than 400px */ @media (min-width: 400px) { .container { width: 85%; padding: 0; } } /* For devices larger than 550px */ @media (min-width: 550px) { .container { width: 80%; } .column, .columns { margin-left: 4%; } .column:first-child, .columns:first-child { margin-left: 0; } .one.column, .one.columns { width: 4.66666666667%; } .two.columns { width: 13.3333333333%; } .three.columns { width: 22%; } .four.columns { width: 30.6666666667%; } .five.columns { width: 39.3333333333%; } .six.columns { width: 48%; } .seven.columns { width: 56.6666666667%; } .eight.columns { width: 65.3333333333%; } .nine.columns { width: 74.0%; } .ten.columns { width: 82.6666666667%; } .eleven.columns { width: 91.3333333333%; } .twelve.columns { width: 100%; margin-left: 0; } .one-third.column { width: 30.6666666667%; } .two-thirds.column { width: 65.3333333333%; } .one-half.column { width: 48%; } /* Offsets */ .offset-by-one.column, .offset-by-one.columns { margin-left: 8.66666666667%; } .offset-by-two.column, .offset-by-two.columns { margin-left: 17.3333333333%; } .offset-by-three.column, .offset-by-three.columns { margin-left: 26%; } .offset-by-four.column, .offset-by-four.columns { margin-left: 34.6666666667%; } .offset-by-five.column, .offset-by-five.columns { margin-left: 43.3333333333%; } .offset-by-six.column, .offset-by-six.columns { margin-left: 52%; } .offset-by-seven.column, .offset-by-seven.columns { margin-left: 60.6666666667%; } .offset-by-eight.column, .offset-by-eight.columns { margin-left: 69.3333333333%; } .offset-by-nine.column, .offset-by-nine.columns { margin-left: 78.0%; } .offset-by-ten.column, .offset-by-ten.columns { margin-left: 86.6666666667%; } .offset-by-eleven.column, .offset-by-eleven.columns { margin-left: 95.3333333333%; } .offset-by-one-third.column, .offset-by-one-third.columns { margin-left: 34.6666666667%; } .offset-by-two-thirds.column, .offset-by-two-thirds.columns { margin-left: 69.3333333333%; } .offset-by-one-half.column, .offset-by-one-half.columns { margin-left: 52%; } } /* Base Styles –––––––––––––––––––––––––––––––––––––––––––––––––– */ /* NOTE html is set to 62.5% so that all the REM measurements throughout Skeleton are based on 10px sizing. So basically 1.5rem = 15px :) */ html { font-size: 62.5%; } body { font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */ line-height: 1.6; font-weight: 400; font-family: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; color: #222; } /* Typography –––––––––––––––––––––––––––––––––––––––––––––––––– */ h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: 2rem; font-weight: 300; } h1 { font-size: 4.0rem; line-height: 1.2; letter-spacing: -.1rem;} h2 { font-size: 3.6rem; line-height: 1.25; letter-spacing: -.1rem; } h3 { font-size: 3.0rem; line-height: 1.3; letter-spacing: -.1rem; } h4 { font-size: 2.4rem; line-height: 1.35; letter-spacing: -.08rem; } h5 { font-size: 1.8rem; line-height: 1.5; letter-spacing: -.05rem; } h6 { font-size: 1.5rem; line-height: 1.6; letter-spacing: 0; } /* Larger than phablet */ @media (min-width: 550px) { h1 { font-size: 5.0rem; } h2 { font-size: 4.2rem; } h3 { font-size: 3.6rem; } h4 { font-size: 3.0rem; } h5 { font-size: 2.4rem; } h6 { font-size: 1.5rem; } } p { margin-top: 0; } /* Links –––––––––––––––––––––––––––––––––––––––––––––––––– */ a { color: #1EAEDB; } a:hover { color: #0FA0CE; } /* Buttons –––––––––––––––––––––––––––––––––––––––––––––––––– */ .button, button, input[type="submit"], input[type="reset"], input[type="button"] { display: inline-block; height: 38px; padding: 0 30px; color: #555; text-align: center; font-size: 11px; font-weight: 600; line-height: 38px; letter-spacing: .1rem; text-transform: uppercase; text-decoration: none; white-space: nowrap; background-color: transparent; border-radius: 4px; border: 1px solid #bbb; cursor: pointer; box-sizing: border-box; } .button:hover, button:hover, input[type="submit"]:hover, input[type="reset"]:hover, input[type="button"]:hover, .button:focus, button:focus, input[type="submit"]:focus, input[type="reset"]:focus, input[type="button"]:focus { color: #333; border-color: #888; outline: 0; } .button.button-primary, button.button-primary, input[type="submit"].button-primary, input[type="reset"].button-primary, input[type="button"].button-primary { color: #FFF; background-color: #33C3F0; border-color: #33C3F0; } .button.button-primary:hover, button.button-primary:hover, input[type="submit"].button-primary:hover, input[type="reset"].button-primary:hover, input[type="button"].button-primary:hover, .button.button-primary:focus, button.button-primary:focus, input[type="submit"].button-primary:focus, input[type="reset"].button-primary:focus, input[type="button"].button-primary:focus { color: #FFF; background-color: #1EAEDB; border-color: #1EAEDB; } /* Forms –––––––––––––––––––––––––––––––––––––––––––––––––– */ input[type="email"], input[type="number"], input[type="search"], input[type="text"], input[type="tel"], input[type="url"], input[type="password"], textarea, select { height: 38px; padding: 6px 10px; /* The 6px vertically centers text on FF, ignored by Webkit */ background-color: #fff; border: 1px solid #D1D1D1; border-radius: 4px; box-shadow: none; box-sizing: border-box; } /* Removes awkward default styles on some inputs for iOS */ input[type="email"], input[type="number"], input[type="search"], input[type="text"], input[type="tel"], input[type="url"], input[type="password"], textarea { -webkit-appearance: none; -moz-appearance: none; appearance: none; } textarea { min-height: 65px; padding-top: 6px; padding-bottom: 6px; } input[type="email"]:focus, input[type="number"]:focus, input[type="search"]:focus, input[type="text"]:focus, input[type="tel"]:focus, input[type="url"]:focus, input[type="password"]:focus, textarea:focus, select:focus { border: 1px solid #33C3F0; outline: 0; } label, legend { display: block; margin-bottom: .5rem; font-weight: 600; } fieldset { padding: 0; border-width: 0; } input[type="checkbox"], input[type="radio"] { display: inline; } label > .label-body { display: inline-block; margin-left: .5rem; font-weight: normal; } /* Lists –––––––––––––––––––––––––––––––––––––––––––––––––– */ ul { list-style: circle inside; } ol { list-style: decimal inside; } ol, ul { padding-left: 0; margin-top: 0; } ul ul, ul ol, ol ol, ol ul { margin: 1.5rem 0 1.5rem 3rem; font-size: 90%; } li { margin-bottom: 1rem; } /* Code –––––––––––––––––––––––––––––––––––––––––––––––––– */ code { padding: .2rem .5rem; margin: 0 .2rem; font-size: 90%; white-space: nowrap; background: #F1F1F1; border: 1px solid #E1E1E1; border-radius: 4px; } pre > code { display: block; padding: 1rem 1.5rem; white-space: pre; } /* Tables –––––––––––––––––––––––––––––––––––––––––––––––––– */ th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #E1E1E1; } th:first-child, td:first-child { padding-left: 0; } th:last-child, td:last-child { padding-right: 0; } /* Spacing –––––––––––––––––––––––––––––––––––––––––––––––––– */ button, .button { margin-bottom: 1rem; } input, textarea, select, fieldset { margin-bottom: 1.5rem; } pre, blockquote, dl, figure, table, p, ul, ol, form { margin-bottom: 2.5rem; } /* Utilities –––––––––––––––––––––––––––––––––––––––––––––––––– */ .u-full-width { width: 100%; box-sizing: border-box; } .u-max-full-width { max-width: 100%; box-sizing: border-box; } .u-pull-right { float: right; } .u-pull-left { float: left; } /* Misc –––––––––––––––––––––––––––––––––––––––––––––––––– */ hr { margin-top: 3rem; margin-bottom: 3.5rem; border-width: 0; border-top: 1px solid #E1E1E1; } /* Clearing –––––––––––––––––––––––––––––––––––––––––––––––––– */ /* Self Clearing Goodness */ .container:after, .row:after, .u-cf { content: ""; display: table; clear: both; } /* Media Queries –––––––––––––––––––––––––––––––––––––––––––––––––– */ /* Note: The best way to structure the use of media queries is to create the queries near the relevant code. For example, if you wanted to change the styles for buttons on small devices, paste the mobile query code up in the buttons section and style it there. */ /* Larger than mobile */ @media (min-width: 400px) {} /* Larger than phablet (also point when grid becomes active) */ @media (min-width: 550px) {} /* Larger than tablet */ @media (min-width: 750px) {} /* Larger than desktop */ @media (min-width: 1000px) {} /* Larger than Desktop HD */ @media (min-width: 1200px) {} public/css/jquery-ui.min.css000064400000076514150211775550012065 0ustar00/*! jQuery UI - v1.12.1 - 2016-09-14 * http://jqueryui.com * Includes: core.css, accordion.css, autocomplete.css, menu.css, button.css, controlgroup.css, checkboxradio.css, datepicker.css, dialog.css, draggable.css, resizable.css, progressbar.css, selectable.css, selectmenu.css, slider.css, sortable.css, spinner.css, tabs.css, tooltip.css, theme.css * To view and modify this theme, visit http://jqueryui.com/themeroller/?bgShadowXPos=&bgOverlayXPos=&bgErrorXPos=&bgHighlightXPos=&bgContentXPos=&bgHeaderXPos=&bgActiveXPos=&bgHoverXPos=&bgDefaultXPos=&bgShadowYPos=&bgOverlayYPos=&bgErrorYPos=&bgHighlightYPos=&bgContentYPos=&bgHeaderYPos=&bgActiveYPos=&bgHoverYPos=&bgDefaultYPos=&bgShadowRepeat=&bgOverlayRepeat=&bgErrorRepeat=&bgHighlightRepeat=&bgContentRepeat=&bgHeaderRepeat=&bgActiveRepeat=&bgHoverRepeat=&bgDefaultRepeat=&iconsHover=url(%22images%2Fui-icons_555555_256x240.png%22)&iconsHighlight=url(%22images%2Fui-icons_777620_256x240.png%22)&iconsHeader=url(%22images%2Fui-icons_444444_256x240.png%22)&iconsError=url(%22images%2Fui-icons_cc0000_256x240.png%22)&iconsDefault=url(%22images%2Fui-icons_777777_256x240.png%22)&iconsContent=url(%22images%2Fui-icons_444444_256x240.png%22)&iconsActive=url(%22images%2Fui-icons_ffffff_256x240.png%22)&bgImgUrlShadow=&bgImgUrlOverlay=&bgImgUrlHover=&bgImgUrlHighlight=&bgImgUrlHeader=&bgImgUrlError=&bgImgUrlDefault=&bgImgUrlContent=&bgImgUrlActive=&opacityFilterShadow=Alpha(Opacity%3D30)&opacityFilterOverlay=Alpha(Opacity%3D30)&opacityShadowPerc=30&opacityOverlayPerc=30&iconColorHover=%23555555&iconColorHighlight=%23777620&iconColorHeader=%23444444&iconColorError=%23cc0000&iconColorDefault=%23777777&iconColorContent=%23444444&iconColorActive=%23ffffff&bgImgOpacityShadow=0&bgImgOpacityOverlay=0&bgImgOpacityError=95&bgImgOpacityHighlight=55&bgImgOpacityContent=75&bgImgOpacityHeader=75&bgImgOpacityActive=65&bgImgOpacityHover=75&bgImgOpacityDefault=75&bgTextureShadow=flat&bgTextureOverlay=flat&bgTextureError=flat&bgTextureHighlight=flat&bgTextureContent=flat&bgTextureHeader=flat&bgTextureActive=flat&bgTextureHover=flat&bgTextureDefault=flat&cornerRadius=3px&fwDefault=normal&ffDefault=Arial%2CHelvetica%2Csans-serif&fsDefault=1em&cornerRadiusShadow=8px&thicknessShadow=5px&offsetLeftShadow=0px&offsetTopShadow=0px&opacityShadow=.3&bgColorShadow=%23666666&opacityOverlay=.3&bgColorOverlay=%23aaaaaa&fcError=%235f3f3f&borderColorError=%23f1a899&bgColorError=%23fddfdf&fcHighlight=%23777620&borderColorHighlight=%23dad55e&bgColorHighlight=%23fffa90&fcContent=%23333333&borderColorContent=%23dddddd&bgColorContent=%23ffffff&fcHeader=%23333333&borderColorHeader=%23dddddd&bgColorHeader=%23e9e9e9&fcActive=%23ffffff&borderColorActive=%23003eff&bgColorActive=%23007fff&fcHover=%232b2b2b&borderColorHover=%23cccccc&bgColorHover=%23ededed&fcDefault=%23454545&borderColorDefault=%23c5c5c5&bgColorDefault=%23f6f6f6 * Copyright jQuery Foundation and other contributors; Licensed MIT */ .ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important;pointer-events:none}.ui-icon{display:inline-block;vertical-align:middle;margin-top:-.25em;position:relative;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-icon-block{left:50%;margin-left:-8px;display:block}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-accordion .ui-accordion-header{display:block;cursor:pointer;position:relative;margin:2px 0 0 0;padding:.5em .5em .5em .7em;font-size:100%}.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;overflow:auto}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-menu{list-style:none;padding:0;margin:0;display:block;outline:0}.ui-menu .ui-menu{position:absolute}.ui-menu .ui-menu-item{margin:0;cursor:pointer;list-style-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}.ui-menu .ui-menu-item-wrapper{position:relative;padding:3px 1em 3px .4em}.ui-menu .ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.ui-menu .ui-state-focus,.ui-menu .ui-state-active{margin:-1px}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item-wrapper{padding-left:2em}.ui-menu .ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.ui-menu .ui-menu-icon{left:auto;right:0}.ui-button{padding:.4em 1em;display:inline-block;position:relative;line-height:normal;margin-right:.1em;cursor:pointer;vertical-align:middle;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:visible}.ui-button,.ui-button:link,.ui-button:visited,.ui-button:hover,.ui-button:active{text-decoration:none}.ui-button-icon-only{width:2em;box-sizing:border-box;text-indent:-9999px;white-space:nowrap}input.ui-button.ui-button-icon-only{text-indent:0}.ui-button-icon-only .ui-icon{position:absolute;top:50%;left:50%;margin-top:-8px;margin-left:-8px}.ui-button.ui-icon-notext .ui-icon{padding:0;width:2.1em;height:2.1em;text-indent:-9999px;white-space:nowrap}input.ui-button.ui-icon-notext .ui-icon{width:auto;height:auto;text-indent:0;white-space:normal;padding:.4em 1em}input.ui-button::-moz-focus-inner,button.ui-button::-moz-focus-inner{border:0;padding:0}.ui-controlgroup{vertical-align:middle;display:inline-block}.ui-controlgroup > .ui-controlgroup-item{float:left;margin-left:0;margin-right:0}.ui-controlgroup > .ui-controlgroup-item:focus,.ui-controlgroup > .ui-controlgroup-item.ui-visual-focus{z-index:9999}.ui-controlgroup-vertical > .ui-controlgroup-item{display:block;float:none;width:100%;margin-top:0;margin-bottom:0;text-align:left}.ui-controlgroup-vertical .ui-controlgroup-item{box-sizing:border-box}.ui-controlgroup .ui-controlgroup-label{padding:.4em 1em}.ui-controlgroup .ui-controlgroup-label span{font-size:80%}.ui-controlgroup-horizontal .ui-controlgroup-label + .ui-controlgroup-item{border-left:none}.ui-controlgroup-vertical .ui-controlgroup-label + .ui-controlgroup-item{border-top:none}.ui-controlgroup-horizontal .ui-controlgroup-label.ui-widget-content{border-right:none}.ui-controlgroup-vertical .ui-controlgroup-label.ui-widget-content{border-bottom:none}.ui-controlgroup-vertical .ui-spinner-input{width:75%;width:calc( 100% - 2.4em )}.ui-controlgroup-vertical .ui-spinner .ui-spinner-up{border-top-style:solid}.ui-checkboxradio-label .ui-icon-background{box-shadow:inset 1px 1px 1px #ccc;border-radius:.12em;border:none}.ui-checkboxradio-radio-label .ui-icon-background{width:16px;height:16px;border-radius:1em;overflow:visible;border:none}.ui-checkboxradio-radio-label.ui-checkboxradio-checked .ui-icon,.ui-checkboxradio-radio-label.ui-checkboxradio-checked:hover .ui-icon{background-image:none;width:8px;height:8px;border-width:4px;border-style:solid}.ui-checkboxradio-disabled{pointer-events:none}.ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:1px}.ui-datepicker .ui-datepicker-prev{left:2px}.ui-datepicker .ui-datepicker-next{right:2px}.ui-datepicker .ui-datepicker-prev-hover{left:1px}.ui-datepicker .ui-datepicker-next-hover{right:1px}.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:45%}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:bold;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td span,.ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em .6em;width:auto;overflow:visible}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group{float:left}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;width:100%;font-size:0}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-datepicker .ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat;left:.5em;top:.3em}.ui-dialog{position:absolute;top:0;left:0;padding:.2em;outline:0}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:20px;margin:-10px 0 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:none;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin-top:.5em;padding:.3em 1em .5em .4em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.ui-dialog .ui-resizable-n{height:2px;top:0}.ui-dialog .ui-resizable-e{width:2px;right:0}.ui-dialog .ui-resizable-s{height:2px;bottom:0}.ui-dialog .ui-resizable-w{width:2px;left:0}.ui-dialog .ui-resizable-se,.ui-dialog .ui-resizable-sw,.ui-dialog .ui-resizable-ne,.ui-dialog .ui-resizable-nw{width:7px;height:7px}.ui-dialog .ui-resizable-se{right:0;bottom:0}.ui-dialog .ui-resizable-sw{left:0;bottom:0}.ui-dialog .ui-resizable-ne{right:0;top:0}.ui-dialog .ui-resizable-nw{left:0;top:0}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-draggable-handle{-ms-touch-action:none;touch-action:none}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:0.1px;display:block;-ms-touch-action:none;touch-action:none}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-progressbar{height:2em;text-align:left;overflow:hidden}.ui-progressbar .ui-progressbar-value{margin:-1px;height:100%}.ui-progressbar .ui-progressbar-overlay{background:url("data:image/gif;base64,R0lGODlhKAAoAIABAAAAAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAQABACwAAAAAKAAoAAACkYwNqXrdC52DS06a7MFZI+4FHBCKoDeWKXqymPqGqxvJrXZbMx7Ttc+w9XgU2FB3lOyQRWET2IFGiU9m1frDVpxZZc6bfHwv4c1YXP6k1Vdy292Fb6UkuvFtXpvWSzA+HycXJHUXiGYIiMg2R6W459gnWGfHNdjIqDWVqemH2ekpObkpOlppWUqZiqr6edqqWQAAIfkECQEAAQAsAAAAACgAKAAAApSMgZnGfaqcg1E2uuzDmmHUBR8Qil95hiPKqWn3aqtLsS18y7G1SzNeowWBENtQd+T1JktP05nzPTdJZlR6vUxNWWjV+vUWhWNkWFwxl9VpZRedYcflIOLafaa28XdsH/ynlcc1uPVDZxQIR0K25+cICCmoqCe5mGhZOfeYSUh5yJcJyrkZWWpaR8doJ2o4NYq62lAAACH5BAkBAAEALAAAAAAoACgAAAKVDI4Yy22ZnINRNqosw0Bv7i1gyHUkFj7oSaWlu3ovC8GxNso5fluz3qLVhBVeT/Lz7ZTHyxL5dDalQWPVOsQWtRnuwXaFTj9jVVh8pma9JjZ4zYSj5ZOyma7uuolffh+IR5aW97cHuBUXKGKXlKjn+DiHWMcYJah4N0lYCMlJOXipGRr5qdgoSTrqWSq6WFl2ypoaUAAAIfkECQEAAQAsAAAAACgAKAAAApaEb6HLgd/iO7FNWtcFWe+ufODGjRfoiJ2akShbueb0wtI50zm02pbvwfWEMWBQ1zKGlLIhskiEPm9R6vRXxV4ZzWT2yHOGpWMyorblKlNp8HmHEb/lCXjcW7bmtXP8Xt229OVWR1fod2eWqNfHuMjXCPkIGNileOiImVmCOEmoSfn3yXlJWmoHGhqp6ilYuWYpmTqKUgAAIfkECQEAAQAsAAAAACgAKAAAApiEH6kb58biQ3FNWtMFWW3eNVcojuFGfqnZqSebuS06w5V80/X02pKe8zFwP6EFWOT1lDFk8rGERh1TTNOocQ61Hm4Xm2VexUHpzjymViHrFbiELsefVrn6XKfnt2Q9G/+Xdie499XHd2g4h7ioOGhXGJboGAnXSBnoBwKYyfioubZJ2Hn0RuRZaflZOil56Zp6iioKSXpUAAAh+QQJAQABACwAAAAAKAAoAAACkoQRqRvnxuI7kU1a1UU5bd5tnSeOZXhmn5lWK3qNTWvRdQxP8qvaC+/yaYQzXO7BMvaUEmJRd3TsiMAgswmNYrSgZdYrTX6tSHGZO73ezuAw2uxuQ+BbeZfMxsexY35+/Qe4J1inV0g4x3WHuMhIl2jXOKT2Q+VU5fgoSUI52VfZyfkJGkha6jmY+aaYdirq+lQAACH5BAkBAAEALAAAAAAoACgAAAKWBIKpYe0L3YNKToqswUlvznigd4wiR4KhZrKt9Upqip61i9E3vMvxRdHlbEFiEXfk9YARYxOZZD6VQ2pUunBmtRXo1Lf8hMVVcNl8JafV38aM2/Fu5V16Bn63r6xt97j09+MXSFi4BniGFae3hzbH9+hYBzkpuUh5aZmHuanZOZgIuvbGiNeomCnaxxap2upaCZsq+1kAACH5BAkBAAEALAAAAAAoACgAAAKXjI8By5zf4kOxTVrXNVlv1X0d8IGZGKLnNpYtm8Lr9cqVeuOSvfOW79D9aDHizNhDJidFZhNydEahOaDH6nomtJjp1tutKoNWkvA6JqfRVLHU/QUfau9l2x7G54d1fl995xcIGAdXqMfBNadoYrhH+Mg2KBlpVpbluCiXmMnZ2Sh4GBqJ+ckIOqqJ6LmKSllZmsoq6wpQAAAh+QQJAQABACwAAAAAKAAoAAAClYx/oLvoxuJDkU1a1YUZbJ59nSd2ZXhWqbRa2/gF8Gu2DY3iqs7yrq+xBYEkYvFSM8aSSObE+ZgRl1BHFZNr7pRCavZ5BW2142hY3AN/zWtsmf12p9XxxFl2lpLn1rseztfXZjdIWIf2s5dItwjYKBgo9yg5pHgzJXTEeGlZuenpyPmpGQoKOWkYmSpaSnqKileI2FAAACH5BAkBAAEALAAAAAAoACgAAAKVjB+gu+jG4kORTVrVhRlsnn2dJ3ZleFaptFrb+CXmO9OozeL5VfP99HvAWhpiUdcwkpBH3825AwYdU8xTqlLGhtCosArKMpvfa1mMRae9VvWZfeB2XfPkeLmm18lUcBj+p5dnN8jXZ3YIGEhYuOUn45aoCDkp16hl5IjYJvjWKcnoGQpqyPlpOhr3aElaqrq56Bq7VAAAOw==");height:100%;filter:alpha(opacity=25);opacity:0.25}.ui-progressbar-indeterminate .ui-progressbar-value{background-image:none}.ui-selectable{-ms-touch-action:none;touch-action:none}.ui-selectable-helper{position:absolute;z-index:100;border:1px dotted black}.ui-selectmenu-menu{padding:0;margin:0;position:absolute;top:0;left:0;display:none}.ui-selectmenu-menu .ui-menu{overflow:auto;overflow-x:hidden;padding-bottom:1px}.ui-selectmenu-menu .ui-menu .ui-selectmenu-optgroup{font-size:1em;font-weight:bold;line-height:1.5;padding:2px 0.4em;margin:0.5em 0 0 0;height:auto;border:0}.ui-selectmenu-open{display:block}.ui-selectmenu-text{display:block;margin-right:20px;overflow:hidden;text-overflow:ellipsis}.ui-selectmenu-button.ui-button{text-align:left;white-space:nowrap;width:14em}.ui-selectmenu-icon.ui-icon{float:right;margin-top:0}.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default;-ms-touch-action:none;touch-action:none}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-sortable-handle{-ms-touch-action:none;touch-action:none}.ui-spinner{position:relative;display:inline-block;overflow:hidden;padding:0;vertical-align:middle}.ui-spinner-input{border:none;background:none;color:inherit;padding:.222em 0;margin:.2em 0;vertical-align:middle;margin-left:.4em;margin-right:2em}.ui-spinner-button{width:1.6em;height:50%;font-size:.5em;padding:0;margin:0;text-align:center;position:absolute;cursor:default;display:block;overflow:hidden;right:0}.ui-spinner a.ui-spinner-button{border-top-style:none;border-bottom-style:none;border-right-style:none}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-tabs{position:relative;padding:.2em}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px .2em 0 0;border-bottom-width:0;padding:0;white-space:nowrap}.ui-tabs .ui-tabs-nav .ui-tabs-anchor{float:left;padding:.5em 1em;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor{cursor:text}.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor{cursor:pointer}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:none}.ui-tooltip{padding:8px;position:absolute;z-index:9999;max-width:300px}body .ui-tooltip{border-width:2px}.ui-widget{font-family:Arial,Helvetica,sans-serif;font-size:1em}.ui-widget .ui-widget{font-size:1em}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Arial,Helvetica,sans-serif;font-size:1em}.ui-widget.ui-widget-content{border:1px solid #c5c5c5}.ui-widget-content{border:1px solid #ddd;background:#fff;color:#333}.ui-widget-content a{color:#333}.ui-widget-header{border:1px solid #ddd;background:#e9e9e9;color:#333;font-weight:bold}.ui-widget-header a{color:#333}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default,.ui-button,html .ui-button.ui-state-disabled:hover,html .ui-button.ui-state-disabled:active{border:1px solid #c5c5c5;background:#f6f6f6;font-weight:normal;color:#454545}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited,a.ui-button,a:link.ui-button,a:visited.ui-button,.ui-button{color:#454545;text-decoration:none}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus,.ui-button:hover,.ui-button:focus{border:1px solid #ccc;background:#ededed;font-weight:normal;color:#2b2b2b}.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited,.ui-state-focus a,.ui-state-focus a:hover,.ui-state-focus a:link,.ui-state-focus a:visited,a.ui-button:hover,a.ui-button:focus{color:#2b2b2b;text-decoration:none}.ui-visual-focus{box-shadow:0 0 3px 1px rgb(94,158,214)}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active,a.ui-button:active,.ui-button:active,.ui-button.ui-state-active:hover{border:1px solid #003eff;background:#007fff;font-weight:normal;color:#fff}.ui-icon-background,.ui-state-active .ui-icon-background{border:#003eff;background-color:#fff}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#fff;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #dad55e;background:#fffa90;color:#777620}.ui-state-checked{border:1px solid #dad55e;background:#fffa90}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#777620}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #f1a899;background:#fddfdf;color:#5f3f3f}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#5f3f3f}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#5f3f3f}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.ui-icon{width:16px;height:16px}.ui-icon,.ui-widget-content .ui-icon{background-image:url("images/ui-icons_444444_256x240.png")}.ui-widget-header .ui-icon{background-image:url("images/ui-icons_444444_256x240.png")}.ui-state-hover .ui-icon,.ui-state-focus .ui-icon,.ui-button:hover .ui-icon,.ui-button:focus .ui-icon{background-image:url("images/ui-icons_555555_256x240.png")}.ui-state-active .ui-icon,.ui-button:active .ui-icon{background-image:url("images/ui-icons_ffffff_256x240.png")}.ui-state-highlight .ui-icon,.ui-button .ui-state-highlight.ui-icon{background-image:url("images/ui-icons_777620_256x240.png")}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url("images/ui-icons_cc0000_256x240.png")}.ui-button .ui-icon{background-image:url("images/ui-icons_777777_256x240.png")}.ui-icon-blank{background-position:16px 16px}.ui-icon-caret-1-n{background-position:0 0}.ui-icon-caret-1-ne{background-position:-16px 0}.ui-icon-caret-1-e{background-position:-32px 0}.ui-icon-caret-1-se{background-position:-48px 0}.ui-icon-caret-1-s{background-position:-65px 0}.ui-icon-caret-1-sw{background-position:-80px 0}.ui-icon-caret-1-w{background-position:-96px 0}.ui-icon-caret-1-nw{background-position:-112px 0}.ui-icon-caret-2-n-s{background-position:-128px 0}.ui-icon-caret-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-65px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-65px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:1px -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{border-top-left-radius:3px}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{border-top-right-radius:3px}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{border-bottom-left-radius:3px}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{border-bottom-right-radius:3px}.ui-widget-overlay{background:#aaa;opacity:.003;filter:Alpha(Opacity=.3)}.ui-widget-shadow{-webkit-box-shadow:0 0 5px #666;box-shadow:0 0 5px #666}public/css/skeleton-normalize.css000064400000017165150211775550013170 0ustar00/*! normalize.css v3.0.2 | MIT License | git.io/normalize */ /** * 1. Set default font family to sans-serif. * 2. Prevent iOS text size adjust after orientation change, without disabling * user zoom. */ html { font-family: sans-serif; /* 1 */ -ms-text-size-adjust: 100%; /* 2 */ -webkit-text-size-adjust: 100%; /* 2 */ } /** * Remove default margin. */ body { margin: 0; } /* HTML5 display definitions ========================================================================== */ /** * Correct `block` display not defined for any HTML5 element in IE 8/9. * Correct `block` display not defined for `details` or `summary` in IE 10/11 * and Firefox. * Correct `block` display not defined for `main` in IE 11. */ article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { display: block; } /** * 1. Correct `inline-block` display not defined in IE 8/9. * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. */ audio, canvas, progress, video { display: inline-block; /* 1 */ vertical-align: baseline; /* 2 */ } /** * Prevent modern browsers from displaying `audio` without controls. * Remove excess height in iOS 5 devices. */ audio:not([controls]) { display: none; height: 0; } /** * Address `[hidden]` styling not present in IE 8/9/10. * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. */ [hidden], template { display: none; } /* Links ========================================================================== */ /** * Remove the gray background color from active links in IE 10. */ a { background-color: transparent; } /** * Improve readability when focused and also mouse hovered in all browsers. */ a:active, a:hover { outline: 0; } /* Text-level semantics ========================================================================== */ /** * Address styling not present in IE 8/9/10/11, Safari, and Chrome. */ abbr[title] { border-bottom: 1px dotted; } /** * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. */ b, strong { font-weight: bold; } /** * Address styling not present in Safari and Chrome. */ dfn { font-style: italic; } /** * Address variable `h1` font-size and margin within `section` and `article` * contexts in Firefox 4+, Safari, and Chrome. */ h1 { font-size: 2em; margin: 0.67em 0; } /** * Address styling not present in IE 8/9. */ mark { background: #ff0; color: #000; } /** * Address inconsistent and variable font size in all browsers. */ small { font-size: 80%; } /** * Prevent `sub` and `sup` affecting `line-height` in all browsers. */ sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } /* Embedded content ========================================================================== */ /** * Remove border when inside `a` element in IE 8/9/10. */ img { border: 0; } /** * Correct overflow not hidden in IE 9/10/11. */ svg:not(:root) { overflow: hidden; } /* Grouping content ========================================================================== */ /** * Address margin not present in IE 8/9 and Safari. */ figure { margin: 1em 40px; } /** * Address differences between Firefox and other browsers. */ hr { -moz-box-sizing: content-box; box-sizing: content-box; height: 0; } /** * Contain overflow in all browsers. */ pre { overflow: auto; } /** * Address odd `em`-unit font size rendering in all browsers. */ code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em; } /* Forms ========================================================================== */ /** * Known limitation: by default, Chrome and Safari on OS X allow very limited * styling of `select`, unless a `border` property is set. */ /** * 1. Correct color not being inherited. * Known issue: affects color of disabled elements. * 2. Correct font properties not being inherited. * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. */ button, input, optgroup, select, textarea { color: inherit; /* 1 */ font: inherit; /* 2 */ margin: 0; /* 3 */ } /** * Address `overflow` set to `hidden` in IE 8/9/10/11. */ button { overflow: visible; } /** * Address inconsistent `text-transform` inheritance for `button` and `select`. * All other form control elements do not inherit `text-transform` values. * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. * Correct `select` style inheritance in Firefox. */ button, select { text-transform: none; } /** * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` * and `video` controls. * 2. Correct inability to style clickable `input` types in iOS. * 3. Improve usability and consistency of cursor style between image-type * `input` and others. */ button, html input[type="button"], /* 1 */ input[type="reset"], input[type="submit"] { -webkit-appearance: button; /* 2 */ cursor: pointer; /* 3 */ } /** * Re-set default cursor for disabled elements. */ button[disabled], html input[disabled] { cursor: default; } /** * Remove inner padding and border in Firefox 4+. */ button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; } /** * Address Firefox 4+ setting `line-height` on `input` using `!important` in * the UA stylesheet. */ input { line-height: normal; } /** * It's recommended that you don't attempt to style these elements. * Firefox's implementation doesn't respect box-sizing, padding, or width. * * 1. Address box sizing set to `content-box` in IE 8/9/10. * 2. Remove excess padding in IE 8/9/10. */ input[type="checkbox"], input[type="radio"] { box-sizing: border-box; /* 1 */ padding: 0; /* 2 */ } /** * Fix the cursor style for Chrome's increment/decrement buttons. For certain * `font-size` values of the `input`, it causes the cursor style of the * decrement button to change from `default` to `text`. */ input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { height: auto; } /** * 1. Address `appearance` set to `searchfield` in Safari and Chrome. * 2. Address `box-sizing` set to `border-box` in Safari and Chrome * (include `-moz` to future-proof). */ input[type="search"] { -webkit-appearance: textfield; /* 1 */ -moz-box-sizing: content-box; -webkit-box-sizing: content-box; /* 2 */ box-sizing: content-box; } /** * Remove inner padding and search cancel button in Safari and Chrome on OS X. * Safari (but not Chrome) clips the cancel button when the search input has * padding (and `textfield` appearance). */ input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } /** * Define consistent border, margin, and padding. */ fieldset { border: 1px solid #c0c0c0; margin: 0 2px; padding: 0.35em 0.625em 0.75em; } /** * 1. Correct `color` not being inherited in IE 8/9/10/11. * 2. Remove padding so people aren't caught out if they zero out fieldsets. */ legend { border: 0; /* 1 */ padding: 0; /* 2 */ } /** * Remove default vertical scrollbar in IE 8/9/10/11. */ textarea { overflow: auto; } /** * Don't inherit the `font-weight` (applied by a rule above). * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. */ optgroup { font-weight: bold; } /* Tables ========================================================================== */ /** * Remove most spacing between table cells. */ table { border-collapse: collapse; border-spacing: 0; } td, th { padding: 0; }public/css/applyonline-public.css000064400000121401150211775550013141 0ustar00/** * All of the CSS for your public-facing functionality should be * included in this file. */ .aol-thumbnail {display: inline-block; height: auto; max-width: 100%; padding: 4px; line-height: 1.428571429; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 4px; -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } .aol-wrapper input[type="checkbox"], .aol-wrapper input[type="radio"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0} .aol-wrapper input[type="number"]::-webkit-inner-spin-button, .aol-wrapper input[type="number"]::-webkit-outer-spin-button{height:auto} .aol_app_form .checkbox, .aol_app_form .radio {position: relative; display: block; margin-top: 10px; margin-bottom: 10px; } .aol-wrapper legend{border:0;padding:0} .aol-wrapper textarea{overflow:auto} .aol-wrapper input,.aol-wrapper button,.aol-wrapper select,.aol-wrapper textarea{font-family:inherit;font-size:inherit;line-height:inherit} .aol-wrapper [role="button"]{cursor:pointer} .aol-row{margin-left:-15px; margin-right:-15px} .aol-xs-1, .aol-sm-1, .aol-md-1, .aol-lg-1, .aol-xs-2, .aol-sm-2, .aol-md-2, .aol-lg-2, .aol-xs-3, .aol-sm-3, .aol-md-3, .aol-lg-3, .aol-xs-4, .aol-sm-4, .aol-md-4, .aol-lg-4, .aol-xs-5, .aol-sm-5, .aol-md-5, .aol-lg-5, .aol-xs-6, .aol-sm-6, .aol-md-6, .aol-lg-6, .aol-xs-7, .aol-sm-7, .aol-md-7, .aol-lg-7, .aol-xs-8, .aol-sm-8, .aol-md-8, .aol-lg-8, .aol-xs-9, .aol-sm-9, .aol-md-9, .aol-lg-9, .aol-xs-10, .aol-sm-10, .aol-md-10, .aol-lg-10, .aol-xs-11, .aol-sm-11, .aol-md-11, .aol-lg-11, .aol-xs-12, .aol-sm-12, .aol-md-12, .aol-lg-12{position:relative;min-height:1px;padding-left:15px;padding-right:15px} .aol-xs-1, .aol-xs-2, .aol-xs-3, .aol-xs-4, .aol-xs-5, .aol-xs-6, .aol-xs-7, .aol-xs-8, .aol-xs-9, .aol-xs-10, .aol-xs-11, .aol-xs-12{float:left} .aol-xs-12{width:100%} .aol-xs-11{width:91.66666667%} .aol-xs-10{width:83.33333333%} .aol-xs-9{width:75%} .aol-xs-8{width:66.66666667%} .aol-xs-7{width:58.33333333%} .aol-xs-6{width:50%} .aol-xs-5{width:41.66666667%} .aol-xs-4{width:33.33333333%} .aol-xs-3{width:25%} .aol-xs-2{width:16.66666667%} .aol-xs-1{width:8.33333333%} .aol-xs-pull-12{right:100%} .aol-xs-pull-11{right:91.66666667%} .aol-xs-pull-10{right:83.33333333%} .aol-xs-pull-9{right:75%} .aol-xs-pull-8{right:66.66666667%} .aol-xs-pull-7{right:58.33333333%} .aol-xs-pull-6{right:50%} .aol-xs-pull-5{right:41.66666667%} .aol-xs-pull-4{right:33.33333333%} .aol-xs-pull-3{right:25%} .aol-xs-pull-2{right:16.66666667%} .aol-xs-pull-1{right:8.33333333%} .aol-xs-pull-0{right:auto} .aol-xs-push-12{left:100%} .aol-xs-push-11{left:91.66666667%} .aol-xs-push-10{left:83.33333333%} .aol-xs-push-9{left:75%} .aol-xs-push-8{left:66.66666667%} .aol-xs-push-7{left:58.33333333%} .aol-xs-push-6{left:50%} .aol-xs-push-5{left:41.66666667%} .aol-xs-push-4{left:33.33333333%} .aol-xs-push-3{left:25%} .aol-xs-push-2{left:16.66666667%} .aol-xs-push-1{left:8.33333333%} .aol-xs-push-0{left:auto} .aol-xs-offset-12{margin-left:100%} .aol-xs-offset-11{margin-left:91.66666667%} .aol-xs-offset-10{margin-left:83.33333333%} .aol-xs-offset-9{margin-left:75%} .aol-xs-offset-8{margin-left:66.66666667%} .aol-xs-offset-7{margin-left:58.33333333%} .aol-xs-offset-6{margin-left:50%} .aol-xs-offset-5{margin-left:41.66666667%} .aol-xs-offset-4{margin-left:33.33333333%} .aol-xs-offset-3{margin-left:25%} .aol-xs-offset-2{margin-left:16.66666667%} .aol-xs-offset-1{margin-left:8.33333333%} .aol-xs-offset-0{margin-left:0} @media (min-width:768px){.aol-sm-1, .aol-sm-2, .aol-sm-3, .aol-sm-4, .aol-sm-5, .aol-sm-6, .aol-sm-7, .aol-sm-8, .aol-sm-9, .aol-sm-10, .aol-sm-11, .aol-sm-12{float:left} .aol-sm-12{width:100%} .aol-sm-11{width:91.66666667%} .aol-sm-10{width:83.33333333%} .aol-sm-9{width:75%} .aol-sm-8{width:66.66666667%} .aol-sm-7{width:58.33333333%} .aol-sm-6{width:50%} .aol-sm-5{width:41.66666667%} .aol-sm-4{width:33.33333333%} .aol-sm-3{width:25%} .aol-sm-2{width:16.66666667%} .aol-sm-1{width:8.33333333%} .aol-sm-pull-12{right:100%} .aol-sm-pull-11{right:91.66666667%} .aol-sm-pull-10{right:83.33333333%} .aol-sm-pull-9{right:75%} .aol-sm-pull-8{right:66.66666667%} .aol-sm-pull-7{right:58.33333333%} .aol-sm-pull-6{right:50%} .aol-sm-pull-5{right:41.66666667%} .aol-sm-pull-4{right:33.33333333%} .aol-sm-pull-3{right:25%} .aol-sm-pull-2{right:16.66666667%} .aol-sm-pull-1{right:8.33333333%} .aol-sm-pull-0{right:auto} .aol-sm-push-12{left:100%} .aol-sm-push-11{left:91.66666667%} .aol-sm-push-10{left:83.33333333%} .aol-sm-push-9{left:75%} .aol-sm-push-8{left:66.66666667%} .aol-sm-push-7{left:58.33333333%} .aol-sm-push-6{left:50%} .aol-sm-push-5{left:41.66666667%} .aol-sm-push-4{left:33.33333333%} .aol-sm-push-3{left:25%} .aol-sm-push-2{left:16.66666667%} .aol-sm-push-1{left:8.33333333%} .aol-sm-push-0{left:auto} .aol-sm-offset-12{margin-left:100%} .aol-sm-offset-11{margin-left:91.66666667%} .aol-sm-offset-10{margin-left:83.33333333%} .aol-sm-offset-9{margin-left:75%} .aol-sm-offset-8{margin-left:66.66666667%} .aol-sm-offset-7{margin-left:58.33333333%} .aol-sm-offset-6{margin-left:50%} .aol-sm-offset-5{margin-left:41.66666667%} .aol-sm-offset-4{margin-left:33.33333333%} .aol-sm-offset-3{margin-left:25%} .aol-sm-offset-2{margin-left:16.66666667%} .aol-sm-offset-1{margin-left:8.33333333%} .aol-sm-offset-0{margin-left:0} .center-sm-block{display:block;margin-left:auto;margin-right:auto} } @media (min-width:992px){.aol-md-1, .aol-md-2, .aol-md-3, .aol-md-4, .aol-md-5, .aol-md-6, .aol-md-7, .aol-md-8, .aol-md-9, .aol-md-10, .aol-md-11, .aol-md-12{float:left} .aol-md-12{width:100%} .aol-md-11{width:91.66666667%} .aol-md-10{width:83.33333333%} .aol-md-9{width:75%} .aol-md-8{width:66.66666667%} .aol-md-7{width:58.33333333%} .aol-md-6{width:50%} .aol-md-5{width:41.66666667%} .aol-md-4{width:33.33333333%} .aol-md-3{width:25%} .aol-md-2{width:16.66666667%} .aol-md-1{width:8.33333333%} .aol-md-pull-12{right:100%} .aol-md-pull-11{right:91.66666667%} .aol-md-pull-10{right:83.33333333%} .aol-md-pull-9{right:75%} .aol-md-pull-8{right:66.66666667%} .aol-md-pull-7{right:58.33333333%} .aol-md-pull-6{right:50%} .aol-md-pull-5{right:41.66666667%} .aol-md-pull-4{right:33.33333333%} .aol-md-pull-3{right:25%} .aol-md-pull-2{right:16.66666667%} .aol-md-pull-1{right:8.33333333%} .aol-md-pull-0{right:auto} .aol-md-push-12{left:100%} .aol-md-push-11{left:91.66666667%} .aol-md-push-10{left:83.33333333%} .aol-md-push-9{left:75%} .aol-md-push-8{left:66.66666667%} .aol-md-push-7{left:58.33333333%} .aol-md-push-6{left:50%} .aol-md-push-5{left:41.66666667%} .aol-md-push-4{left:33.33333333%} .aol-md-push-3{left:25%} .aol-md-push-2{left:16.66666667%} .aol-md-push-1{left:8.33333333%} .aol-md-push-0{left:auto} .aol-md-offset-12{margin-left:100%} .aol-md-offset-11{margin-left:91.66666667%} .aol-md-offset-10{margin-left:83.33333333%} .aol-md-offset-9{margin-left:75%} .aol-md-offset-8{margin-left:66.66666667%} .aol-md-offset-7{margin-left:58.33333333%} .aol-md-offset-6{margin-left:50%} .aol-md-offset-5{margin-left:41.66666667%} .aol-md-offset-4{margin-left:33.33333333%} .aol-md-offset-3{margin-left:25%} .aol-md-offset-2{margin-left:16.66666667%} .aol-md-offset-1{margin-left:8.33333333%} .aol-md-offset-0{margin-left:0} .pull-md-left{float:left !important; margin-right: 10px; margin-bottom: 10px; } } @media (min-width:1200px){ .aol-lg-1, .aol-lg-2, .aol-lg-3, .aol-lg-4, .aol-lg-5, .aol-lg-6, .aol-lg-7, .aol-lg-8, .aol-lg-9, .aol-lg-10, .aol-lg-11, .aol-lg-12{float:left} .aol-lg-12{width:100%} .aol-lg-11{width:91.66666667%} .aol-lg-10{width:83.33333333%} .aol-lg-9{width:75%} .aol-lg-8{width:66.66666667%} .aol-lg-7{width:58.33333333%} .aol-lg-6{width:50%} .aol-lg-5{width:41.66666667%} .aol-lg-4{width:33.33333333%} .aol-lg-3{width:25%} .aol-lg-2{width:16.66666667%} .aol-lg-1{width:8.33333333%} .aol-lg-pull-12{right:100%} .aol-lg-pull-11{right:91.66666667%} .aol-lg-pull-10{right:83.33333333%} .aol-lg-pull-9{right:75%} .aol-lg-pull-8{right:66.66666667%} .aol-lg-pull-7{right:58.33333333%} .aol-lg-pull-6{right:50%} .aol-lg-pull-5{right:41.66666667%} .aol-lg-pull-4{right:33.33333333%} .aol-lg-pull-3{right:25%} .aol-lg-pull-2{right:16.66666667%} .aol-lg-pull-1{right:8.33333333%} .aol-lg-pull-0{right:auto} .aol-lg-push-12{left:100%} .aol-lg-push-11{left:91.66666667%} .aol-lg-push-10{left:83.33333333%} .aol-lg-push-9{left:75%} .aol-lg-push-8{left:66.66666667%} .aol-lg-push-7{left:58.33333333%} .aol-lg-push-6{left:50%} .aol-lg-push-5{left:41.66666667%} .aol-lg-push-4{left:33.33333333%} .aol-lg-push-3{left:25%} .aol-lg-push-2{left:16.66666667%} .aol-lg-push-1{left:8.33333333%} .aol-lg-push-0{left:auto} .aol-lg-offset-12{margin-left:100%} .aol-lg-offset-11{margin-left:91.66666667%} .aol-lg-offset-10{margin-left:83.33333333%} .aol-lg-offset-9{margin-left:75%} .aol-lg-offset-8{margin-left:66.66666667%} .aol-lg-offset-7{margin-left:58.33333333%} .aol-lg-offset-6{margin-left:50%} .aol-lg-offset-5{margin-left:41.66666667%} .aol-lg-offset-4{margin-left:33.33333333%} .aol-lg-offset-3{margin-left:25%} .aol-lg-offset-2{margin-left:16.66666667%} .aol-lg-offset-1{margin-left:8.33333333%} .aol-lg-offset-0{margin-left:0} } .aol-wrapper fieldset{padding:0;margin:0;border:0;min-width:0} .aol-wrapper legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5} .aol-wrapper fieldset .section-info{margin-bottom:20px; margin-top:-20px; display: block} .aol-wrapper label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:bold} .aol-wrapper input[type="search"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box} .aol-wrapper input[type="radio"], .aol-wrapper input[type="checkbox"]{margin:4px 0 0;margin-top:1px \9;line-height:normal} .aol-wrapper input[type="file"]{display:block} .aol-wrapper input[type="range"]{display:block;width:100%} .aol-wrapper select[multiple], .aol-wrapper select[size]{height:auto} .aol-wrapper input[type="file"]:focus, .aol-wrapper input[type="radio"]:focus, .aol-wrapper input[type="checkbox"]:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px} .aol-wrapper output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555} .form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-transition:border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s, box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s, box-shadow ease-in-out .15s} .form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6)} .form-control::-moz-placeholder{color:#999;opacity:1} .form-control:-ms-input-placeholder{color:#999} .form-control::-webkit-input-placeholder{color:#999} .form-control::-ms-expand{border:0;background-color:transparent} .form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1} .form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed} textarea.form-control{height:auto} .aol-wrapper input[type="search"]{-webkit-appearance:none} @media screen and (-webkit-min-device-pixel-ratio:0){ input[type="date"].form-control, input[type="time"].form-control, input[type="datetime-local"].form-control,input[type="month"].form-control{line-height:34px} input[type="date"].input-sm,input[type="time"].input-sm,input[type="datetime-local"].input-sm,input[type="month"].input-sm,.input-group-sm input[type="date"],.input-group-sm input[type="time"],.input-group-sm input[type="datetime-local"],.input-group-sm input[type="month"]{line-height:30px} input[type="date"].input-lg,input[type="time"].input-lg,input[type="datetime-local"].input-lg,input[type="month"].input-lg,.input-group-lg input[type="date"],.input-group-lg input[type="time"],.input-group-lg input[type="datetime-local"],.input-group-lg input[type="month"]{line-height:46px} } .form-group{margin-bottom:15px} .radio,.checkbox{position:relative;display:block;margin-top:10px;margin-bottom:10px} .radio label,.checkbox label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:normal;cursor:pointer} .radio input[type="radio"],.radio-inline input[type="radio"],.checkbox input[type="checkbox"],.checkbox-inline input[type="checkbox"]{position:absolute;margin-left:-20px;margin-top:4px \9} .radio+.radio,.checkbox+.checkbox{margin-top:-5px} .radio-inline,.checkbox-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:normal;cursor:pointer} .radio-inline+.radio-inline,.checkbox-inline+.checkbox-inline{margin-top:0;margin-left:10px} input[type="radio"][disabled],input[type="checkbox"][disabled],input[type="radio"].disabled,input[type="checkbox"].disabled,fieldset[disabled] input[type="radio"],fieldset[disabled] input[type="checkbox"]{cursor:not-allowed} .radio-inline.disabled,.checkbox-inline.disabled,fieldset[disabled] .radio-inline,fieldset[disabled] .checkbox-inline{cursor:not-allowed} .radio.disabled label,.checkbox.disabled label,fieldset[disabled] .radio label,fieldset[disabled] .checkbox label{cursor:not-allowed} .form-control-static{padding-top:7px;padding-bottom:7px;margin-bottom:0;min-height:34px} .form-control-static.input-lg,.form-control-static.input-sm{padding-left:0;padding-right:0} .input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px} select.input-sm{height:30px;line-height:30px} textarea.input-sm,select[multiple].input-sm{height:auto} .form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px} .form-group-sm select.form-control{height:30px;line-height:30px} .form-group-sm textarea.form-control,.form-group-sm select[multiple].form-control{height:auto} .form-group-sm .form-control-static{height:30px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.5} .input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px} select.input-lg{height:46px;line-height:46px} textarea.input-lg,select[multiple].input-lg{height:auto} .form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px} .form-group-lg select.form-control{height:46px;line-height:46px} .form-group-lg textarea.form-control,.form-group-lg select[multiple].form-control{height:auto} .form-group-lg .form-control-static{height:46px;min-height:38px;padding:11px 16px;font-size:18px;line-height:1.3333333} .has-feedback{position:relative} .has-feedback .form-control{padding-right:42.5px} .form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none} .input-lg+.form-control-feedback,.input-group-lg+.form-control-feedback,.form-group-lg .form-control+.form-control-feedback{width:46px;height:46px;line-height:46px} .input-sm+.form-control-feedback,.input-group-sm+.form-control-feedback,.form-group-sm .form-control+.form-control-feedback{width:30px;height:30px;line-height:30px} .has-success .help-block,.has-success .control-label,.has-success .radio,.has-success .checkbox,.has-success .radio-inline,.has-success .checkbox-inline,.has-success.radio label,.has-success.checkbox label,.has-success.radio-inline label,.has-success.checkbox-inline label{color:#3c763d} .has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)} .has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #67b168} .has-success .input-group-addon{color:#3c763d;border-color:#3c763d;background-color:#dff0d8} .has-success .form-control-feedback{color:#3c763d} .has-warning .help-block,.has-warning .control-label,.has-warning .radio,.has-warning .checkbox,.has-warning .radio-inline,.has-warning .checkbox-inline,.has-warning.radio label,.has-warning.checkbox label,.has-warning.radio-inline label,.has-warning.checkbox-inline label{color:#8a6d3b} .has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)} .has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #c0a16b} .has-warning .input-group-addon{color:#8a6d3b;border-color:#8a6d3b;background-color:#fcf8e3} .has-warning .form-control-feedback{color:#8a6d3b} .has-error .help-block,.has-error .control-label,.has-error .radio,.has-error .checkbox,.has-error .radio-inline,.has-error .checkbox-inline,.has-error.radio label,.has-error.checkbox label,.has-error.radio-inline label,.has-error.checkbox-inline label{color:#a94442} .has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)} .has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #ce8483} .has-error .input-group-addon{color:#a94442;border-color:#a94442;background-color:#f2dede} .has-error .form-control-feedback{color:#a94442} .has-feedback label~.form-control-feedback{top:25px} .has-feedback label.sr-only~.form-control-feedback{top:0} .help-block{display:block;margin-bottom:10px;color:#737373} @media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle} .form-inline .form-control{display:inline-block;width:auto;vertical-align:middle} .form-inline .form-control-static{display:inline-block} .form-inline .input-group{display:inline-table;vertical-align:middle} .form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn,.form-inline .input-group .form-control{width:auto} .form-inline .input-group>.form-control{width:100%} .form-inline .control-label{margin-bottom:0;vertical-align:middle} .form-inline .radio,.form-inline .checkbox{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle} .form-inline .radio label,.form-inline .checkbox label{padding-left:0} .form-inline .radio input[type="radio"],.form-inline .checkbox input[type="checkbox"]{position:relative;margin-left:0} .form-inline .has-feedback .form-control-feedback{top:0} } .form-horizontal .radio,.form-horizontal .checkbox,.form-horizontal .radio-inline,.form-horizontal .checkbox-inline{margin-top:0;margin-bottom:0;padding-top:7px} .form-horizontal .radio,.form-horizontal .checkbox{min-height:27px} .form-horizontal .form-group{margin-left:-15px;margin-right:-15px} @media (min-width:768px){.form-horizontal .control-label{text-align:right;margin-bottom:0;padding-top:7px} } .form-horizontal .has-feedback .form-control-feedback{right:15px} @media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:11px;font-size:18px} } @media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px;font-size:12px} } .btn{display:inline-block;margin-bottom:0;font-weight:normal;text-align:center;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none} .btn:focus,.btn:active:focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn.active.focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px} .btn:hover,.btn:focus,.btn.focus{color:#333;text-decoration:none} .btn:active,.btn.active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)} .btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none} a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none} .btn-default{color:#333;background-color:#fff;border-color:#ccc} .btn-default:focus,.btn-default.focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c} .btn-default:hover{color:#333;background-color:#e6e6e6;border-color:#adadad} .btn-default:active,.btn-default.active,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad} .btn-default:active:hover,.btn-default.active:hover,.open>.dropdown-toggle.btn-default:hover,.btn-default:active:focus,.btn-default.active:focus,.open>.dropdown-toggle.btn-default:focus,.btn-default:active.focus,.btn-default.active.focus,.open>.dropdown-toggle.btn-default.focus{color:#333;background-color:#d4d4d4;border-color:#8c8c8c} .btn-default:active,.btn-default.active,.open>.dropdown-toggle.btn-default{background-image:none} .btn-default.disabled:hover,.btn-default[disabled]:hover,fieldset[disabled] .btn-default:hover,.btn-default.disabled:focus,.btn-default[disabled]:focus,fieldset[disabled] .btn-default:focus,.btn-default.disabled.focus,.btn-default[disabled].focus,fieldset[disabled] .btn-default.focus{background-color:#fff;border-color:#ccc} .btn-default .badge{color:#fff;background-color:#333} .btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4} .btn-primary:focus,.btn-primary.focus{color:#fff;background-color:#286090;border-color:#122b40} .btn-primary:hover{color:#fff;background-color:#286090;border-color:#204d74} .btn-primary:active,.btn-primary.active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74} .btn-primary:active:hover,.btn-primary.active:hover,.open>.dropdown-toggle.btn-primary:hover,.btn-primary:active:focus,.btn-primary.active:focus,.open>.dropdown-toggle.btn-primary:focus,.btn-primary:active.focus,.btn-primary.active.focus,.open>.dropdown-toggle.btn-primary.focus{color:#fff;background-color:#204d74;border-color:#122b40} .btn-primary:active,.btn-primary.active,.open>.dropdown-toggle.btn-primary{background-image:none} .btn-primary.disabled:hover,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary:hover,.btn-primary.disabled:focus,.btn-primary[disabled]:focus,fieldset[disabled] .btn-primary:focus,.btn-primary.disabled.focus,.btn-primary[disabled].focus,fieldset[disabled] .btn-primary.focus{background-color:#337ab7;border-color:#2e6da4} .btn-primary .badge{color:#337ab7;background-color:#fff} .btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c} .btn-success:focus,.btn-success.focus{color:#fff;background-color:#449d44;border-color:#255625} .btn-success:hover{color:#fff;background-color:#449d44;border-color:#398439} .btn-success:active,.btn-success.active,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439} .btn-success:active:hover,.btn-success.active:hover,.open>.dropdown-toggle.btn-success:hover,.btn-success:active:focus,.btn-success.active:focus,.open>.dropdown-toggle.btn-success:focus,.btn-success:active.focus,.btn-success.active.focus,.open>.dropdown-toggle.btn-success.focus{color:#fff;background-color:#398439;border-color:#255625} .btn-success:active,.btn-success.active,.open>.dropdown-toggle.btn-success{background-image:none} .btn-success.disabled:hover,.btn-success[disabled]:hover,fieldset[disabled] .btn-success:hover,.btn-success.disabled:focus,.btn-success[disabled]:focus,fieldset[disabled] .btn-success:focus,.btn-success.disabled.focus,.btn-success[disabled].focus,fieldset[disabled] .btn-success.focus{background-color:#5cb85c;border-color:#4cae4c} .btn-success .badge{color:#5cb85c;background-color:#fff} .btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da} .btn-info:focus,.btn-info.focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85} .btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#269abc} .btn-info:active,.btn-info.active,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc} .btn-info:active:hover,.btn-info.active:hover,.open>.dropdown-toggle.btn-info:hover,.btn-info:active:focus,.btn-info.active:focus,.open>.dropdown-toggle.btn-info:focus,.btn-info:active.focus,.btn-info.active.focus,.open>.dropdown-toggle.btn-info.focus{color:#fff;background-color:#269abc;border-color:#1b6d85} .btn-info:active,.btn-info.active,.open>.dropdown-toggle.btn-info{background-image:none} .btn-info.disabled:hover,.btn-info[disabled]:hover,fieldset[disabled] .btn-info:hover,.btn-info.disabled:focus,.btn-info[disabled]:focus,fieldset[disabled] .btn-info:focus,.btn-info.disabled.focus,.btn-info[disabled].focus,fieldset[disabled] .btn-info.focus{background-color:#5bc0de;border-color:#46b8da} .btn-info .badge{color:#5bc0de;background-color:#fff} .btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236} .btn-warning:focus,.btn-warning.focus{color:#fff;background-color:#ec971f;border-color:#985f0d} .btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#d58512} .btn-warning:active,.btn-warning.active,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512} .btn-warning:active:hover,.btn-warning.active:hover,.open>.dropdown-toggle.btn-warning:hover,.btn-warning:active:focus,.btn-warning.active:focus,.open>.dropdown-toggle.btn-warning:focus,.btn-warning:active.focus,.btn-warning.active.focus,.open>.dropdown-toggle.btn-warning.focus{color:#fff;background-color:#d58512;border-color:#985f0d} .btn-warning:active,.btn-warning.active,.open>.dropdown-toggle.btn-warning{background-image:none} .btn-warning.disabled:hover,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning:hover,.btn-warning.disabled:focus,.btn-warning[disabled]:focus,fieldset[disabled] .btn-warning:focus,.btn-warning.disabled.focus,.btn-warning[disabled].focus,fieldset[disabled] .btn-warning.focus{background-color:#f0ad4e;border-color:#eea236} .btn-warning .badge{color:#f0ad4e;background-color:#fff} .btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a} .btn-danger:focus,.btn-danger.focus{color:#fff;background-color:#c9302c;border-color:#761c19} .btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#ac2925} .btn-danger:active,.btn-danger.active,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925} .btn-danger:active:hover,.btn-danger.active:hover,.open>.dropdown-toggle.btn-danger:hover,.btn-danger:active:focus,.btn-danger.active:focus,.open>.dropdown-toggle.btn-danger:focus,.btn-danger:active.focus,.btn-danger.active.focus,.open>.dropdown-toggle.btn-danger.focus{color:#fff;background-color:#ac2925;border-color:#761c19} .btn-danger:active,.btn-danger.active,.open>.dropdown-toggle.btn-danger{background-image:none} .btn-danger.disabled:hover,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger:hover,.btn-danger.disabled:focus,.btn-danger[disabled]:focus,fieldset[disabled] .btn-danger:focus,.btn-danger.disabled.focus,.btn-danger[disabled].focus,fieldset[disabled] .btn-danger.focus{background-color:#d9534f;border-color:#d43f3a} .btn-danger .badge{color:#d9534f;background-color:#fff} .btn-link{color:#337ab7;font-weight:normal;border-radius:0} .btn-link,.btn-link:active,.btn-link.active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none} .btn-link,.btn-link:hover,.btn-link:focus,.btn-link:active{border-color:transparent} .btn-link:hover,.btn-link:focus{color:#23527c;text-decoration:underline;background-color:transparent} .btn-link[disabled]:hover,fieldset[disabled] .btn-link:hover,.btn-link[disabled]:focus,fieldset[disabled] .btn-link:focus{color:#777;text-decoration:none} .btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px} .btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px} .btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px} .btn-block{display:block;width:100%} .btn-block+.btn-block{margin-top:5px} input[type="submit"].btn-block,input[type="reset"].btn-block,input[type="button"].btn-block{width:100%} .jumbotron{padding-top:30px;padding-bottom:30px;margin-bottom:30px;color:inherit;background-color:#eee} .jumbotron h1,.jumbotron .h1{color:inherit} .jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200} .jumbotron>hr{border-top-color:#d5d5d5} .container .jumbotron,.container-fluid .jumbotron{border-radius:6px;padding-left:15px;padding-right:15px} .jumbotron .container{max-width:100%} @media screen and (min-width:768px){ .jumbotron{padding-top:48px;padding-bottom:48px} .container .jumbotron,.container-fluid .jumbotron{padding-left:60px;padding-right:60px} .jumbotron h1,.jumbotron .h1{font-size:63px} } p#aol_form_status, .alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px} .alert h4{margin-top:0;color:inherit} .alert .alert-link{font-weight:bold} .alert>p,.alert>ul{margin-bottom:0} .alert>p+p{margin-top:5px} .alert-dismissable,.alert-dismissible{padding-right:35px} .alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit} .alert-success{background-color:#dff0d8;border-color:#d6e9c6;color:#3c763d} .alert-success hr{border-top-color:#c9e2b3} .alert-success .alert-link{color:#2b542c} .alert-info{background-color:#d9edf7;border-color:#bce8f1;color:#31708f} .alert-info hr{border-top-color:#a6e1ec} .alert-info .alert-link{color:#245269} .alert-warning{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b} .alert-warning hr{border-top-color:#f7e1b5} .alert-warning .alert-link{color:#66512c} .alert-danger{background-color:#f2dede;border-color:#ebccd1;color:#a94442} .alert-danger hr{border-top-color:#e4b9c0} .alert-danger .alert-link{color:#843534} .panel{margin-bottom:20px;background-color:#fff;border:1px solid #ccc; border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.05);box-shadow:0 1px 1px rgba(0,0,0,0.05)} .panel-body{padding:15px} .panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-right-radius:3px;border-top-left-radius:3px; background-color:#f5f5f5; font-weight:bold; } .panel-heading>.dropdown .dropdown-toggle{color:inherit} .panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit} .panel-title>a,.panel-title>small,.panel-title>.small,.panel-title>small>a,.panel-title>.small>a{color:inherit} .panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px} .panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0} .panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0} .panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-right-radius:3px;border-top-left-radius:3px} .panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px} .panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child{border-top-right-radius:0;border-top-left-radius:0} .panel-heading+.list-group .list-group-item:first-child{border-top-width:0} .list-group+.panel-footer{border-top-width:0} .panel>.table,.panel>.table-responsive>.table,.panel>.panel-collapse>.table{margin-bottom:0} .panel>.table caption,.panel>.table-responsive>.table caption,.panel>.panel-collapse>.table caption{padding-left:15px;padding-right:15px} .panel>.table:first-child,.panel>.table-responsive:first-child>.table:first-child{border-top-right-radius:3px;border-top-left-radius:3px} .panel>.table:first-child>thead:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px} .panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child{border-top-left-radius:3px} .panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child{border-top-right-radius:3px} .panel>.table:last-child,.panel>.table-responsive:last-child>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px} .panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-left-radius:3px;border-bottom-right-radius:3px} .panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px} .panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px} .panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd} .panel>.table>tbody:first-child>tr:first-child th,.panel>.table>tbody:first-child>tr:first-child td{border-top:0} .panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0} .panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0} .panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0} .panel>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th{border-bottom:0} .panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0} .panel>.table-responsive{border:0;margin-bottom:0} .well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);box-shadow:inset 0 1px 1px rgba(0,0,0,0.05)} .well blockquote{border-color:#ddd;border-color:rgba(0,0,0,0.15)} .well-lg{padding:24px;border-radius:6px} .well-sm{padding:9px;border-radius:3px} .clearfix:before,.clearfix:after,.container:before,.container:after,.container-fluid:before,.container-fluid:after,.aol-row:before,.aol-row:after,.form-horizontal .form-group:before,.form-horizontal .form-group:after,.panel-body:before,.panel-body:after{content:" ";display:table} .clearfix:after,.container:after,.container-fluid:after,.aol-row:after,.form-horizontal .form-group:after,.panel-body:after{clear:both} .center-block{display:block;margin-left:auto;margin-right:auto} .pull-right{float:right !important} .pull-left{float:left !important} .hide{display:none !important} .show{display:block !important} .invisible{visibility:hidden} .img-responsive{max-width:100%; height:auto; display:block;} .form-group:last-child{margin-bottom: 0} .aol_app_form input[type="file"] { height: auto; width: auto; } .aol-ad-taxonomy{text-transform: capitalize;} table.aol_ads_features{ border-bottom: 1px solid #ededed; border-collapse: collapse; border-spacing: 0; font-size: 14px; line-height: 2; margin: 0 0 20px; width: 100%; } table.aol_ads_features td{ border-top: 1px solid #ededed; padding: 6px 10px 6px 0; font-weight: normal; text-align: left; } ol.aol_ads_list li{padding-bottom: 10px;} ol.aol_ads_list p{padding: 0px; margin: 0} #aol_form_status .error-title{margin-top: 0; font-size: 18px;} .aol_ad_list p{margin: 0px;} .aol_ad_list li{margin-bottom: 20px;} .ui-datepicker .ui-datepicker-title input, .ui-datepicker .ui-datepicker-title select, .ui-datepicker .ui-datepicker-title textarea{padding: 0px;} .form-control.selected { border-color: #66afe9; outline: 0; -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);} .aol_app_form .help-block { display: inline-block; margin-bottom: 10px; color: #737373; font-style: italic;} .aol_app_form fieldset{ margin-top: 20px;} /*Textarea Charchter Counter*/ .the-count {display: inline-block; float: right;} .aol-textbox {overflow-y: auto; border: 1px solid #eee; color: #555; border-radius: 4px; padding: 0px 10px; } .aol_multistep .dashicons{vertical-align: middle; } #aol_ad_form{margin-bottom: 0} .aol-progress{width: 100%; background-color: #ddd; position: relative; text-align: center; margin-bottom: 20px; } .aol-progress-count { width: 0; height: 30px; background-color: #00428b; text-align: center; /* To center it horizontally (if you want) */ line-height: 30px; /* To center it vertically */ color: white; } .aol-progress-counter{position: absolute; top:0;} .progress-wrapper{display: none} .aol_app_form.hideout{height: 0 !important; } .aol_app_form{transition: all 1s ease-in-out; overflow:hidden; height: auto; }public/css/skeleton-grid.css000064400000020302150211775550012100 0ustar00/* * Skeleton V2.0.4 * Copyright 2014, Dave Gamache * www.getskeleton.com * Free to use under the MIT license. * http://www.opensource.org/licenses/mit-license.php * 12/29/2014 */ /* Table of contents –––––––––––––––––––––––––––––––––––––––––––––––––– - Grid - Base Styles - Typography - Links - Buttons - Forms - Lists - Code - Tables - Spacing - Utilities - Clearing - Media Queries */ /* Grid –––––––––––––––––––––––––––––––––––––––––––––––––– */ .aol-wrapper .container { position: relative; width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; } .aol-wrapper .column, .aol-wrapper .columns { width: 100%; float: left; box-sizing: border-box; } /* For devices larger than 400px */ @media (min-width: 400px) { .aol-wrapper .container { width: 85%; padding: 0; } } /* For devices larger than 550px */ @media (min-width: 550px) { .aol-wrapper .container { width: 80%; } .aol-wrapper .column, .aol-wrapper .columns { margin-left: 4%; } .aol-wrapper .column:first-child, .aol-wrapper .columns:first-child { margin-left: 0; } .aol-wrapper .one.column, .aol-wrapper .one.columns { width: 4.66666666667%; } .aol-wrapper .two.columns { width: 13.3333333333%; } .aol-wrapper .three.columns { width: 22%; } .aol-wrapper .four.columns { width: 30.6666666667%; } .aol-wrapper .five.columns { width: 39.3333333333%; } .aol-wrapper .six.columns { width: 48%; } .aol-wrapper .seven.columns { width: 56.6666666667%; } .aol-wrapper .eight.columns { width: 65.3333333333%; } .aol-wrapper .nine.columns { width: 74.0%; } .aol-wrapper .ten.columns { width: 82.6666666667%; } .aol-wrapper .eleven.columns { width: 91.3333333333%; } .aol-wrapper .twelve.columns { width: 100%; margin-left: 0; } .aol-wrapper .one-third.column { width: 30.6666666667%; } .aol-wrapper .two-thirds.column { width: 65.3333333333%; } .aol-wrapper .one-half.column { width: 48%; } /* Offsets */ .aol-wrapper .offset-by-one.column, .aol-wrapper .offset-by-one.columns { margin-left: 8.66666666667%; } .aol-wrapper .offset-by-two.column, .aol-wrapper .offset-by-two.columns { margin-left: 17.3333333333%; } .aol-wrapper .offset-by-three.column, .aol-wrapper .offset-by-three.columns { margin-left: 26%; } .aol-wrapper .offset-by-four.column, .aol-wrapper .offset-by-four.columns { margin-left: 34.6666666667%; } .aol-wrapper .offset-by-five.column, .aol-wrapper .offset-by-five.columns { margin-left: 43.3333333333%; } .aol-wrapper .offset-by-six.column, .aol-wrapper .offset-by-six.columns { margin-left: 52%; } .aol-wrapper .offset-by-seven.column, .aol-wrapper .offset-by-seven.columns { margin-left: 60.6666666667%; } .aol-wrapper .offset-by-eight.column, .aol-wrapper .offset-by-eight.columns { margin-left: 69.3333333333%; } .aol-wrapper .offset-by-nine.column, .aol-wrapper .offset-by-nine.columns { margin-left: 78.0%; } .aol-wrapper .offset-by-ten.column, .aol-wrapper .offset-by-ten.columns { margin-left: 86.6666666667%; } .aol-wrapper .offset-by-eleven.column, .aol-wrapper .offset-by-eleven.columns { margin-left: 95.3333333333%; } .aol-wrapper .offset-by-one-third.column, .aol-wrapper .offset-by-one-third.columns { margin-left: 34.6666666667%; } .aol-wrapper .offset-by-two-thirds.column, .aol-wrapper .offset-by-two-thirds.columns { margin-left: 69.3333333333%; } .aol-wrapper .offset-by-one-half.column, .aol-wrapper .offset-by-one-half.columns { margin-left: 52%; } } /* Forms –––––––––––––––––––––––––––––––––––––––––––––––––– */ .aol-wrapper input[type="email"], .aol-wrapper input[type="number"], .aol-wrapper input[type="search"], .aol-wrapper input[type="text"], .aol-wrapper input[type="tel"], .aol-wrapper input[type="url"], .aol-wrapper input[type="password"], .aol-wrapper textarea, .aol-wrapper select { height: 38px; padding: 6px 10px; /* The 6px vertically centers text on FF, ignored by Webkit */ background-color: #fff; border: 1px solid #D1D1D1; border-radius: 4px; box-shadow: none; box-sizing: border-box; } /* Removes awkward default styles on some inputs for iOS */ .aol-wrapper input[type="email"], .aol-wrapper input[type="number"], .aol-wrapper input[type="search"], .aol-wrapper input[type="text"], .aol-wrapper input[type="tel"], .aol-wrapper input[type="url"], .aol-wrapper input[type="password"], .aol-wrapper textarea { -webkit-appearance: none; -moz-appearance: none; appearance: none; } .aol-wrapper textarea { min-height: 65px; padding-top: 6px; padding-bottom: 6px; } .aol-wrapper input[type="email"]:focus, .aol-wrapper input[type="number"]:focus, .aol-wrapper input[type="search"]:focus, .aol-wrapper input[type="text"]:focus, .aol-wrapper input[type="tel"]:focus, .aol-wrapper input[type="url"]:focus, .aol-wrapper input[type="password"]:focus, .aol-wrapper textarea:focus, .aol-wrapper select:focus { border: 1px solid #33C3F0; outline: 0; } .aol-wrapper label, .aol-wrapper legend { display: block; margin-bottom: .5rem; font-weight: 600; } .aol-wrapper fieldset { padding: 0; border-width: 0; } .aol-wrapper input[type="checkbox"], .aol-wrapper input[type="radio"] { display: inline; } .aol-wrapper label > .label-body { display: inline-block; margin-left: .5rem; font-weight: normal; } /* Spacing –––––––––––––––––––––––––––––––––––––––––––––––––– */ .aol-wrapper button, .aol-wrapper .button { margin-bottom: 1rem; } .aol-wrapper input, .aol-wrapper textarea, .aol-wrapper select, .aol-wrapper fieldset { margin-bottom: 1.5rem; } .aol-wrapper pre, .aol-wrapper blockquote, .aol-wrapper dl, .aol-wrapper figure, .aol-wrapper table, .aol-wrapper p, .aol-wrapper ul, .aol-wrapper ol, .aol-wrapper form { margin-bottom: 2.5rem; } /* Utilities –––––––––––––––––––––––––––––––––––––––––––––––––– */ .aol-wrapper .u-full-width { width: 100%; box-sizing: border-box; } .aol-wrapper .u-max-full-width { max-width: 100%; box-sizing: border-box; } .aol-wrapper .u-pull-right { float: right; } .aol-wrapper .u-pull-left { float: left; } /* Misc –––––––––––––––––––––––––––––––––––––––––––––––––– */ .aol-wrapper hr { margin-top: 3rem; margin-bottom: 3.5rem; border-width: 0; border-top: 1px solid #E1E1E1; } /* Clearing –––––––––––––––––––––––––––––––––––––––––––––––––– */ /* Self Clearing Goodness */ .aol-wrapper .container:after, .aol-wrapper .row:after, .aol-wrapper .u-cf { content: ""; display: table; clear: both; } /* Media Queries –––––––––––––––––––––––––––––––––––––––––––––––––– */ /* Note: The best way to structure the use of media queries is to create the queries near the relevant code. For example, if you wanted to change the styles for buttons on small devices, paste the mobile query code up in the buttons section and style it there. */ /* Larger than mobile */ @media (min-width: 400px) {} /* Larger than phablet (also point when grid becomes active) */ @media (min-width: 550px) {} /* Larger than tablet */ @media (min-width: 750px) {} /* Larger than desktop */ @media (min-width: 1000px) {} /* Larger than Desktop HD */ @media (min-width: 1200px) {} public/class-applyonline-public.php000064400000154601150211775550013463 0ustar00 */ class Applyonline_Public { /** * The ID of this plugin. * * @since 1.0.0 * @access private * @var string $plugin_name The ID of this plugin. */ protected $plugin_name; /** * The version of this plugin. * * @since 1.0.0 * @access private * @var string $version The current version of this plugin. */ protected $version; /** * Initialize the class and set its properties. * * @since 1.0.0 * @param string $plugin_name The name of the plugin. * @param string $version The version of this plugin. */ public function __construct( $plugin_name, $version ) { $this->plugin_name = $plugin_name; $this->version = $version; new AOL_Single_Post_Template($plugin_name, $version); //Passing 2 parameters to the child new Applyonline_Shortcodes(); new Applyonline_AjaxHandler(); } /** * Register the stylesheets for the public-facing side of the site. * * @since 1.0.0 */ public function enqueue_styles() { /** * This function is provided for demonstration purposes only. * * An instance of this class should be passed to the run() function * defined in Applyonline_Loader as all of the hooks are defined * in that particular class. * * The Applyonline_Loader will then create the relationship * between the defined hooks and the functions defined in this * class. */ wp_enqueue_style('aol-jquery-ui', plugin_dir_url(__FILE__).'css/jquery-ui.min.css'); wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/applyonline-public.css', array(), $this->version, 'all' ); } /** * Register the stylesheets for the public-facing side of the site. * * @since 1.0.0 */ public function enqueue_scripts() { /** * This function is provided for demonstration purposes only. * * An instance of this class should be passed to the run() function * defined in Applyonline_Loader as all of the hooks are defined * in that particular class. * * The Applyonline_Loader will then create the relationship * between the defined hooks and the functions defined in this * class. */ wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/applyonline-public.js', array( 'jquery','jquery-ui-datepicker' ), $this->version, false ); //wp_enqueue_script( 'aol-charcounter', plugin_dir_url( __FILE__ ) . 'js/cct_embed.min.js', array(), $this->version, false ); $aol_js_vars = array( 'ajaxurl' => admin_url ( 'admin-ajax.php' ), 'date_format' => get_option('aol_date_format', 'dd-mm-yy'), 'url' => plugins_url(NULL, __DIR__), 'consent_text' => get_option('aol_form_consent', FALSE),//esc_html__('Do you really want to submit this form?', 'ApplyOnline'), ); wp_localize_script ( $this->plugin_name, 'aol_public', apply_filters('aol_js_vars', $aol_js_vars) ); } public function check_ad_closing_status($query){ $types = get_aol_ad_types(); if(!is_admin() and isset($query->query['post_type']) and in_array($query->query['post_type'], $types)){ global $wpdb; $closed = $wpdb->get_col("SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_aol_ad_closing_date' AND meta_value != '' AND (meta_value BETWEEN 0 AND UNIX_TIMESTAMP()) AND post_id NOT IN (SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_aol_ad_close_type' AND meta_value != 'ad')"); $query->set('post__not_in', $closed); } } //@todo: Use this method instead of aol_form_generator() function. function aol_form_generator($fields, $fieldset = 0, $prepend = NULL, $post_id = 0){ return aol_form_generator($fields, $fieldset, $prepend, $post_id); } /** * This function should be moved to the admin section. */ function output_attachment(){ if( isset($_REQUEST['aol_attachment']) AND (current_user_can('read_application') OR current_user_can('save_application')) ){ //the file you want to send $path = urldecode( aol_crypt( ($_REQUEST['aol_attachment']), 'd') ); // the file name of the download, change this if needed $public_name = basename($path); $mime_type = wp_check_filetype($path); // send the headers header("Content-Disposition: attachment; filename=$public_name;"); header("Content-Type: ".$mime_type['type']); header('Content-Length: ' . filesize($path)); if( !function_exists('finfo_open') ){ echo file_get_contents($path); exit; } // get the file's mime type to send the correct content type header $finfo = finfo_open(FILEINFO_MIME_TYPE); $mime_type = finfo_file($finfo, $path); // stream the file $fp = fopen($path, 'rb'); $result = fpassthru($fp); //Revert to File load method if File stream method fails if( $result == FALSE ) echo file_get_contents($path); exit; } } } class AOL_Single_Post_Template{ var $plugin_name; var $version; public function __construct($plugin_name = null, $version = null) { $this->plugin_name = $version; $this->version = $plugin_name; add_filter('body_class', array($this, 'aol_body_classes')); add_filter( 'the_content', array($this, 'aol_the_content') ); } function aol_body_classes($classes){ $classes[] = $this->plugin_name; $classes[] = $this->plugin_name.'-'.$this->version; return $classes; } public function aol_ad_is_checked($i){ if($i==0) $checked="checked"; else $checked = NULL; return $checked; } public function application_form_fields($post_id = 0){ //Get current post object on SINGLE Template file(e.g. single.php, aol_ad-single.php). if(empty($post_id)){ global $post; $post_id = $post->ID; } $field_types = array( 'text'=> esc_html__('Text','ApplyOnline'), 'checkbox'=>esc_html__('Check Box','ApplyOnline'), 'dropdown'=>esc_html__('Drop Down','ApplyOnline'), 'radio'=> esc_html__('Radio','ApplyOnline'), 'file'=> esc_html__('File','ApplyOnline'), 'separator' => esc_html__('Seprator','ApplyOnline') ); $raw_fields = get_aol_ad_post_meta($post_id); $fields = array(); $i=0; foreach($raw_fields as $key => $val){ $fields[$i] = $val; // $fields[$i]['key'] = substr($key, 9); //Add key as array element for easy access. if(isset($fields[$i]['options'])) $fields[$i]['options'] = array_combine(explode(',', $fields[$i]['options']), explode(',', $fields[$i]['options'])); //Add options as an array, Setting arrays keys & values alike. if(!isset($fields[$i]['required'])) $fields[$i]['required'] = 1; //Fix for older versions (prior to 1.6.1 when REQUIRED field was not available) if(isset($fields[$i]['type']) AND $fields[$i]['type']=='seprator') $fields[$i]['type'] = 'separator'; //Fixed bug before 1.9.6, spell mistake in the key. $i++; } return $fields; } public function application_form($post_id = 0){ if(empty($post_id) AND !is_singular()){ return '

'.esc_html__('Form ID is missing', 'ApplyOnline').'

'; } global $post; //Sanitizing & fetching post ID. $post_id = empty($post_id) ? (int)$post->ID : (int)$post_id; $date = get_post_meta($post_id, '_aol_ad_closing_date', TRUE); $fields = apply_filters('aol_form_fields', $this->application_form_fields($post_id), $post_id); //If Form has no fields. if( empty($fields) ) return NULL; $progress_bar = get_option('aol_progress_bar_color', array('foreground' => '#222222', 'background' => '#dddddd', 'counter' => '#888888')); ob_start(); echo '

'. esc_html_x('Apply Online', 'public', 'ApplyOnline').'

'; //If closing date has passed away. if( !empty($date) AND $date < time() ) return ''. get_option_fixed('aol_application_close_message', esc_html__('We are no longer accepting applications for this ad.', 'ApplyOnline')).''; $css_pattern = '/^#([0-9A-Fa-f]{3}){1,2}$/'; $css_bg = preg_match($css_pattern, $progress_bar['background']) ? $progress_bar['background'] : NULL; $css_fg = preg_match($css_pattern, $progress_bar['foreground']) ? $progress_bar['foreground'] : NULL; $css_color = preg_match($css_pattern, $progress_bar['counter']) ? $progress_bar['counter'] : NULL; ?>
esc_html__('Submit', 'ApplyOnline'), 'class' => 'btn btn-primary btn-submit button submit fusion-button button-large aol-form-button '. get_option('aol_submit_button_classes'))); $aol_button_attributes = apply_filters('aol_form_button', $aol_button_attributes);//depricated in the favour of aol_form_button_attributes since 2.2.3.1 $attributes = NULL; foreach($aol_button_attributes as $key => $val){ //Sanitized attributes $attributes .= esc_attr($key).'="'.esc_attr($val).'" '; } ?>

ID; $fields = get_aol_ad_features($post_id); $metas = NULL; if( !empty($fields) ): switch ($output): case 'heading': $start_wrapper = '
'; $close_wrapper = '
'; $row_start = '

'; $separator = ':

'; $row_close = ''; break; case 'list': $start_wrapper = ''; $row_start = '
  • '; $separator = ': '; $row_close = '
  • '; break; default: $start_wrapper = ''; $close_wrapper = '
    '; $row_start = ''; $separator = ''; $row_close = ''; endswitch; $metas = $start_wrapper; foreach($fields as $key => $val): if(!is_array($val)) $val = array('label' => str_replace('_', ' ',substr($key, 13)), 'value' => $val); $metas.= $row_start.$val['label'].$separator.$val['value'].$row_close; endforeach; $metas.= $close_wrapper; endif; return $metas; } function ad_type_fix($val, $key){ return 'aol_'.$val; } public function aol_the_content($content){ global $post; $types = get_option_fixed('aol_ad_types', array('ad' => array('singular'=> esc_html__('Ad','ApplyOnline'), 'plural' => esc_html__('Ads','ApplyOnline')))); $aol_types = array(); foreach($types as $type => $val){ $aol_types[] = 'aol_'.$type; } if(!is_singular($aol_types)) return $content; global $template; $features = $this->ad_features($post->ID); $title_features = empty($features) ? NULL : '

    '. get_option( 'aol_features_title', 'Salient Features' ).'

    '; $form = $this->application_form(); $not_working = ''; //Show this content if you are viewing aol_ad post type using single.php (not with single-aol_type.php) $aol_content; $this_template = substr(wp_basename($template), 7, -4); if(in_array($this_template, $aol_types) OR has_shortcode( $content, 'aol_form' )): $aol_content = $content; else: $aol_content = '
    '.$content.$title_features.$features.$form.'
    '; $aol_content = apply_filters( 'aol_content', $aol_content, $content, $features, $form ); endif; return $aol_content; } } class Applyonline_Shortcodes{ function __construct() { add_shortcode( 'aol', array($this, 'aol') ); //archive of ads. add_shortcode( 'aol_ads', array($this, 'aol') ); //deprecated since 1.1 add_shortcode( 'aol_ad', array($this, 'aol_ad') ); //Single ad with form. add_shortcode( 'aol_form', array($this, 'aol_form') ); //Single ad form only. add_shortcode( 'aol_filters', array($this, 'aol_filters') ); //Single ad form only. add_shortcode( 'aol_features', array($this, 'aol_features') ); } /** * Shortcode Generator * @param type $atts * @return type */ function aol( $atts ) { $archive_wraper_classes = apply_filters('aol_archive_wrapper_classes', array('aol-ad-outer-wrapper')); $wraper_classes = apply_filters('aol_ad_wrapper_classes', array('aol-ad-inner-wrapper')); //$title_wrapper = apply_filters('aol_ad_title_wrapper', 'div'); $title_classes = apply_filters('aol_ad_title_wrapper_classes', array('panel-heading')); $body_classes = apply_filters('aol_ad_body_wrapper_classes', array('panel-body')); $thumb_wrapper = apply_filters('aol_ad_thumb_wrapper', 'div'); $thumb_classes= apply_filters('aol_ad_thumb_classes', array('aol-thumbnail', 'pull-md-left', 'center-sm-block')); $footer_classes = apply_filters('aol_ad_footer_wrapper_classes', array('panel-footer')); $order = apply_filters('aol_grid_element_order', array('title', 'body_start', 'meta', 'thumbnail', 'excerpt', 'body_close', 'footer')); $a = shortcode_atts( array( 'ads' => '', //Depricated since 2.2.3 'include' => '', //Replaced ads attribute. 'exclude' => '', 'excerpt' => 'yes', 'display' => 'full', 'list-style' => 'ul', 'count' => '-1', 'filter' => 'yes', 'type' => 'ad', 'author' => null ), $atts, 'aol' ); $lstyle = ($a['list-style'] == 'ol') ? 'ol' : 'ul'; $args = array( 'posts_per_page'=> $a['count'], 'post_type' =>'aol_'.$a['type'], 'author' => $a['author'], 'exclude' => empty($a['exclude']) ? array() : explode(',',$a['exclude']), //'include' => empty($a['include']) ? array() : explode(',',$a['include']), 'include' => empty($a['ads']) ? array() : explode(',',$a['ads']), // Depricated since version 2.5 ); /* if( !(empty($a['ads']) and empty($a['include'])) ){ $a['show_filter'] = 'no'; } * */ //Get list of taxanomies $taxes = get_object_taxonomies('aol_'.$a['type']); $args['s'] = $search_keyword = isset($_REQUEST['aol_seach_keyword']) ? $_REQUEST['aol_seach_keyword'] : NULL; $args['tax_query'] = array(); foreach($taxes as $tax){ $tax = substr($tax, 7); if(isset($_REQUEST[$tax]) AND $_REQUEST[$tax] != NULL) { $args['tax_query'][] = array('taxonomy' => "aol_ad_$tax", 'terms' => array((int)$_REQUEST[$tax])); } } //query_posts( $args ); //global $post; $args = apply_filters('aol_pre_get_posts', $args); $posts = get_posts($args); add_filter( 'excerpt_more', array($this, 'aol_excerpt_more') ); //$show_filter = get_option('aol_show_filter', 1); $filters = aol_ad_cpt_filters($a['type']); $filter_count = count($filters); ob_start(); do_action('aol_before_shortcode', $a, $filters); if(!(empty($filters) OR $a['filter'] == 'no' )){ echo '
    '; //Started well echo '
    '; echo '
    '; //1st row Started' //$col_count = $filter_count < 4 ? 12/($filter_count+1) : 3; $col_count = floor(12/($filter_count)); //$offset = in_array($col_count, array(5,7,9)) ? 'aol-md-offset-1' : NULL; //elseif($col_count == 5) $i = 0; foreach ($filters as $key => $filter){ //Sanitizing Key beforehand. $key = sanitize_key($key); //$Fclass = ((isset($_REQUEST['filter']) AND $_REQUEST['filter']) == 'aol_ad_'. $key) ? 'selected' : NULL; echo '
    '; echo ''; echo '
    '; $i++; } echo '
    '; //Ended 1st row echo '
    '; //2nd row started echo '
    '; echo '
    '; echo '
    '; //2nd row closed, form closed echo '
    '; //Ended Well } if(!empty($posts)): if($a['display'] == 'list') echo "<$lstyle>"; do_action('aol_before_archive'); echo '
    '; $post_count = 0; foreach($posts as $post): setup_postdata($post); $wrapper_inner_classes = apply_filters('aol_ad_inner_wrapper_classes', array('panel', 'panel-default'), $post); /* Getting Post Status*/ $timestamp = (int)get_post_meta($post->ID, '_aol_ad_closing_date', true); $timestamp = apply_filters('aol_ad_closing_date', $timestamp, $post); if( $timestamp === 0 OR $timestamp > time() ) $status = 'open'; else $status = 'closed'; /* END Getting Post Status*/ $terms = get_terms(array('object_ids' => $post->ID, 'hide_empty' => TRUE, 'taxonomy' => aol_sanitize_taxonomies($filters))); if($a['display'] == 'list'): echo '
  • '. apply_filters('aol_shortcode_list', ''.$post->post_title.'').'
  • '; else: do_action('aol_before_ad', $post_count, $post->post_count); echo '
    '; echo '
    '; foreach($order as $index): switch ($index): case 'title': $output = apply_filters('aol_shortcode_title', $post->post_title, $post, $title_classes); echo '
    '.$output.'
    '; break; case 'body_start' : echo '
    '; do_action('aol_shortcode_before_body'); break; case 'thumbnail' : if(has_post_thumbnail($post)) echo get_the_post_thumbnail($post->ID, apply_filters('aol_ad_thumbnail_size', 'thumbnail') , array('class' => implode(' ', $thumb_classes), 'title' => $post->post_title, 'alt' => $post->post_title)); break; case 'meta' : echo apply_filters('aol_ad_meta', NULL, $post); break; case 'body_close': $body = array( 'excerpt' => get_the_excerpt($post), 'readmore' => sprintf( '', get_the_permalink($post), 'fusion-button button read-more btn btn-info', esc_html__( 'Read More', 'ApplyOnline' ) ) ); $body = apply_filters('aol_shortcode_body', $body, $post); do_action('aol_shortcode_before_body', $post); if($a['excerpt'] != 'no') echo '

    '. sanitize_text_field( $body['excerpt'] ).'

    '; echo '
    '; echo apply_filters('aol_shortcode_button', $body['readmore']); do_action('aol_shortocde_after_body', $post); echo "
    "; //Boody Wrapper break; case 'footer': if(empty($terms) or empty($filters)) break; echo '
    '; echo apply_filters('aol_shortcode_footer', $this->aol_filters_terms($terms, $post->ID), $post, $terms); echo "
    "; break; endswitch; endforeach; echo "
    "; //Closing inner & outer wrapers. do_action('aol_after_ad', $post_count, $post->post_count); if($a['display'] == 'list') echo ""; endif; //End aol display check $post_count++; endforeach; echo "
    "; //Outer Wrapper do_action('aol_after_archive', $post); else: echo get_option('aol_not_found_alert', 'Sorry, we could not find what you were looking for.'); endif; wp_reset_postdata(); $html = apply_filters('aol_shortcode', ob_get_clean()); return '
    '.$html.'
    '; } function aol_filters($atts){ //@ad support for all ad types. //if(!is_singular('aol_ad')) return; $a = shortcode_atts( array( 'style' => 'csv', 'ad' => 0, ), $atts ); if(empty($a['ad'])){ global $post; $post_id = $post->ID; } else { $post_id = (int)$a['ad']; } $filters = aol_ad_cpt_filters(get_post_type()); $terms = get_terms(array('object_ids' => $post_id, 'hide_empty' => TRUE, 'taxonomy' => aol_sanitize_taxonomies($filters))); ob_start(); echo '
    ' ; echo $this->aol_filters_terms($terms, $post_id); echo '
    '; return ob_get_clean(); ob_start(); $terms = get_terms(array('object_ids' => $post_id, 'orderby' => 'term_group', 'hide_empty' => TRUE, 'taxonomy' => aol_sanitize_taxonomies($filters))); echo '
    ' ; if( !(empty($terms) or empty($filters)) ): $tax = NULL; foreach ($terms as $term){ $title = NULL; $separator = ', '; if($tax != $term->taxonomy) { $taxObj = get_taxonomy($term->taxonomy); $pad = empty($tax) ? NULL : '  '; $title = $pad.'

    '.$taxObj->label.':

    '; } echo $title.''.$term->name.$separator.''; $tax = $term->taxonomy; } endif; echo '
    '; return ob_get_clean(); } function aol_filters_terms($terms, $post_id){ do_action('aol_shortcode_before_terms', $post_id); $tax = $output = NULL; $terms = $this->organize_post_terms($terms); foreach ($terms as $term){ $title = NULL; $separator = ', '; if($tax != $term->taxonomy) { $pad = empty($tax) ? NULL : '  '; $taxObj = get_taxonomy($term->taxonomy); $span = is_null($tax) ? '' : ''; $title = $span.$pad.''.esc_html__($taxObj->label, 'ApplyOnline').': '; } $output.= $title.$term->name.$separator; $tax = esc_html__($term->taxonomy, 'ApplyOnline'); } $output.= ''; do_action('aol_shortcode_after_terms', $post_id); return $output; } function organize_post_terms($terms_obj){ $terms = new stdClass(); $sort = array(); foreach($terms_obj as $key => $term){ $sort[$key] = $term->taxonomy; } asort($sort); $keys = array_keys($sort); $new_obj = array(); foreach($keys as $key){ array_push($new_obj, $terms_obj[$key]); } return $new_obj; } function aol_excerpt_more( $more ) { return '....'; } //@todo Form generated with this shortcode may not submit & generate error: "Your form could not submit, Please contact us" function aol_form( $atts ){ global $post; $id = is_singular('aol_ad') ? $post->ID: NULL; $a = shortcode_atts( array( //Check if shortcode is called on the Ads Page, ID is not required in that case. //@todo extend post type to all ad types. 'id' => $id, ), $atts ); if(isset($a['id'])) return aol_form($a['id']); } /* * @todo: this function should print complete ad with application form. */ function aol_ad( $atts ) { $a = shortcode_atts( array( 'id' => NULL, ), $atts ); if(isset($a['id'])) { $id = $a['id']; $post = get_post($id); return $post->post_content. aol_form($a['id']); } } function aol_features($atts){ $a = shortcode_atts( array( 'style' => 'table', ), $atts ); return aol_features($a['style']); } } /** * This class is responsible to handle Ajax requests. * * * @since 1.0 * @package AjaxHandler * @author Farhan Noor **/ class Applyonline_AjaxHandler{ /* * Upload meta, after a successfull file upload. */ var $uploads; public function __construct() { add_action( 'wp_ajax_aol_app_form', array($this, 'aol_save_form') ); add_action( 'wp_ajax_nopriv_aol_app_form', array($this, 'aol_save_form') ); add_filter( 'aol_form_errors', array($this, 'file_uploader'), 10,3 ); //Call file uploader when form is being processed. } function upload_path($uploads){ $subdir = apply_filters('aol_upload_folder', 'applyonline'); //$default = wp_upload_dir(); $default['basedir']; $aol_upload_path = get_option('aol_upload_path'); $uploads['path'] = wp_normalize_path($uploads['basedir'] . '/' . $subdir); $uploads['subdir'] = wp_normalize_path( '/' . $subdir); $uploads['url'] = $uploads['baseurl']. '/' . $subdir; if(!empty($aol_upload_path)){ $uploads['basedir'] = $aol_upload_path; $uploads['path'] = wp_normalize_path($aol_upload_path . '/' . $subdir); } return $uploads; } function file_uploader($errors, $post, $files){ if(empty($files)) return $errors; //If no files are being uploaded, just quit. $upload_overrides = array( 'test_form' => false ); /*Initialixing Variables*/ //$errors = new WP_Error(); $error_assignment = null; $uploads = array(); $user = get_userdata(get_current_user_id()); if ( ! function_exists( 'wp_handle_upload' ) ) { require_once( ABSPATH . 'wp-admin/includes/file.php' ); } foreach($files as $key => $val): if(empty($val['name'])) continue; $field = get_post_meta($post['ad_id'], $key, TRUE); if( isset($field['allowed_file_types']) AND !empty($field['allowed_file_types']) ){ $allowed_types = str_replace(' ', '', $field['allowed_file_types']); } else{ $allowed_types = str_replace(' ', '', get_option('aol_allowed_file_types')); } //Check if single File Type or multiple, if multiple convert it to an array. $allowed_types = strstr($allowed_types, ',') == FALSE ? array($allowed_types) : explode(',', $allowed_types ); $upload_size = empty($field['allowed_size']) ? get_option_fixed('aol_upload_max_size', 1) : $field['allowed_size']; $max_upload_size = $upload_size*1048576; //Multiply by KBs if($max_upload_size < $val['size']){ $errors->add('max_size', sprintf(esc_html__( '%s is oversized. Must be under %s MB', 'ApplyOnline' ), $val['name'] , $upload_size)); } /* Check File Size */ $file_type_match = 0; $filetype = wp_check_filetype( $val['name'] ); $file_ext = strtolower($filetype['ext']); if( !in_array($file_ext, $allowed_types) ) $errors->add('file_type', sprintf(esc_html__( 'Invalid file %1$s. Allowed file types are: %2$s', 'ApplyOnline' ), $val['name'], implode (',', $allowed_types))); $errors = apply_filters('aol_before_file_upload_errors', $errors); if(empty($errors->errors)){ do_action('aol_before_file_upload', $key, $val, $post); add_filter('upload_dir', array($this, 'upload_path')); //Change upload path. $movefile = wp_handle_upload( $val, $upload_overrides ); if ( $movefile && ! isset( $movefile['error'] ) ) { $uploads[$key] = $movefile; $uploads[$key]['name'] = $val['name']; //update_user_meta(get_current_user_id(), $key, $movefile['url'] ); } else { /** * Error generated by _wp_handle_upload() * @see _wp_handle_upload() in wp-admin/includes/file.php */ $errors->add('file_move', $val['name'].': '.$movefile['error']); } } endforeach; //return array('errors' => $errors, 'uploads' => $uploads); $this->uploads = $uploads; return $errors; } /** * The function processes and saves application form info in the database. */ public function aol_save_form( $form_data = NULL ){ if( empty($form_data) ) $form_data = $_POST; $nonce = $form_data['wp_nonce']; if( !wp_verify_nonce($nonce, 'the_best_aol_ad_security_nonce') /*and (int)get_option('aol_nonce_is_active', 1) == 1*/ ){ $response = array( 'reason' => 'Session Expired', 'message' => esc_html__( 'Session Expired, please refresh this page and try again. If problem presists, please report this issue through Contact Us page. Thanks', 'ApplyOnline' ) ); $this->response($response, 401); } $app_field = $app_data = array(); /*Initializing Variables*/ $errors = new WP_Error(); $error_assignment = null; //Check for required fields //Get parent ad value for which the application is being submitted. $ad_id = (int)$form_data['ad_id']; //@todo: Save transcript in json/serialized format as one postmeta field instead of seperate field for each form field for ad. $transcript = $ad_transcript = get_post_meta($ad_id, '', TRUE); //Remove unnecessary array elements from the parent ad array. foreach($transcript as $key => $val): $key = sanitize_key($key); if( substr($key, 0, 9) != '_aol_app_' ){ unset($transcript[$key]); } else{ //$transcript[$key] = apply_filters('aol_form_field_before_validation', maybe_unserialize( $val[0] ), $key, $val, $form_data[$key]); $transcript[$key] = maybe_unserialize( $val[0] ); } endforeach; $form = apply_filters('aol_form_for_app_validation', $transcript, $form_data, $_FILES); foreach($form as $key => $val): $key = sanitize_key($key); //Excludes separator & paragraph from validation & verification. if(in_array($val['type'], array('separator', 'seprator', 'paragraph'))) continue; //Support for previous versions if(!isset($val['label'])) $val['label'] = str_replace('_',' ', substr($key, 9)); //eMail validation. if($val['type'] == 'email'){ if(!empty($form_data[$key]) and is_email($form_data[$key])==FALSE) $errors->add('email', sprintf(esc_html__('%s is invalid.', 'ApplyOnline'), '"'.$val['label'].'"')); } //File validation & verification. if(isset($val['required']) AND $val['type'] == 'file'){ //if(!isset($_FILES[$key]['name'])) $errors->add('file', sprintf(esc_html__('%s is not a file.', 'ApplyOnline'), str_replace('_',' ', substr($key, 9)))); if((int)$val['required'] == 1 and empty($_FILES[$key]['name'])) $errors->add('required', sprintf(esc_html__('%s is required.', 'ApplyOnline'), '"'.$val['label'].'"')); } //chek required fields for non File Fields. if( isset($val['required']) AND (int)$val['required'] == 1 and $val['type'] != 'file'){ $form_data[$key] = is_array($form_data[$key]) ? array_map('sanitize_text_field', $form_data[$key]) : sanitize_textarea_field($form_data[$key]); if(empty($form_data[$key])) $errors->add('required', sprintf (esc_html__('%s is required.', 'ApplyOnline'), '"'.$val['label'].'"') ); } endforeach; //Deprictated since 2.2.2. Will be deleted soon. Use aol_app_final_fields hook instead $app_data = apply_filters('aol_app_fields_to_process', $app_data, $form_data); $parent_id = $app_data['ad_id'] = (int)$form_data['ad_id']; //You can hook 3rd party form errors here. $errors = apply_filters('aol_form_errors', $errors, $form_data, $_FILES); $error_messages = $errors->get_error_messages(); //$error_messages = array_merge($error_messages, $upload_error_messages); if( !empty($error_messages ) ){ $error_html = implode('
    ', $error_messages); $response = array( 'reason' => esc_html__('Missing required fields', 'ApplyOnline'), 'message' => $error_html ); //generate the error response. //response output $this->response($response, 406); } //End - Check for required fields $applicant_emails = array(); foreach($form as $key => $val){ if( !isset($form_data[$key]) ) continue; $app_field = maybe_unserialize($val); //normalizing path & sanitizing data before input. $val = is_array($form_data[$key]) ? array_map('sanitize_text_field', $form_data[$key]) : sanitize_textarea_field($form_data[$key]); $key = sanitize_key($key); //Populating array with sanitized keys & values. $app_data[$key] = $val; /*get applicant's email for email notification*/ if( $app_field['type'] == 'email' AND isset($app_field['notify']) AND $app_field['notify']==1 ){ $applicant_emails[] = $val; } } if(isset($this->uploads)){ foreach($this->uploads as $name => $file){ //FILTER_SANITIZE_URL convert french file names to enlgish file names. $args = array('file'=> array('filter' => FILTER_SANITIZE_STRING, 'flags'), 'url' => FILTER_SANITIZE_STRING, 'type' => FILTER_SANITIZE_STRING, 'name' => FILTER_SANITIZE_STRING); $app_data[sanitize_key($name)] = filter_var_array($file, $args); } } $app_data = apply_filters('aol_app_final_fields', $app_data, $form_data); $args = array( 'post_type' => 'aol_application', 'post_parent' => $parent_id, 'post_title' => get_the_title($parent_id), 'post_status' => 'publish', 'tax_input' => array('aol_application_status' => 'pending'), ); do_action('aol_before_app_save', $app_data, $form_data); //Depricated Since 2.5 do_action('aol_before_save_app', $app_data, $form_data); $args = apply_filters('aol_insert_app_data', $args, $app_data); $args['ID'] = $pid = wp_insert_post($args, TRUE); //If post is not saved and generates an error, return error message to the client and terminate further execution. if( is_wp_error($pid) ){ $response = array( 'reason' => 'Something went wrong.', 'message' => $pid->get_error_message() ); // generate the error response. $this->response($response, 400); } foreach($app_data as $key => $val): update_post_meta($pid, $key, $val); $args['meta_input'][$key] = $val; endforeach; $parent = get_post($parent_id); update_post_meta($pid, 'aol_ad_id', $parent->ID); update_post_meta($pid, 'aol_ad_author', $parent->post_author); /* Saving Ad Transcript Since v2.2 */ foreach($ad_transcript as $key => $val){ if( substr($key, 0, 9) == '_aol_app_' OR $key == '_aol_fields_order' ) $ad_transcript[$key] = $val[0]; else unset($ad_transcript[$key]); } update_post_meta($pid, 'ad_transcript', $ad_transcript ); /* End Saving Ad Transcript Since v2.2 */ wp_set_post_terms( $pid, 'pending', 'aol_application_status' ); do_action('aol_after_app_save', $pid, $app_data); //Depricated since 2.5 do_action('aol_after_save_app', $pid, $app_data); //do_action('aol_after_app_save', $pid, $form_data); //Email notification Since v2.2 if( $args['post_status'] != 'draft'){ $this->applicant_email_notification( $pid, $args, $applicant_emails ); $recipients = sanitize_textarea_field( get_post_meta($parent_id, '_recipients_emails', true) ); if( !empty($recipients) ) $recipients = explode("\n", str_replace(array("\r", " "),"", $recipients)); $this->admin_email_notification($recipients, $pid, $args, $this->uploads, $parent->post_author); } $divert_page = get_option('aol_thankyou_page'); empty($divert_page) ? $divert_link = null : $divert_link = get_page_link($divert_page); $message = str_replace('[id]', $pid, get_option_fixed('aol_application_success_alert', esc_html__('Form has been submitted successfully with application id [id]. If required, we will get back to you shortly!', 'ApplyOnline')) ); $response = array( 'divert' => $divert_link, 'hide_form'=>TRUE , 'message'=>$message );// generate the response. $this->response($response); } /** * Application success Email notification for Applicants * * @param type $post_id * @param type $post * @param type $uploads * @return boolean */ function applicant_email_notification($post_id, $post, $emails){ if(empty($emails)) return; $post = (object)$post; $subject = str_replace('[title]', $post->post_title, get_option('aol_success_mail_subject', 'Your application for [title]') ); $headers = aol_from_mail_header(); $attachments = array(); //@todo need a filter hook to modify content of this email message and to add a from field in the message. $message="

    Hi there,

    " ."

    Thank you for showing your interest in the ad: [title]. Your application with id [id] has been received. We will review your application and contact you if required.

    " .sprintf(esc_html__('Team %s'), get_bloginfo('name'))."
    " .site_url()."
    " ."Please do not reply to this system generated message."; $message = str_replace( array('[title]', '[id]'), array($post->post_title, $post->ID), get_option('aol_success_mail_message', $message) ); $aol_email = apply_filters( 'aol_applicant_mail_notification', array('to' => $emails, 'subject' => $subject, 'message' => nl2br($message), 'headers' => $headers), $post_id, $post ); do_action('aol_email_before', array('to' => $emails, 'subject' => $subject, 'message' => nl2br($message), 'headers' => $headers), $post_id, $post); //add_filter( 'wp_mail_content_type', 'aol_email_content_type' ); wp_mail( $aol_email['to'], $aol_email['subject'], $aol_email['message'], $aol_email['headers']); //remove_filter( 'wp_mail_content_type', 'aol_email_content_type' ); do_action('aol_email_after', $emails, $subject, nl2br($message), $headers); return true; } function admin_email_notification($emails, $post_id, $post, $uploads, $post_author ){ $post = (object)$post; //send email alert. $post_url = admin_url("post.php?post=$post_id&action=edit"); if( empty($emails) ){ //Get global recipients $emails_string = sanitize_textarea_field( get_option_fixed('aol_recipients_emails', get_option('admin_email')) ); $emails = explode("\n", str_replace(array("\r", " "),"", $emails_string) ); } $emails = array_map('sanitize_email', $emails); $author_notification = get_option('aol_ad_author_notification'); if( $author_notification ){ $author = get_userdata( $post_author ); if( !in_array($author->user_email, $emails) ) array_push($emails, $author->user_email); } /* // Get the site domain and get rid of www. $sitename = strtolower( $_SERVER['SERVER_NAME'] ); if ( substr( $sitename, 0, 4 ) == 'www.' ) { $sitename = substr( $sitename, 4 ); } $from_email = 'do-not-reply@' . $sitename; $headers = array('Content-Type: text/html', "From: ". wp_specialchars_decode(get_bloginfo('name'))." <$from_email>"); * */ //$subject = sprintf(esc_html__('New application for %s', 'ApplyOnline'), sanitize_text_field($post->post_title)); $subject = str_replace( array('[id]' ,'[title]'), array($post->ID ,$post->post_title), get_option('aol_admin_mail_subject', 'New application [id] for [title]') ); $headers = aol_from_mail_header(); //@todo need a filter hook to modify content of this email message and to add a from field in the message. $message= '

    '.esc_html__('Hi,', 'ApplyOnline').'

    ' .'

    ' .sprintf(esc_html__('A new application for the ad %1$s received on %2$s website.', 'ApplyOnline'), ''.$post->post_title.'', ''.get_bloginfo('name').'') .'

    ' .sprintf(esc_html__('%sClick Here%s to access this application.', 'ApplyOnline'),'', '') .'

    ' .esc_html__('Thank you', 'ApplyOnline') .'

    ----
    ' .sprintf(esc_html__('This is an automated response from Apply Online plugin on %s', 'ApplyOnline'), ''.get_bloginfo('name').'') .'

    '; $message = apply_filters('aol_email_notification', $message, $post_id); //Deprecated. $aol_email = apply_filters( 'aol_email', array( 'to' => $emails, 'subject' => $subject, 'message' => $message, 'headers' => $headers, 'attachments' => array() ), $post_id, $post, $uploads ); do_action('aol_email_before', array('to' => $emails, 'subject' => $subject, 'message' => nl2br($message), 'headers' => $headers), $post_id, $post, $uploads); wp_mail( $aol_email['to'], $aol_email['subject'], $aol_email['message'], $aol_email['headers'], $aol_email['attachments']); do_action('aol_email_after', $emails, $subject, nl2br($message), $headers); return true; } /** * This function returns REST or AJAX response back to the client and terminatex further execution of the calling function. * * @param array $result The actual data that is being returned to the client. It is the body of the HTTP response, containing the information that needs to be received from the server * @param int $code HTTP response status code. Default is 200 successful. If $result variable is empty, it will return 404 not found status code. * @param string $header HTTP header to be sent to the requesting client. * * @return NULL NONE This function terminates further execution hence it retunrs nothing. */ function response( $result = [], $code = 200, $header = "Content-type:application/json" ){ if( empty($result) ) $code = 404; http_response_code($code); header($header); exit( json_encode($result) ); } }public/index.php000064400000000032150211775550007645 0ustar00 70 && characterCount < 90) { current.css('color', '#6d5555'); } if (characterCount > 90 && characterCount < 100) { current.css('color', '#793535'); } if (characterCount > 100 && characterCount < 120) { current.css('color', '#841c1c'); } if (characterCount > 120 && characterCount < 139) { current.css('color', '#8f0001'); } if (characterCount >= 140) { maximum.css('color', '#8f0001'); current.css('color', '#8f0001'); theCount.css('font-weight','bold'); } else { maximum.css('color','#666'); theCount.css('font-weight','normal'); } }); /*Ends Textarea Charchter Counter*/ /*Submit Application Form*/ $( ".aol_app_form" ).submit(function(){ aolSubmitForm(event); }); /* $( ".aol_app_form" ).submit(function(){ var datastring = new FormData(document.getElementById("aol_app_form")); var request = $.ajax({ url: aol_public.ajaxurl, type: 'POST', dataType: 'json', data: datastring, //async: false, contentType: false, processData: false, beforeSend: function(){ $('#aol_form_status').removeClass(); $('#aol_form_status').html(''); $('#aol_form_status').addClass('alert alert-warning'); $(".aol-form-button").prop('disabled', true); } }); request.done( function(response, type, data){ $(document).trigger('afterAppSubmit', response); //Custom event on ajax completion if(response['success']==true){ $('#aol_form_status').removeClass(); $('#aol_form_status').addClass('alert alert-success'); $('#aol_form_status').html(response['message']); $(".aol-form-button").prop('disabled', false); if(response['hide_form']==true) $('.aol_app_form').slideUp(); //Show a sliding effecnt. //Divert to thank you page. if(response.divert != null){ var page = response.divert; window.location.href = stripslashes(page); } } }); request.fail( function(xhr, type, errorText){ let response = JSON.parse(xhr.responseText); $('#aol_form_status').removeClass(); $('#aol_form_status').addClass('alert alert-danger'); $('#aol_form_status').html('

    '+errorText+'

    '+response['message']); $(".aol-form-button").prop('disabled', false); }); return false; }); */ //Separator Code $('.aol_multistep').click(function(){ $('fieldset').hide(); var load = $(this).data('load'); if( load == 'next' ) $(this).parent("fieldset").next("fieldset").show(); else if( load == 'back' ) $(this).parent("fieldset").prev("fieldset").show(); else $(this).parent("fieldset").previous("fieldset").show(); return false; }); /* Progress Bar*/ var fields_required = $('.aol-form-group.required'); var fields_count = fields_required.length; if(fields_count > 0) { $('.progress-wrapper').show(); update_progress_bar($, fields_required, fields_count); $(fields_required).find('input, textarea').change(function(){ update_progress_bar($, fields_required, fields_count); }); } /*End Progress Bar*/ }) })( jQuery ); function update_progress_bar($, field, fields_count){ var filled = 0; $(field).each(function(){ //If child input field is a checkbox or radio. if( $(this).find('input').attr('type') == 'checkbox' || $(this).find('input').attr('type') == 'radio' ){ if($(this).find('input').is(':checked')) { // zero-length string AFTER a trim filled++; } } else{ if($.trim( $(this).find('input, textarea').val() ).length ) { // zero-length string AFTER a trim filled++; } } }); filled_pecentage = (filled/fields_count)*100; $('.aol-progress-count').css('width',filled_pecentage+'%'); $('.aol-progress-counter').text(filled+'/'+fields_count); //$('.aol_progress').val(filled+'/'+fields_count); } async function aolSubmitForm( event ) { if(!aolEmpty(aol_public.consent_text)){ if ( window.confirm(aol_public.consent_text) == false ) return; } event.preventDefault(); const submitButton = document.getElementById('aol_app_submit_button'); const statusBar = document.getElementById('aol_form_status'); const aolForm = event.target; //event.target.setAttribute('disabled', 'disabled'); submitButton.setAttribute('disabled', 'disabled'); statusBar.classList.remove('alert-danger'); //May be trying again after errors. statusBar.classList.add('alert'); statusBar.classList.add('alert-warning'); statusBar.innerHTML = ''; const formData = new FormData(document.getElementById("aol_app_form")); //formData.append('note', 'hello_world'); const response = await fetch(aol_public.ajaxurl, { method: 'POST', body: formData, headers: {'Accept': 'application/json'} }); const data = await response.json(); let message = !aolEmpty(data['message']) ? data['message'] : 'Something went wrong. Please try again or contact support.'; if( response.status == 200 ){ statusBar.classList.remove('alert-warning'); statusBar.classList.add('alert-info'); statusBar.innerHTML = message; if(data['hide_form'] == true){ aolForm.classList.toggle('hideout'); } //Show a sliding effecnt. //Divert to thank you page. if(data.divert == true){ var page = response.divert; window.location.href = stripslashes(page); } } else { statusBar.classList.remove('alert-warning'); statusBar.classList.add('alert-danger'); statusBar.innerHTML = '
    '+response.statusText+'
    '+message; submitButton.removeAttribute('disabled'); } } function stripslashes (str) { return (str + '').replace(/\\(.?)/g, function (s, n1) { switch (n1) { case '\\': return '\\'; case '0': return '\u0000'; case '': return ''; default: return n1; } }); } function limitText(limitField, limitNum) { if (limitField.value.length > limitNum) { limitField.value = limitField.value.substring(0, limitNum); } } function aolEmpty(e) { switch (e) { case "": case 0: case "0": case null: case false: case undefined: return true; default: return false; } }public/js/cct_embed.min.js000064400000004531150211775550011476 0ustar00function cct_getWordStats(e){var t=[],n=e.trim();t.num_character=e.trim().length;var c=n.split(/\s+/).join("");t.num_character_wo_spaces=c.length,t.num_paragraph=0,n.length>0&&(t.num_paragraph=n.split(/\n+/).length);var r=n.replace(/(\w)[-_'](\w)/gi,"$10$2");r=r.replace(/(\d)[,.](\d)/gi,"$10$2"),t.num_sentence=0,r.length>0&&(t.num_sentence=r.replace(/"/gi,"").split(/[.?!:\n]+/).length);var _=r.split(/[\s\n]+/);if(t.num_word=0,r.length>0&&(t.num_word=_.length),t.avg_sentence_length=0!=t.num_sentence?Math.round(t.num_word/t.num_sentence*10)/10:0,0!=t.num_word){var a=c.length/t.num_word;t.avg_word_length=Math.round(10*a)/10}else t.avg_word_length=0;var d=[];t.num_unique_word=0,t.percentage_num_unique_word=0;for(var s=0;s<_.length;s++)d[_[s]]=1;var u=Object.keys(d).length;return t.num_unique_word=Object.keys(d).length,percentage_unique_words=Math.round(100*u/t.num_word),t.percentage_num_unique_word=percentage_unique_words,t}function cct_display_counts(){var e=document.getElementById("cct_embed_input_text").value;wordStats=cct_getWordStats(e),document.getElementById("cct_embed_result").innerHTML=""+wordStats.num_character+" characters | "+wordStats.num_character_wo_spaces+" characters w/o spaces | "+wordStats.num_word+" words | "+wordStats.num_sentence+" sentences | "}var cct_powered_by=document.getElementById("cct_powered_by");cct_powered_by.setAttribute("style","font-size:small;float:right;");var cct_embed_result=document.getElementById("cct_embed_result");cct_embed_result.setAttribute("style","margin:5px;text-align:center;");var cct_embed_input_text=document.getElementById("cct_embed_input_text");cct_embed_input_text.setAttribute("style","width: 100%;-webkit-box-sizing: border-box;-moz-box-sizing: border-box; box-sizing: border-box;");var cct_embed_result=document.getElementById("cct_embed_result");cct_embed_result.innerHTML="0 characters | 0 characters w/o spaces | 0 words | 0 sentences";var cct_textarea=document.getElementById("cct_embed_input_text");cct_textarea.value="",cct_textarea.addEventListener&&(cct_textarea.addEventListener("input",cct_display_counts,!1),cct_textarea.addEventListener("textInput",cct_display_counts,!1),cct_textarea.addEventListener("textinput",cct_display_counts,!1)),cct_textarea.attachEvent&&cct_textarea.attachEvent("onpropertychange",cct_display_counts);apply-online.php000064400000004176150211775550007704 0ustar00run(); } run_applyonline();storage/index.html000064400000000032150211775550010210 0ustar00Kangaroos cannot jump herestorage/.htaccess000064400000000304150211775550010013 0ustar00 AddType application/octet-stream .wpress DirectoryIndex index.php Options -Indexes storage/robots.txt000064400000000112150211775550010263 0ustar00User-agent: * Disallow: /applyonline/ Disallow: /wp-content/applyonline/storage/index.php000064400000000032150211775550010033 0ustar00Kangaroos cannot jump herestorage/web.config000064400000000460150211775550010164 0ustar00 images/loading.gif000064400000004761150211775550010135 0ustar00GIF89aర莎Ȝبvvvhhh!Created with ajaxload.info!! NETSCAPE2.0, $AeZ <䠒ÌQ46<A ßHa:ID0Fa\xG3! O:-RjTJ*  t ~" ds]  )t-"i;H>nQg]_* R3 GI? ˴v$ýj3!!, $0eZy0q PУW )";qX^D50 Ո%`rJ{ 1$ʈ!!, $@e6$Ơ` 3*=  P\"F`P-d5V"2|?n"!( )e4xyc?   3 #wyJ l% o^[b_0 V T[0m $4>'VZ c3$X%!!, $`e:D3 H0,'j0Qs L(2HMj#ȉB \Oi`u=YEVL=I  > suI WJm| \"_b0 BcV"d]*K1" H|@B?I4# S$-||!!, $4ea:D hI /K$W- 0(`3F=pf@tQ  {f~*yS*mg) enu E^Z^ g@ kw(b& -w#" xW"t ##%U$`to!!, $4ea:* 1v/Kdzk#  F Y" % E  Cb AI4$ (z:2 mI Ll## F##>F!! , $4ea:* 1v/KdVtKG227D"$)Qqp8 y l |~6zw2j# F " % VC ]6a$ Q :2 \  EF I&x "͓F4$]#x!! , $4eZi䠒J16e E,C\3 ^3[ S|?!;class-addons-update.php000064400000007503150211775550011125 0ustar00current_version = $current_version; $this->update_path = $update_path; // Set the License $this->license_user = $license_user; $this->license_key = $license_key; // Set the Plugin Slug $this->plugin_slug = $plugin_slug; list ($t1, $t2) = explode( '/', $plugin_slug ); $this->slug = str_replace( '.php', '', $t2 ); // define the alternative API for updating checking add_filter( 'pre_set_site_transient_update_plugins', array( &$this, 'check_update' ) ); // Define the alternative response for information checking add_filter( 'plugins_api', array( &$this, 'check_info' ), 10, 3 ); } /** * Add our self-hosted autoupdate plugin to the filter transient * * @param $transient * @return object $ transient */ public function check_update( $transient ){ if ( empty( $transient->checked ) ) { return $transient; } // Get the remote version $remote_version = $this->getRemote('version'); // If a newer version is available, add the update if ( version_compare( $this->current_version, $remote_version->new_version, '<' ) ) { $obj = new stdClass(); $obj->slug = $this->slug; $obj->new_version = $remote_version->new_version; $obj->url = $remote_version->url; $obj->plugin = $this->plugin_slug; $obj->package = $remote_version->package; $obj->tested = $remote_version->tested; $transient->response[$this->plugin_slug] = $obj; } return $transient; } /** * Add our self-hosted description to the filter * * @param boolean $false * @param array $action * @param object $arg * @return bool|object */ public function check_info($obj, $action, $arg){ if ( ($action=='query_plugins' OR $action=='plugin_information') AND isset($arg->slug) AND $arg->slug === $this->slug) { return $this->getRemote('info'); } return $obj; } /** * Return the remote version * * @return string $remote_version */ public function getRemote($action = ''){ $params = array( 'body' => array( 'action' => $action, 'license_user' => $this->license_user, 'license_key' => $this->license_key, 'addon' => $this->slug, ), ); // Make the POST request $request = wp_remote_post($this->update_path, $params ); // Check if response is valid if ( !is_wp_error( $request ) || wp_remote_retrieve_response_code( $request ) === 200 ) { return @unserialize( $request['body'] ); } return false; } }index.php000064400000000032150211775550006367 0ustar00 */ class Applyonline_i18n { /** * The domain specified for this plugin. * * @since 1.0.0 * @access private * @var string $domain The domain identifier for this plugin. */ private $domain; /** * Load the plugin text domain for translation. * * @since 1.0.0 */ public function load_plugin_textdomain() { load_plugin_textdomain( $this->domain, false, dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/' ); } /** * Set the domain equal to that of the specified domain. * * @since 1.0.0 * @param string $domain The domain that represents the locale of this plugin. */ public function set_domain( $domain ) { $this->domain = $domain; } } includes/class-applyonline-activator.php000064400000042205150211775550014525 0ustar00 */ class Applyonline_Activator { static function dependencies(){ //Register CPT here to proper Flush Rules. $slug = get_option_fixed('aol_slug', 'ads'); register_post_type('aol_ad', array('has_archive' => true, 'rewrite' => array('slug'=> $slug))); $types = aol_ad_types(); foreach($types as $key => $val){ register_post_type('aol_'.$key, array( 'has_archive' => true, 'public' => true, 'rewrite' => array('slug' => sanitize_key($val['plural'])), )); } //Registering taxonomies (Ad Filters) to work at activation. //$filters = aol_ad_filters(); $filters = array( 'category' => array('singular' => __('Category', 'ApplyOnline'), 'plural' => __('Categories', 'ApplyOnline')), 'type' => array('singular' => __('Type', 'ApplyOnline'), 'plural' => __('Types', 'ApplyOnline')), 'location' => array('singular' => esc_html__('Location', 'ApplyOnline'), 'plural' => esc_html__('Locations', 'ApplyOnline')) ); foreach($filters as $key => $filter){ $val = register_taxonomy('aol_ad_'.sanitize_key($key), 'aol_ad'); } //Register Application statuses. register_taxonomy('aol_application_status', 'aol_application'); flush_rewrite_rules(); } /** * Short Description. (use period) * * Long Description. * * @since 1.0.0 */ public static function activate() { //Run dependencies before terms insertion. self::dependencies(); wp_insert_term( 'Shortlisted', 'aol_application_status', array( 'description'=> 'Shortlisted Applications' ) ); wp_insert_term( 'Rejected', 'aol_application_status', array( 'description'=> 'Rejected Applications' ) ); wp_insert_term( 'Pending', 'aol_application_status', array( 'description'=> 'Pending Applications' ) ); wp_insert_term( 'Management', 'aol_ad_category', array( 'slug'=>'admin', 'description'=> 'Ads relevent to management department',) ); wp_insert_term( 'Finance', 'aol_ad_category', array( 'slug'=>'finance', 'description'=>'Ads relevent to finance department', ) ); wp_insert_term( 'IT', 'aol_ad_category', array( 'slug'=>'it', 'description'=> 'Ads relevent to IT department') ); wp_insert_term( 'Full Time', 'aol_ad_type', array('slug' => 'full-time', 'description'=>'Ads for full time work',) ); wp_insert_term( 'Part Time', 'aol_ad_type', array('slug' => 'part-time', 'description'=> 'Ads for part time work' ) ); wp_insert_term( 'Weekend Only', 'aol_ad_type', array('slug' => 'weekend', 'description'=>'Ads for work on weekends') ); wp_insert_term( 'Internship', 'aol_ad_type', array('slug' => 'internship', 'description'=> 'Ads for internship work' ) ); wp_insert_term( 'Morning', 'aol_ad_type', array('slug' => 'morning', 'description'=> 'Ads for morning session' ) ); wp_insert_term( 'Evening', 'aol_ad_type', array('slug' => 'evening', 'description'=> 'Ads for evening session' ) ); wp_insert_term( 'Islamabad', 'aol_ad_location', array('slug' => 'islamabad', 'description'=>'Ads for Islamabad') ); wp_insert_term( 'New Delhi', 'aol_ad_location', array('slug' => 'new-delhi', 'description'=>'Ads for New Delhi') ); wp_insert_term( 'London', 'aol_ad_location', array('slug' => 'london', 'description'=> 'Ads for London') ); wp_insert_term( 'Washington D.C.', 'aol_ad_location', array('slug' => 'washington-D-C.', 'description'=>'Ads for Washington D.C.') ); wp_insert_term( 'Ankara', 'aol_ad_location', array('slug' => 'ankara', 'description'=>'Ads for Ankara') ); wp_insert_term( 'London', 'aol_ad_location', array('slug' => 'London', 'description'=>'Ads for London') ); wp_insert_term( 'Pretoria', 'aol_ad_location', array('slug' => 'pretoria', 'description'=>'Ads for Pretoria') ); wp_insert_term( 'Ottawa', 'aol_ad_location', array('slug' => 'ottawa', 'description'=>'Ads for Ottawa') ); wp_insert_term( 'Sydney', 'aol_ad_location', array('slug' => 'sydney', 'description'=>'Ads for Sydney') ); wp_insert_term( 'Dhaka', 'aol_ad_location', array('slug' => 'dhaka', 'description'=>'Ads for Dhaka') ); wp_insert_term( 'Brussels', 'aol_ad_location', array('slug' => 'brussels', 'description'=>'Ads for Brussels') ); wp_insert_term( 'Berlin', 'aol_ad_location', array('slug' => 'berlin', 'description'=>'Ads for Berlin') ); wp_insert_term( 'Jakarta', 'aol_ad_location', array('slug' => 'jakarta', 'description'=>'Ads for Jakarta') ); wp_insert_term( 'Moscow', 'aol_ad_location', array('slug' => 'moscow', 'description'=>'Ads for Moscow') ); wp_insert_term( 'Moscow', 'aol_ad_location', array('slug' => 'moscow', 'description'=>'Ads for Moscow') ); wp_insert_term( 'Paris', 'aol_ad_location', array('slug' => 'paris', 'description'=>'Ads for Paris') ); //Insert default fields. $fields = array ( '_aol_app_name' => array ( 'type' => 'text', 'options' => '', 'label' => 'Name', ), '_aol_app_email' => array ( 'type' => 'email', 'options' => '', 'label' => 'E Mail', ), ); $templates = array ( 'templatedefault' => array ( 'templateName' => 'Default Template', '_aol_app_name' => array ( 'label' => 'Name', 'required' => NULL, 'type' => 'text', 'placeholder' => 'Please provide your full name.', 'limit' => 50 ), '_aol_app_email' => array ( 'label' => 'E Mail', 'required' => NULL, 'type' => 'email', ), '_aol_app_address' => array ( 'label' => 'Address', 'required' => NULL, 'type' => 'text_area', 'description' => 'Please provide your full address', 'placeholder' => '', 'limit' => 300 ), ), ); $types = array( 'ad' => array ( 'filters' => array ('category', 'type', 'location'), 'description' => 'All Ads', 'singular' => 'Ad', 'plural' => 'Ads', )); $default_filters = array( 'category' => array('singular' => __('Category', 'ApplyOnline'), 'plural' => __('Categories', 'ApplyOnline')), 'type' => array('singular' => __('Type', 'ApplyOnline'), 'plural' => __('Types', 'ApplyOnline')), 'location' => array('singular' => esc_html__('Location', 'ApplyOnline'), 'plural' => esc_html__('Locations', 'ApplyOnline')) ); /* * Make sure it do not overwrite previously saved settings on plugin reactivation */ $notices = get_option('aol_dismissed_notices', array()); $notices = array_diff($notices,array('aol')); update_option('aol_dismissed_notices', $notices); if( !get_option('aol_admin_notices') ) update_option('aol_admin_notices', array('aol_fresh_install')); update_option('aol_progress_bar_color', array('foreground' => '#222222', 'background' => '#dddddd', 'counter' => '#888888')); if(!get_option('aol_form_templates')) update_option('aol_form_templates', $templates); if(!get_option('aol_recipients_emails')) update_option('aol_recipients_emails', get_option('admin_email')); if(!get_option('aol_ad_author_notification')) update_option('aol_ad_author_notification', 1); if(!get_option('aol_allowed_file_types')) update_option('aol_allowed_file_types', 'jpg,jpeg,png,doc,docx,pdf,rtf,odt,txt'); if(!get_option('aol_slug')) update_option('aol_slug', 'ads'); if(!get_option('aol_application_success_alert')) update_option('aol_application_success_alert', 'Form has been submitted successfully with application id [id]. If required, we will get back to you shortly!'); if(!get_option('aol_application_failure_alert')) update_option('aol_application_failure_alert', 'Something went wrong and form could not be submitted. Please follow these instruciton:\nTry submitting form again.\sRefresh page and try submitting form again.\nIf problem persists, please report this issue through Contact Us page.'); if(!get_option('aol_required_fields_notice')) update_option('aol_required_fields_notice', 'Fields with (*) are compulsory.'); if(!get_option('aol_app_statuses')) update_option('aol_app_statuses', array('pending', 'rejected', 'shortlisted')); if(!get_option('aol_show_filter')) update_option('aol_show_filter', 0); //if(!get_option('aol_ad_filters')) update_option('aol_ad_filters', array('category', 'type', 'location')); if(!get_option('aol_application_close_message')) update_option('aol_application_close_message', 'We are no longer accepting applications for this ad. Contact us for more details.'); if(!get_option('aol_ad_types')) update_option('aol_ad_types', $types); if(!get_option('aol_ad_filters')) update_option('aol_ad_filters', $default_filters); if(!get_option('aol_mail_footer')) update_option('aol_mail_footer', "\n\nThank you\n".get_bloginfo('name')."\n".site_url()."n------\nPlease do not reply to this system generated message."); if(!get_option('aol_custom_statuses')) update_option('aol_custom_statuses', array('pending' => __('Pending', 'ApplyOnline'), 'rejected'=> __('Rejected', 'ApplyOnline'), 'shortlisted' => __('Shortlisted', 'ApplyOnline'))); if(!get_option('aol_nonce_is_active', 1)) update_option('aol_nonce_is_active', 1); if(!get_option('aol_success_mail_message')) update_option('aol_success_mail_message', "Hi there,\n\nThank you for showing interest in the ad: [title]. Your application with id [id] has been received. We will review your application and contact you if required.\n\n" .sprintf(__('Team %s'), get_bloginfo('name'))."\n" .site_url()."\n" ."Please do not reply to this system generated message."); if(!get_option('aol_success_mail_subject')) update_option('aol_success_mail_subject', 'Your application for [title]'); if(!get_option('aol_admin_mail_subject')) update_option('aol_admin_mail_subject', 'New application [id] for [title]'); self::fix_roles(); self::bug_fix_before_16(); if( !get_option('aol_upload_path') ) update_option('aol_upload_path', realpath(ABSPATH.'../')); } static function fix_roles(){ $caps = array( 'delete_ads' =>TRUE, 'delete_others_ads' =>TRUE, 'delete_published_ads' =>TRUE, 'edit_ads' =>TRUE, 'edit_others_ads' =>TRUE, 'edit_private_ads' =>TRUE, 'edit_published_ads' =>TRUE, 'publish_ads' =>TRUE, 'read_private_ads' =>TRUE, 'delete_applications' =>TRUE, 'delete_others_applications'=>TRUE, 'delete_published_applications' =>TRUE, 'edit_application' =>TRUE, 'read_application' =>TRUE, //'delete_application' =>TRUE, 'edit_applications' =>TRUE, 'edit_others_applications' =>TRUE, 'edit_private_applications' =>TRUE, 'edit_published_applications'=>TRUE, 'publish_applications' =>FALSE, 'create_applications' =>FALSE, 'read_private_applications' =>TRUE, 'manage_ads' =>TRUE, 'manage_ad_terms' => TRUE, 'edit_ad_terms' => TRUE, 'delete_ad_terms' => TRUE, 'assign_ad_terms' => TRUE, //'read' =>TRUE, //'view_admin_dashboard' => TRUE, //WooCommerce fix, the alternate read capability. //'upload_files' => TRUE ); $role = get_role('administrator'); $role->remove_cap( 'edit_ratings' ); //Fixing bug in version 1.9.92 foreach($caps as $cap => $val){ $role->add_cap( $cap, $val ); } //Prepare AOL Manager Role //$caps = array_merge($caps, array('delete_others_ads' =>FALSE,'edit_others_ads' =>FALSE)); $caps['upload_files'] = TRUE; $caps['read'] = TRUE; $caps['view_admin_dashboard'] = TRUE; remove_role('aol_manager'); add_role('aol_manager', 'AOL Manager', $caps); do_action('activate_applyonline'); } /** * This function fixes a bug in versions prior to 1.6 * * The Bug: Application form fields(Post Metas) were serialized twice before save. * * The Fix: Check each app form field and converts it from dual serialized to single serialized value. * * @since 1.6 * */ static function bug_fix_before_16(){ global $wpdb; $fields = $wpdb->get_results("SELECT post_id, meta_key, meta_value FROM $wpdb->posts INNER JOIN $wpdb->postmeta ON ID=post_id WHERE post_type = 'aol_ad' AND meta_key LIKE '_aol_app_%'"); foreach ($fields as $field){ if (is_string(unserialize($field->meta_value))) update_post_meta ($field->post_id, $field->meta_key, unserialize(unserialize($field->meta_value))); } } } includes/class-applyonline-loader.php000064400000011330150211775550013772 0ustar00 */ class Applyonline_Loader { /** * The array of actions registered with WordPress. * * @since 1.0.0 * @access protected * @var array $actions The actions registered with WordPress to fire when the plugin loads. */ protected $actions; /** * The array of filters registered with WordPress. * * @since 1.0.0 * @access protected * @var array $filters The filters registered with WordPress to fire when the plugin loads. */ protected $filters; /** * Initialize the collections used to maintain the actions and filters. * * @since 1.0.0 */ public function __construct() { $this->actions = array(); $this->filters = array(); } /** * Add a new action to the collection to be registered with WordPress. * * @since 1.0.0 * @param string $hook The name of the WordPress action that is being registered. * @param object $component A reference to the instance of the object on which the action is defined. * @param string $callback The name of the function definition on the $component. * @param int Optional $priority The priority at which the function should be fired. * @param int Optional $accepted_args The number of arguments that should be passed to the $callback. */ public function add_action( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) { $this->actions = $this->add( $this->actions, $hook, $component, $callback, $priority, $accepted_args ); } /** * Add a new filter to the collection to be registered with WordPress. * * @since 1.0.0 * @param string $hook The name of the WordPress filter that is being registered. * @param object $component A reference to the instance of the object on which the filter is defined. * @param string $callback The name of the function definition on the $component. * @param int Optional $priority The priority at which the function should be fired. * @param int Optional $accepted_args The number of arguments that should be passed to the $callback. */ public function add_filter( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) { $this->filters = $this->add( $this->filters, $hook, $component, $callback, $priority, $accepted_args ); } /** * A utility function that is used to register the actions and hooks into a single * collection. * * @since 1.0.0 * @access private * @param array $hooks The collection of hooks that is being registered (that is, actions or filters). * @param string $hook The name of the WordPress filter that is being registered. * @param object $component A reference to the instance of the object on which the filter is defined. * @param string $callback The name of the function definition on the $component. * @param int Optional $priority The priority at which the function should be fired. * @param int Optional $accepted_args The number of arguments that should be passed to the $callback. * @return type The collection of actions and filters registered with WordPress. */ private function add( $hooks, $hook, $component, $callback, $priority, $accepted_args ) { $hooks[] = array( 'hook' => $hook, 'component' => $component, 'callback' => $callback, 'priority' => $priority, 'accepted_args' => $accepted_args ); return $hooks; } /** * Register the filters and actions with WordPress. * * @since 1.0.0 */ public function run() { foreach ( $this->filters as $hook ) { add_filter( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] ); } foreach ( $this->actions as $hook ) { add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] ); } } } includes/index.php000064400000000032150211775550010175 0ustar00application_form($post_id); } /** * Use this form to create application form button(s). * * @param array $attributes * @return string attributes */ function get_aol_form_button($id = 'aol_app_submit_button', $title = NULL, $classes = NULL, $atts = array() ){ if( $title == NULL ) $title = esc_attr__('Submit', 'ApplyOnline'); if( $classes == NULL ) $classes = apply_filters('aol_form_button_classes', 'btn btn-primary btn-submit button submit fusion-button button-large aol-form-button '. esc_attr( get_option('aol_submit_button_classes') ) ); $attributes = apply_filters('aol_form_button_attributes', $atts); $attributes = apply_filters('aol_form_button', $attributes);//depricated in the favour of aol_form_button_attributes since 2.2.3.1 $output = NULL; foreach($attributes as $key => $val){ //Sanitized attributes $output .= esc_attr($key).'="'.esc_attr($val).'" '; } return ''; } function aol_form_button($id = 'aol_app_submit_button', $title = NULL, $classes = NULL, $atts = array()){ echo get_aol_form_button($id, $title, $classes, $atts); } /** * Returns array of application form fields. * * @since 1.6 * @access public * @var string $post_id Post id. * @return array Application form fields. */ function aol_form_fields($post_id = 0){ $aol = new AOL_Single_Post_Template(); return $aol->application_form_fields($post_id); } /** * Returns array of application features. * * @since 1.6 * @access public * @var string $post_id Post id. * @return array Application form fields. */ function aol_features($style = 'table'){ $aol = new AOL_Single_Post_Template(); return $aol->ad_features(0, $style); } /** * Returns array of ad features. * * @since 1.6 * @access public * @var string $post_id Post id. * @return array Application form fields. */ function get_aol_ad_features($post_id){ global $post; if(empty($post_id)) $post_id = $post->ID; $raw_fields = get_post_meta($post_id); $fields = array(); $i=0; foreach($raw_fields as $key => $val){ if(substr($key, 0, 13) == '_aol_feature_'){ $fields[$key] = maybe_unserialize($val[0]); // } } return $fields; } /** * Returns array of application form fields in correct order. * * @since 1.6 * @access public * @var string $post_id Post id. * @return array Application form fields. */ function get_aol_ad_post_meta($post_id){ $post_id = (int)$post_id; $form_fields = array(); $keys_order = get_post_meta($post_id, '_aol_fields_order', TRUE); $metas = get_post_meta($post_id); //If fields order is not set in DB then fetch all form fields without order. if(empty($keys_order)){ foreach ($metas as $key => $val){ if(substr($key, 0, 9) == '_aol_app_') $form_fields[$key] = unserialize ($val[0]); } } //Get fields according to field order. else{ foreach ($keys_order as $key){ $form_fields[$key] = unserialize($metas[$key][0]); } } return $form_fields; } /* * Returns Ad types with relevent data. */ function aol_ad_types(){ return get_option_fixed('aol_ad_types', array('ad' => array('singular' => esc_html__('Ad','ApplyOnline'), 'plural' => esc_html__('Ads','ApplyOnline'), 'description' => esc_html__('All Ads','ApplyOnline'), 'filters' => array()))); } /** * Helper function to ad prefix to the post types. * * Marked for removal in favor of aol_add_prefix() * * @param string $value * @return string */ function add_aol_prefix($value){ if(!strpos($value, 'aol_')) $value = 'aol_'.$value; return $value; } /** * Helper function to ad prefix to the post types. * * @param string $value * @return string */ function aol_add_prefix($value){ if(!strpos($value, 'aol_')) $value = 'aol_'.$value; return $value; } /** * This function removes aol_ prefix from the given input. * * Marked for removal. us aol_remove_prefix() instead. * * @param string $value string * @return string string */ function remove_aol_prefix($value){ if(strpos($value, 'aol_') !== FALSE) $value = substr($value, 4); return $value; } /** * This function removes aol_ prefix from the given input. * * @param string $value string * @return string string */ function aol_remove_prefix($value){ if(strpos($value, 'aol_') !== FALSE) $value = substr($value, 4); return $value; } /** * This function returns aol_ prefix * * @param string $value * @param string $key * @return string aol_ */ function aol_ad_prefix(&$value, $key){ if(!strpos('aol_', $value)) $value = 'aol_'.$value; } /** * Returns Registered AOL Ad Types. * * @since 1.8 * This function do not accept any parameters. * @return array Array of ad types */ function get_aol_ad_types(){ $types = aol_ad_types(); $types = array_keys($types); array_walk($types, 'aol_ad_prefix'); return $types; } function aol_manager_capability(){ return 'edit_applications'; } /** * Returns Filters list. It do not accept any parameters. * * Filters are shown on the front-end when [aol] shortcode is used. * * @since 1.7 * * @return array */ function aol_ad_filters(){ $filters = get_option_fixed('aol_ad_filters', array()); if(function_exists('pll_register_string')){ foreach($filters as $filter): pll_register_string('Ad Filters', sanitize_text_field( $filter['singular'] ), 'apply-online' ); endforeach; } return apply_filters('aol_ad_filters', $filters); } function aol_app_statuses(){ $filters = array('pending' => esc_html__('Pending', 'ApplyOnline'), 'rejected'=> esc_html__('Rejected', 'ApplyOnline'), 'shortlisted' => esc_html__('Shortlisted', 'ApplyOnline')); $statuses = array_merge($filters, get_option_fixed('aol_custom_statuses', array())); return apply_filters('aol_app_statuses', $statuses); } /* * Change post status similsar to its terms. * */ function aol_set_object_terms($object_id, $tt_id, $taxonomy){ if($taxonomy == 'added_term_relationship') wp_update_post(array('ID' => $object_id, 'post_status' => $tt_id[0])); } //add_action('set_object_terms','aol_set_object_terms', 10, 3); /* * Return active status of current Application(CPT) * */ function aol_app_statuses_active(){ $statuses = aol_app_statuses(); $active = apply_filters('aol_app_active_statuses', get_option_fixed('aol_app_statuses', $statuses)); foreach ($statuses as $key => $val){ if(!in_array(sanitize_key($key), $active)) unset($statuses[$key]); } return $statuses; } function aol_ad_current_filters(){ $filters = aol_ad_filters(); $set_filters = get_option_fixed('aol_ad_filters', array()); foreach ($filters as $key => $val){ if(!in_array(sanitize_key($key), $set_filters)) unset($filters[$key]); } return $filters; } function aol_ad_cpt_filters($cpt){ $cpt = remove_aol_prefix($cpt); $filters = aol_ad_filters(); $types = get_option_fixed( 'aol_ad_types', array( 'ad' => array( 'singular' => esc_html__('Ad','ApplyOnline'), 'plural' => esc_html__('Ads','ApplyOnline'), 'filters' => array_keys( aol_ad_filters() ) ) ) ); $cpt_filters = isset($types[$cpt]['filters']) ? (array)$types[$cpt]['filters']: array(); //Remove filters that are not sett to the ad. foreach ($filters as $key => $val){ if(!in_array(sanitize_key($key), $cpt_filters)) unset($filters[$key]); } return $filters; } function aol_sanitize_taxonomies($taxonomies){ $tax_keys = array(); foreach($taxonomies as $key => $tax){ $tax_keys[] = 'aol_ad_'.sanitize_key($key); } return $tax_keys; } if ( ! function_exists( 'aol_set_current_menu' ) ) { function aol_set_current_menu( $parent_file ) { global $submenu_file, $current_screen, $pagenow; # Set the submenu as active/current while anywhere in your Custom Post Type (nwcm_news) if ( $current_screen->post_type == 'aol_ad' ) { if ( $pagenow == 'edit-tags.php' or $pagenow == 'term.php' ) { $submenu_file = 'edit-tags.php?taxonomy='.str_replace('edit-', '', $current_screen->id).'&post_type=' . $current_screen->post_type; $parent_file = 'aol-settings'; } } return $parent_file; } add_filter( 'parent_file', 'aol_set_current_menu' ); } function aol_array_check($array){ if(!is_array($array)) $array = array(); return $array; } function aol_sanitize_filters($types){ foreach($types as $key => $type){ $types[$key] = array_merge(array('filters' => null), $type); } return $types; } function aol_email_content_type(){ return 'text/html'; } function aol_links_shortcode( $atts ) { $a = shortcode_atts( array( 'href' => esc_html__('Link is missing', 'ApplyOnline'), 'title' => esc_html__('Title is missing', 'ApplyOnline'), 'target' => '_blank', ), $atts ); return ''.$a['title'].''; //return "foo = {$a['foo']}"; } function aol_form_field_check($fields){ foreach($fields as $field): isset($field) ? $field : NULL; endforeach; } /** * Depricated: Use method aol_form_generator from ApplyOnline_public class. * * @param type $fields * @param int $fieldset * @param type $prepend * @param type $post_id * @return string */ function aol_form_generator($fields, $fieldset = 0, $prepend = NULL, $post_id = 0){ $form_output = NULL; foreach($fields as $field): //$value = isset($field['value']) ? $field['value'] : NULL; $value = isset($field['val']) ? sanitize_textarea_field( $field['val'] ) : NULL; $placeholder = isset($field['placeholder']) ? 'placeholder="'.sanitize_text_field( $field['placeholder'] ).'"' : NULL; $class = isset($field['class']) ? esc_attr( $field['class'] ) : NULL; //Used by Tracker add-on to display saved value. //$value = apply_filters('aol_form_field_value', $value, $field['key'], $field['type'], $post_id); $type = esc_attr($field['type']); $field_key = sanitize_key($field['key']); $required = $attributes = $wrapper_class = NULL; if( isset( $field['required'] ) AND $field['required'] === '1' ){ $required = '*'; $attributes = 'required aria-required="true"'; $class .= ' required'; $wrapper_class = ' required'; } $label = isset($field['label']) ? sanitize_text_field( $field['label'] ) : sanitize_text_field( str_replace('_',' ',$field['key']) ); $description = isset($field['description']) ? sanitize_text_field( $field['description'] ) : NULL; $text = isset($field['text']) ? sanitize_textarea_field( $field['text'] ) : $description; $style = (isset($field['height']) and (int)$field['height'] > 0) ? 'height:'.(int)$field['height'].'px' : NULL; if(isset($field['limit']) AND !empty($field['limit'])){ $limit = (int)$field['limit']; $limit_output = '
    '. strlen($value).'/'.$limit.'
    '; } else { $limit = $limit_output = NULL; } $wrapper_start = '
    '; //do_action('aol_form_before_input_field', $field, $post_id); $wrapper_end = ''.$description.'
    '; switch ($type){ case 'paragraph': //$field['description'] = empty($field['description']) ? $label : $field['description']; add_shortcode('link', 'aol_links_shortcode'); $form_output .= $wrapper_start.'
    '. nl2br($text).'
    '.$wrapper_end; remove_shortcode('link'); break; case 'date': $form_output .= $wrapper_start. ''.$wrapper_end; break; case 'dropdown': $form_output .= $wrapper_start.'
    '.$description.'
    '; break; case 'radio': $form_output .= $wrapper_start. '
    '; $i=0; $selection = !empty($field['preselect']) ? $field['preselect'] : ''; foreach ($field['options'] as $key => $option) { $checked = NULL; if(empty($value) and ($i == 0 and $selection === '1' )) $checked = 'checked' ; elseif($option == $value) $checked = 'checked'; $form_output .= ''; $i++; } $form_output .= '
    '.$wrapper_end; break; case 'checkbox': $form_output .= $wrapper_start. '
    '; $i=0; foreach ($field['options'] as $key => $option) { $checked = NULL; if(!empty($value) AND in_array($option, $value)) $checked = 'checked'; $form_output .= ''; $i++; } $form_output .= '
    '.$wrapper_end; break; /* case 'separator': $is_multi_steps = get_option('aol_multistep'); $hide_section = $back = $multistep_output = NULL; if($is_multi_steps){ if($fieldset > 1) $back = ''; if($fieldset > 0){ $hide_section = 'style="display:none;"'; } } $multistep_output = $back.''; if($fieldset > 0) $form_output.= $multistep_output.''; $form_output.= "
    ".sanitize_text_field($label).''; $form_output.= ''; $fieldset++; break; * */ case 'separator': if($fieldset == 1) $form_output .= '
    '; $form_output .= '
    '.$label.''; $form_output .= ''.$description.''; $fieldset = 1; break; case 'hidden': $form_output .= ''; break; case 'text_area': $form_output .= $wrapper_start. ''.$limit_output.$wrapper_end; break; //case 'text': //case 'email': //case 'file': //case 'number': default: $form_output .= $wrapper_start. ''.$limit_output.$wrapper_end; break; } endforeach; //if($fieldset > 0) $form_output.= '
    '; if($fieldset == 1) $form_output .= ''; return $form_output;//ob_get_clean(); } /* * returns domain name to use into email addresses. */ function aol_get_domain(){ // Get the site domain and get rid of www. $sitename = strtolower( $_SERVER['SERVER_NAME'] ); if ( substr( $sitename, 0, 4 ) == 'www.' ) { $sitename = substr( $sitename, 4 ); } return $sitename; } /** * Returns array of a received application form data. * * @since 1.9.92 * @access public * @var string $post Post Object. * @return array Application data. */ function aol_application_data($post){ $keys = get_post_custom_keys( $post->ID ); if( in_array('ad_transcript', $keys) ){ return aol_application_data_v2($post, $keys); } $keys_order = get_post_meta($post->post_parent, "_aol_fields_order", TRUE); //getting fields order from the order meta, but it may have missed few older form fields. //$keys_common = array_intersect($keys_order, $keys); //Recovering older form fields. $keys = array_merge($keys_order, array_diff($keys, $keys_order)); //Preserving ex application fields that might be changed with ad modification //$keys = array_merge($keys_order, $keys); $parent = get_post_meta( $post->post_parent ); $data = array(); foreach ( $keys as $key ): if ( substr ( $key, 0, 9 ) == '_aol_app_' ){ $val = get_post_meta ( $post->ID, $key, true ); //Support to previuos versions where only URL was saved in the post meta. //if ( !filter_var($val, FILTER_VALIDATE_URL) === false ) $val = ''.esc_html__('View','ApplyOnline').' | '.esc_html__('Download','ApplyOnline').''; if(is_array($val)){ //If the outputs is file attachment if(isset($val['file']) AND isset($val['type'])){ $val = ''.esc_html__('Attachment','ApplyOnline').''; } elseif(isset($val['url']) AND isset($val['type'])){ $val = '"'.esc_html__('Attachment','ApplyOnline').'"'; } //If output is a radio or checkbox. else $val = implode(', ', $val); } else { $val = sanitize_text_field($val); } $parent[$key][0] = isset($parent[$key][0]) ? maybe_unserialize($parent[$key][0]) : 'continue'; $label = isset($parent[$key][0]['label'])? $parent[$key][0]['label'] : str_replace( '_', ' ', substr ( $key, 9 ) ); $type = isset($parent[$key][0]['type']) ? $parent[$key][0]['type'] : NULL; $data[] = array('label' => $label, 'value' => $val, 'type' => $type); } endforeach; return $data; } function aol_application_data_v2($post, $keys){ $meta = get_post_meta($post->ID, "ad_transcript", TRUE); foreach($meta as $key => $val){ $meta[$key] = maybe_unserialize(maybe_unserialize($val)); } $keys_order = $meta['_aol_fields_order']; $data = array(); foreach ( $keys_order as $key ): if ( substr ( $key, 0, 9 ) == '_aol_app_' ){ $key = sanitize_key($key); $val = get_post_meta ( $post->ID, $key, true ); //If the outputs is a file attachment switch ($meta[$key]['type']){ case 'file': $val = empty($val) ? NULL: aol_crypt($val['file']); break; case 'checkbox': $val = empty($val) ? NULL: implode(', ', $val); break; case 'paragraph': $val = empty($val) ? $meta[$key]['text'] : $val; break; default : $val = empty($val) ? NULL: $val; } $data[] = array( 'label' => isset($meta[$key]['label']) ? $meta[$key]['label'] : str_replace( '_', ' ', substr ( $key, 9 ) ), 'value' => $val, 'type' => $meta[$key]['type']); } endforeach; return $data; } function aol_application_table($post, $classes = 'aol-table widefat striped'){ ob_start(); ?> '; echo ''; echo ''; echo ''; endforeach; ?>
    ' . sanitize_text_field($row['label']) . ''; if(empty($row['value'])) { echo '- '.esc_html__('not provided', 'ApplyOnline').' -'; } else { echo ( $row['type'] == 'file' ) ? ''.esc_html__('Attachment','ApplyOnline').'' : sanitize_textarea_field($row['value']); } echo '
    '; print_r($var); echo ''; } } function get_aol_ad_options(){ return apply_filters('aol_ad_options', array()); } function get_aol_settings(){ $default = array( 'type' => 'text', 'key' => NULL, 'secret' => FALSE, 'placeholder' => NULL, 'value' => NULL, 'label' => NULL, 'helptext' => NULL, 'icon' => NULL, 'class' => NULL, 'sanitize_callback' => 'sanitize_text_field' ); $settings = apply_filters('aol_settings', array()); foreach($settings as $key => $setting){ //if( isset($setting['type']) AND $setting['type']=='textarea' AND !isset($setting['sanitize_callback']) ) $setting['sanitize_callback'] = 'sanitize_textarea_field'; if( !isset($setting['value']) ) $setting['value'] = get_option($setting['key']); $settings[$key] = array_merge($default, $setting); } return $settings; } /** * Marked as deprecated. Use aol_mail_header() instead. * * @param array $extra_headers * @return array Headers required by mail functions. */ function aol_from_mail_header($extra_headers = array()){ // Get the site domain and get rid of www. $sitename = strtolower( $_SERVER['SERVER_NAME'] ); if ( substr( $sitename, 0, 4 ) == 'www.' ) { $sitename = substr( $sitename, 4 ); } $from_email = 'do-not-reply@' . $sitename; //Removed since 2.5.4 //$headers = 'Content-Type: text/html'."\r\n"; //$headers .= wp_specialchars_decode('From: '.get_bloginfo('name')." <$from_email>")."\r\n"; //$headers .= implode(",\r\n", $extra_headers); //Introduced in 2.5.4 $headers = array('Content-Type: text/html', "From: ". wp_specialchars_decode(get_bloginfo('name'))." <$from_email>"); return array_merge($headers, $extra_headers); //return array('Content-Type: text/html', "From:". wp_specialchars_decode(get_bloginfo('name'))." <$from_email>", implode(',', $extra_headers)); } /** * * @return type */ function aol_mail_header($extra_headers = array()){ return aol_from_mail_header($extra_headers); } function aol_integration(){ return apply_filters( "aol_integration", array() ); } /*Quick hack for a fatal error on Application Editor*/ if( !function_exists('has_blocks') ){ function has_blocks( $post = null ) { if ( ! is_string( $post ) ) { $wp_post = get_post( $post ); if ( $wp_post instanceof WP_Post ) { $post = $wp_post->post_content; } } return false !== strpos( (string) $post, ' admin/css/select2.min.css000064400000035166150211775550011304 0ustar00.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px;padding:1px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline{float:right}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid black 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, #fff 50%, #eee 100%);background-image:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 50%);background-image:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, #fff 100%);background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb} admin/css/print.css000064400000153120150211775550010304 0ustar00html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:0.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}*:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}input,button,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:hover,a:focus{color:#23527c;text-decoration:underline}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.img-responsive{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;display:inline-block;max-width:100%;height:auto}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role="button"]{cursor:pointer}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small,.h1 small,.h2 small,.h3 small,.h4 small,.h5 small,.h6 small,h1 .small,h2 .small,h3 .small,h4 .small,h5 .small,h6 .small,.h1 .small,.h2 .small,.h3 .small,.h4 .small,.h5 .small,.h6 .small{font-weight:normal;line-height:1;color:#777}h1,.h1,h2,.h2,h3,.h3{margin-top:20px;margin-bottom:10px}h1 small,.h1 small,h2 small,.h2 small,h3 small,.h3 small,h1 .small,.h1 .small,h2 .small,.h2 .small,h3 .small,.h3 .small{font-size:65%}h4,.h4,h5,.h5,h6,.h6{margin-top:10px;margin-bottom:10px}h4 small,.h4 small,h5 small,.h5 small,h6 small,.h6 small,h4 .small,.h4 .small,h5 .small,.h5 .small,h6 .small,.h6 .small{font-size:75%}h1,.h1{font-size:36px}h2,.h2{font-size:30px}h3,.h3{font-size:24px}h4,.h4{font-size:18px}h5,.h5{font-size:14px}h6,.h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}small,.small{font-size:85%}mark,.mark{background-color:#fcf8e3;padding:.2em}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:hover,a.text-primary:focus{color:#286090}.text-success{color:#3c763d}a.text-success:hover,a.text-success:focus{color:#2b542c}.text-info{color:#31708f}a.text-info:hover,a.text-info:focus{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:hover,a.text-warning:focus{color:#66512c}.text-danger{color:#a94442}a.text-danger:hover,a.text-danger:focus{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:hover,a.bg-primary:focus{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:hover,a.bg-success:focus{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:hover,a.bg-info:focus{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:hover,a.bg-warning:focus{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:hover,a.bg-danger:focus{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ul,ol{margin-top:0;margin-bottom:10px}ul ul,ol ul,ul ol,ol ol{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none;margin-left:-5px}.list-inline>li{display:inline-block;padding-left:5px;padding-right:5px}dl{margin-top:0;margin-bottom:20px}dt,dd{line-height:1.42857143}dt{font-weight:bold}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote p:last-child,blockquote ul:last-child,blockquote ol:last-child{margin-bottom:0}blockquote footer,blockquote small,blockquote .small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote footer:before,blockquote small:before,blockquote .small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0;text-align:right}.blockquote-reverse footer:before,blockquote.pull-right footer:before,.blockquote-reverse small:before,blockquote.pull-right small:before,.blockquote-reverse .small:before,blockquote.pull-right .small:before{content:''}.blockquote-reverse footer:after,blockquote.pull-right footer:after,.blockquote-reverse small:after,blockquote.pull-right small:after,.blockquote-reverse .small:after,blockquote.pull-right .small:after{content:'\00A0 \2014'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}.container{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:970px}}.container-fluid{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}.row{margin-left:-15px;margin-right:-15px}.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12{position:relative;min-height:1px;padding-left:15px;padding-right:15px}.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>thead>tr>th,.table>tbody>tr>th,.table>tfoot>tr>th,.table>thead>tr>td,.table>tbody>tr>td,.table>tfoot>tr>td{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>th,.table>caption+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>td,.table>thead:first-child>tr:first-child>td{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>thead>tr>th,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>tbody>tr>td,.table-condensed>tfoot>tr>td{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>tbody>tr>td,.table-bordered>tfoot>tr>td{border:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>thead>tr>td{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*="col-"]{position:static;float:none;display:table-column}table td[class*="col-"],table th[class*="col-"]{position:static;float:none;display:table-cell}.table>thead>tr>td.active,.table>tbody>tr>td.active,.table>tfoot>tr>td.active,.table>thead>tr>th.active,.table>tbody>tr>th.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>tbody>tr.active>td,.table>tfoot>tr.active>td,.table>thead>tr.active>th,.table>tbody>tr.active>th,.table>tfoot>tr.active>th{background-color:#f5f5f5}.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover,.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr.active:hover>th{background-color:#e8e8e8}.table>thead>tr>td.success,.table>tbody>tr>td.success,.table>tfoot>tr>td.success,.table>thead>tr>th.success,.table>tbody>tr>th.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>tbody>tr.success>td,.table>tfoot>tr.success>td,.table>thead>tr.success>th,.table>tbody>tr.success>th,.table>tfoot>tr.success>th{background-color:#dff0d8}.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover,.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr.success:hover>th{background-color:#d0e9c6}.table>thead>tr>td.info,.table>tbody>tr>td.info,.table>tfoot>tr>td.info,.table>thead>tr>th.info,.table>tbody>tr>th.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>tbody>tr.info>td,.table>tfoot>tr.info>td,.table>thead>tr.info>th,.table>tbody>tr.info>th,.table>tfoot>tr.info>th{background-color:#d9edf7}.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover,.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr.info:hover>th{background-color:#c4e3f3}.table>thead>tr>td.warning,.table>tbody>tr>td.warning,.table>tfoot>tr>td.warning,.table>thead>tr>th.warning,.table>tbody>tr>th.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>tbody>tr.warning>td,.table>tfoot>tr.warning>td,.table>thead>tr.warning>th,.table>tbody>tr.warning>th,.table>tfoot>tr.warning>th{background-color:#fcf8e3}.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover,.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr.warning:hover>th{background-color:#faf2cc}.table>thead>tr>td.danger,.table>tbody>tr>td.danger,.table>tfoot>tr>td.danger,.table>thead>tr>th.danger,.table>tbody>tr>th.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>tbody>tr.danger>td,.table>tfoot>tr.danger>td,.table>thead>tr.danger>th,.table>tbody>tr.danger>th,.table>tfoot>tr.danger>th{background-color:#f2dede}.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover,.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr.danger:hover>th{background-color:#ebcccc}.table-responsive{overflow-x:auto;min-height:0.01%}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>thead>tr>th,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tfoot>tr>td{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>thead>tr>th:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}.table-responsive>.table-bordered>thead>tr>th:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>th,.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>td{border-bottom:0}}fieldset{padding:0;margin:0;border:0;min-width:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:bold}input[type="search"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type="radio"],input[type="checkbox"]{margin:4px 0 0;margin-top:1px \9;line-height:normal}input[type="file"]{display:block}input[type="range"]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type="file"]:focus,input[type="radio"]:focus,input[type="checkbox"]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-transition:border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s, box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s, box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control::-ms-expand{border:0;background-color:transparent}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type="search"]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type="date"].form-control,input[type="time"].form-control,input[type="datetime-local"].form-control,input[type="month"].form-control{line-height:34px}input[type="date"].input-sm,input[type="time"].input-sm,input[type="datetime-local"].input-sm,input[type="month"].input-sm,.input-group-sm input[type="date"],.input-group-sm input[type="time"],.input-group-sm input[type="datetime-local"],.input-group-sm input[type="month"]{line-height:30px}input[type="date"].input-lg,input[type="time"].input-lg,input[type="datetime-local"].input-lg,input[type="month"].input-lg,.input-group-lg input[type="date"],.input-group-lg input[type="time"],.input-group-lg input[type="datetime-local"],.input-group-lg input[type="month"]{line-height:46px}}.form-group{margin-bottom:15px}.radio,.checkbox{position:relative;display:block;margin-top:10px;margin-bottom:10px}.radio label,.checkbox label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:normal;cursor:pointer}.radio input[type="radio"],.radio-inline input[type="radio"],.checkbox input[type="checkbox"],.checkbox-inline input[type="checkbox"]{position:absolute;margin-left:-20px;margin-top:4px \9}.radio+.radio,.checkbox+.checkbox{margin-top:-5px}.radio-inline,.checkbox-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:normal;cursor:pointer}.radio-inline+.radio-inline,.checkbox-inline+.checkbox-inline{margin-top:0;margin-left:10px}input[type="radio"][disabled],input[type="checkbox"][disabled],input[type="radio"].disabled,input[type="checkbox"].disabled,fieldset[disabled] input[type="radio"],fieldset[disabled] input[type="checkbox"]{cursor:not-allowed}.radio-inline.disabled,.checkbox-inline.disabled,fieldset[disabled] .radio-inline,fieldset[disabled] .checkbox-inline{cursor:not-allowed}.radio.disabled label,.checkbox.disabled label,fieldset[disabled] .radio label,fieldset[disabled] .checkbox label{cursor:not-allowed}.form-control-static{padding-top:7px;padding-bottom:7px;margin-bottom:0;min-height:34px}.form-control-static.input-lg,.form-control-static.input-sm{padding-left:0;padding-right:0}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}textarea.input-sm,select[multiple].input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.form-group-sm select.form-control{height:30px;line-height:30px}.form-group-sm textarea.form-control,.form-group-sm select[multiple].form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}textarea.input-lg,select[multiple].input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.form-group-lg select.form-control{height:46px;line-height:46px}.form-group-lg textarea.form-control,.form-group-lg select[multiple].form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:11px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.input-lg+.form-control-feedback,.input-group-lg+.form-control-feedback,.form-group-lg .form-control+.form-control-feedback{width:46px;height:46px;line-height:46px}.input-sm+.form-control-feedback,.input-group-sm+.form-control-feedback,.form-group-sm .form-control+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .help-block,.has-success .control-label,.has-success .radio,.has-success .checkbox,.has-success .radio-inline,.has-success .checkbox-inline,.has-success.radio label,.has-success.checkbox label,.has-success.radio-inline label,.has-success.checkbox-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;border-color:#3c763d;background-color:#dff0d8}.has-success .form-control-feedback{color:#3c763d}.has-warning .help-block,.has-warning .control-label,.has-warning .radio,.has-warning .checkbox,.has-warning .radio-inline,.has-warning .checkbox-inline,.has-warning.radio label,.has-warning.checkbox label,.has-warning.radio-inline label,.has-warning.checkbox-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;border-color:#8a6d3b;background-color:#fcf8e3}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .help-block,.has-error .control-label,.has-error .radio,.has-error .checkbox,.has-error .radio-inline,.has-error .checkbox-inline,.has-error.radio label,.has-error.checkbox label,.has-error.radio-inline label,.has-error.checkbox-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;border-color:#a94442;background-color:#f2dede}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn,.form-inline .input-group .form-control{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .radio,.form-inline .checkbox{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .radio label,.form-inline .checkbox label{padding-left:0}.form-inline .radio input[type="radio"],.form-inline .checkbox input[type="checkbox"]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .radio,.form-horizontal .checkbox,.form-horizontal .radio-inline,.form-horizontal .checkbox-inline{margin-top:0;margin-bottom:0;padding-top:7px}.form-horizontal .radio,.form-horizontal .checkbox{min-height:27px}.form-horizontal .form-group{margin-left:-15px;margin-right:-15px}@media (min-width:768px){.form-horizontal .control-label{text-align:right;margin-bottom:0;padding-top:7px}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:11px;font-size:18px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px;font-size:12px}}.btn{display:inline-block;margin-bottom:0;font-weight:normal;text-align:center;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.btn:focus,.btn:active:focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn.active.focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn:hover,.btn:focus,.btn.focus{color:#333;text-decoration:none}.btn:active,.btn.active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default:focus,.btn-default.focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c}.btn-default:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default:active,.btn-default.active,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default:active:hover,.btn-default.active:hover,.open>.dropdown-toggle.btn-default:hover,.btn-default:active:focus,.btn-default.active:focus,.open>.dropdown-toggle.btn-default:focus,.btn-default:active.focus,.btn-default.active.focus,.open>.dropdown-toggle.btn-default.focus{color:#333;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default:active,.btn-default.active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled:hover,.btn-default[disabled]:hover,fieldset[disabled] .btn-default:hover,.btn-default.disabled:focus,.btn-default[disabled]:focus,fieldset[disabled] .btn-default:focus,.btn-default.disabled.focus,.btn-default[disabled].focus,fieldset[disabled] .btn-default.focus{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary:focus,.btn-primary.focus{color:#fff;background-color:#286090;border-color:#122b40}.btn-primary:hover{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary:active,.btn-primary.active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary:active:hover,.btn-primary.active:hover,.open>.dropdown-toggle.btn-primary:hover,.btn-primary:active:focus,.btn-primary.active:focus,.open>.dropdown-toggle.btn-primary:focus,.btn-primary:active.focus,.btn-primary.active.focus,.open>.dropdown-toggle.btn-primary.focus{color:#fff;background-color:#204d74;border-color:#122b40}.btn-primary:active,.btn-primary.active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled:hover,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary:hover,.btn-primary.disabled:focus,.btn-primary[disabled]:focus,fieldset[disabled] .btn-primary:focus,.btn-primary.disabled.focus,.btn-primary[disabled].focus,fieldset[disabled] .btn-primary.focus{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success:focus,.btn-success.focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success:hover{color:#fff;background-color:#449d44;border-color:#398439}.btn-success:active,.btn-success.active,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success:active:hover,.btn-success.active:hover,.open>.dropdown-toggle.btn-success:hover,.btn-success:active:focus,.btn-success.active:focus,.open>.dropdown-toggle.btn-success:focus,.btn-success:active.focus,.btn-success.active.focus,.open>.dropdown-toggle.btn-success.focus{color:#fff;background-color:#398439;border-color:#255625}.btn-success:active,.btn-success.active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled:hover,.btn-success[disabled]:hover,fieldset[disabled] .btn-success:hover,.btn-success.disabled:focus,.btn-success[disabled]:focus,fieldset[disabled] .btn-success:focus,.btn-success.disabled.focus,.btn-success[disabled].focus,fieldset[disabled] .btn-success.focus{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info:focus,.btn-info.focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info:active,.btn-info.active,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info:active:hover,.btn-info.active:hover,.open>.dropdown-toggle.btn-info:hover,.btn-info:active:focus,.btn-info.active:focus,.open>.dropdown-toggle.btn-info:focus,.btn-info:active.focus,.btn-info.active.focus,.open>.dropdown-toggle.btn-info.focus{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info:active,.btn-info.active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled:hover,.btn-info[disabled]:hover,fieldset[disabled] .btn-info:hover,.btn-info.disabled:focus,.btn-info[disabled]:focus,fieldset[disabled] .btn-info:focus,.btn-info.disabled.focus,.btn-info[disabled].focus,fieldset[disabled] .btn-info.focus{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning:focus,.btn-warning.focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning:active,.btn-warning.active,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning:active:hover,.btn-warning.active:hover,.open>.dropdown-toggle.btn-warning:hover,.btn-warning:active:focus,.btn-warning.active:focus,.open>.dropdown-toggle.btn-warning:focus,.btn-warning:active.focus,.btn-warning.active.focus,.open>.dropdown-toggle.btn-warning.focus{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning:active,.btn-warning.active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled:hover,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning:hover,.btn-warning.disabled:focus,.btn-warning[disabled]:focus,fieldset[disabled] .btn-warning:focus,.btn-warning.disabled.focus,.btn-warning[disabled].focus,fieldset[disabled] .btn-warning.focus{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger:focus,.btn-danger.focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger:active,.btn-danger.active,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger:active:hover,.btn-danger.active:hover,.open>.dropdown-toggle.btn-danger:hover,.btn-danger:active:focus,.btn-danger.active:focus,.open>.dropdown-toggle.btn-danger:focus,.btn-danger:active.focus,.btn-danger.active.focus,.open>.dropdown-toggle.btn-danger.focus{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger:active,.btn-danger.active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled:hover,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger:hover,.btn-danger.disabled:focus,.btn-danger[disabled]:focus,fieldset[disabled] .btn-danger:focus,.btn-danger.disabled.focus,.btn-danger[disabled].focus,fieldset[disabled] .btn-danger.focus{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{color:#337ab7;font-weight:normal;border-radius:0}.btn-link,.btn-link:active,.btn-link.active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:hover,.btn-link:focus,.btn-link:active{border-color:transparent}.btn-link:hover,.btn-link:focus{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:hover,fieldset[disabled] .btn-link:hover,.btn-link[disabled]:focus,fieldset[disabled] .btn-link:focus{color:#777;text-decoration:none}.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type="submit"].btn-block,input[type="reset"].btn-block,input[type="button"].btn-block{width:100%}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*="col-"]{float:none;padding-left:0;padding-right:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group .form-control:focus{z-index:3}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn,select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn,select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn{height:auto}.input-group-addon,.input-group-btn,.input-group .form-control{display:table-cell}.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child),.input-group .form-control:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:normal;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type="radio"],.input-group-addon input[type="checkbox"]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group-btn:last-child>.btn-group:not(:last-child)>.btn{border-bottom-right-radius:0;border-top-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:first-child>.btn-group:not(:first-child)>.btn{border-bottom-left-radius:0;border-top-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:hover,.input-group-btn>.btn:focus,.input-group-btn>.btn:active{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;line-height:1.42857143;text-decoration:none;color:#337ab7;background-color:#fff;border:1px solid #ddd;margin-left:-1px}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-bottom-left-radius:4px;border-top-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-bottom-right-radius:4px;border-top-right-radius:4px}.pagination>li>a:hover,.pagination>li>span:hover,.pagination>li>a:focus,.pagination>li>span:focus{z-index:2;color:#23527c;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>span,.pagination>.active>a:hover,.pagination>.active>span:hover,.pagination>.active>a:focus,.pagination>.active>span:focus{z-index:3;color:#fff;background-color:#337ab7;border-color:#337ab7;cursor:default}.pagination>.disabled>span,.pagination>.disabled>span:hover,.pagination>.disabled>span:focus,.pagination>.disabled>a,.pagination>.disabled>a:hover,.pagination>.disabled>a:focus{color:#777;background-color:#fff;border-color:#ddd;cursor:not-allowed}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px;line-height:1.3333333}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-bottom-left-radius:6px;border-top-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-bottom-right-radius:6px;border-top-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px;line-height:1.5}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-bottom-left-radius:3px;border-top-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-bottom-right-radius:3px;border-top-right-radius:3px}.clearfix:before,.clearfix:after,.dl-horizontal dd:before,.dl-horizontal dd:after,.container:before,.container:after,.container-fluid:before,.container-fluid:after,.row:before,.row:after,.form-horizontal .form-group:before,.form-horizontal .form-group:after{content:" ";display:table}.clearfix:after,.dl-horizontal dd:after,.container:after,.container-fluid:after,.row:after,.form-horizontal .form-group:after{clear:both}.center-block{display:block;margin-left:auto;margin-right:auto}.pull-right{float:right !important}.pull-left{float:left !important}.hide{display:none !important}.show{display:block !important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none !important}.affix{position:fixed} body {background-color:#F2F1EF;font-size:15px;font-family:'Open Sans','Arial','Helvetica',sans-serif;} h1, h2, h3, h4, h5 {margin:0;} th {padding:8px 10px;} td {padding:3px 10px;} br {height:1px;padding: 0;margin:0;} a img {outline:none; border:none;} .print .wrap .table td, .print .wrap .table th { vertical-align: middle; } .wrap .table .itmid {width:10%;} .wrap .table .bname {width:44%;} .wrap .table .rate, .wrap .table .adjust, .wrap .table th.tax { width:15%; } .wrap .table .total { width:20%; } .wrap .table td.tax .tax-rate { font-size: 90%; color: #72777c; font-style: italic; } .wrap .table tr .meta { display: block; font-size: 90%; color: #72777c; font-style: italic } .wrap .table tr .meta * { margin-top: 0; margin-bottom: 0; } .wrap .table .qty {width:90px;text-align:center} .wrap .table th, .wrap .table-active td { background: #ededed none repeat scroll 0 0; padding-bottom: 12px; padding-top: 12px; } .totals .table .rate { width: auto; } .totals .table .total { max-width: 100px; width: auto; } .wrap .row_odd {background: #fafafa;} .wrap .items .row_even {background: transparent;} .wrap .table th, .wrap .table td, .wrap .table-bordered {border: none; border-bottom: 1px solid #ddd;} .wrap .table th {border-bottom: none;} .wrap .totals {float: right;} .wrap .table .blank, .wrap .table .table-active .blank { border: none; background: transparent; } .row { margin: 0 0 25px; } .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td { vertical-align: middle; } .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xs-1, .col-xs-10, .col-xs-11, .col-xs-12, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9 { padding: 0; } .print-only { visibility: hidden; } .wrap { background: #fff none repeat scroll 0 0; padding: 20px 30px; border: 1px solid #aaa; box-shadow: 0 0 20px rgba(0,0,0,0.07); margin: 20px auto; position: relative; display: block; } .top-bar { background: #fff none repeat scroll 0 0; border: medium none; border-radius: 0; box-shadow: 0 1px 5px 2px rgba(0, 0, 0, 0.15); padding: 16px 0 18px; } .top-bar .fa { margin: 0 4px 0 0; } .print .row.header { margin-bottom: 30px; } .business .logo { max-width: 300px; } .title { font-size: 160%; text-align: right; } .address { margin-bottom: 7px; } .print .address { margin-bottom: 15px; } .address p { margin: 0; } .description { padding: 20px 0 0; } .items .description { color: #777; display: block; font-size: 90%; width: 100%; float: left; font-style: italic } .items .description p { margin: 0; } .items .itmid { text-align: center; } .items .rate, .items .total, .items .tax, .items .adjust, .totals td { text-align: right; } .footer { margin: 40px 0 0; text-align: center; } .payment .business { text-align: center; margin-top: 40px; margin-bottom: 40px; } /* END BASIC RESETS */ /* Watermarks */ .watermark.no-print { display: block; left: 25%; min-height: 50%; min-width: 50%; position: absolute; top: 33%; z-index: 2; } .watermark.no-print p { color: rgba(0, 0, 0, 0.08); font-size: 150px; font-weight: bold; letter-spacing: -10px; transform: rotate(315deg); -webkit-transform: rotate(315deg); text-align: center; } /* Alert Messages */ .message { text-align: center; padding: 15px 20px 15px; color: #fff; font-weight: 100; border-radius: 4px; display: block; float: none; font-weight: normal; margin: 25px auto; max-width: 80%; border: 2px solid transparent; border-radius: 4px; font-size: 18px; } .message .dashicons { background: #fff none repeat scroll 0 0; border: 2px solid; border-radius: 55px; clear: both; display: block; font-size: 60px; height: 90px; margin: -60px auto 15px; text-align: center; width: 90px; line-height: 90px; } .message-return { display: block; margin: 0 auto; text-align: center; max-width: 220px; } .message { border-color: #008CBA; color: #008CBA; } .success { border-color: #43AC6A; color: #43AC6A; } .alert { border-color: #F08A24; color: #F08A24; } .error, .failed { border-color: #F04124; color: #F04124; } .wpinv .deposit-alert { display: block; float: none; font-weight: normal; margin: 25px auto; max-width: 50%; padding: 15px; text-align: center; } .payments, .bank-info .bg-info { background: #ededed; margin: 20px 0; padding: 15px 20px 5px 20px; border: 1px solid #aaa; color: #333 } .bank-info .bg-info { margin: 0 0 30px 0; } .bank-info { margin-bottom: 30px } .bank-info .bank-t { font-size: 18px; font-weight: bold; margin-bottom: 10px; } .line-details .table th, .line-details .table td, .bank-info .table th, .bank-info .table td { padding: 8px; background: none; } .line-details .table th, .bank-info .table th { width: 35%; } .print .details .line-details { padding-left: 1.25em; } .print .details .table th, .print .details .table td { width: auto; } .line-details .table .wpi-row-total th, .line-details .table .wpi-row-total td { background-color: #ededed; } .payments h4 { padding: 0 0 10px; } .payments h4 .fa { margin: 0 5px 0 0; } .bank, .generic { float: left; width: 50%; } .wrap .table-bordered { margin-bottom: 10px; } .wrap .table th, .wrap .table td, .wrap .table-bordered { border: 1px solid #ccc; vertical-align: bottom; } .terms-text { border-bottom: 1px solid #ccc; border-top: 1px solid #ccc; font-size: 85%; margin: 0 0 30px; padding: 10px 0 0; } .address .from, .address .to { max-width: 60px } .subscriptions-details h3, .renewal-payments h3 { margin-bottom: 7px; } .subscriptions-details table, .renewal-payments table { border: none!important; margin-bottom: 30px } .wrap .subscriptions-details table th, .wrap .subscriptions-details table td, .wrap .renewal-payments table th, .wrap .renewal-payments table td { border: none; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; background: none; vertical-align: middle; padding: 8px; } .wrap .subscriptions-details table th:first-child { width: 40% } .cart-sub-desc { display: inline-block; max-width: 85%; float: left; text-align: left; font-style: italic; font-size: 95%; } .cart-sub-desc .label-primary { font-weight: bold; font-style: normal; } .print .row-total td { vertical-align: top !important; } .print .vat-info { margin: 20px 0; } .print .vat-notice { margin: 25px 0 25px 0; } .print .alert-danger { color: #a94442; background-color: #f2dede; border-color: #ebccd1; } .print .alert-success { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; } .print .alert { display: none; padding: 15px; margin-top: 10px; border: 1px solid transparent; border-radius: 4px; } @media print { .no-print { display: none !important; } .wpinv > .container.wrap { border: none; padding: 0; margin: 0; box-shadow: none; } .wrap .table .total { width: 22.5%; } .print .details .line-details { padding-left: 1em; } } @media screen and (max-width:767px) { .wpinv > .container.wrap { padding: 15px; margin: 15px; } .top-bar { padding: 10px 0; } .line-details .table th, .bank-info .table th { width: 45%!important; } .print .details .line-details { padding-left: 0; } }admin/css/LICENSE.txt000064400000003431150211775550010260 0ustar00Copyright jQuery Foundation and other contributors, https://jquery.org/ This software consists of voluntary contributions made by many individuals. For exact contribution history, see the revision history available at https://github.com/jquery/jquery-ui The following license applies to all parts of this software except as documented below: ==== Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ==== Copyright and related rights for sample code are waived via CC0. Sample code is defined as all source code contained within the demos directory. CC0: http://creativecommons.org/publicdomain/zero/1.0/ ==== All files located in the node_modules and external directories are externally maintained libraries used by this software which have their own licenses; we recommend you read them, as their terms may differ from the terms above. admin/css/jquery-ui.min.css000064400000076514150211775550011677 0ustar00/*! jQuery UI - v1.12.1 - 2016-09-14 * http://jqueryui.com * Includes: core.css, accordion.css, autocomplete.css, menu.css, button.css, controlgroup.css, checkboxradio.css, datepicker.css, dialog.css, draggable.css, resizable.css, progressbar.css, selectable.css, selectmenu.css, slider.css, sortable.css, spinner.css, tabs.css, tooltip.css, theme.css * To view and modify this theme, visit http://jqueryui.com/themeroller/?bgShadowXPos=&bgOverlayXPos=&bgErrorXPos=&bgHighlightXPos=&bgContentXPos=&bgHeaderXPos=&bgActiveXPos=&bgHoverXPos=&bgDefaultXPos=&bgShadowYPos=&bgOverlayYPos=&bgErrorYPos=&bgHighlightYPos=&bgContentYPos=&bgHeaderYPos=&bgActiveYPos=&bgHoverYPos=&bgDefaultYPos=&bgShadowRepeat=&bgOverlayRepeat=&bgErrorRepeat=&bgHighlightRepeat=&bgContentRepeat=&bgHeaderRepeat=&bgActiveRepeat=&bgHoverRepeat=&bgDefaultRepeat=&iconsHover=url(%22images%2Fui-icons_555555_256x240.png%22)&iconsHighlight=url(%22images%2Fui-icons_777620_256x240.png%22)&iconsHeader=url(%22images%2Fui-icons_444444_256x240.png%22)&iconsError=url(%22images%2Fui-icons_cc0000_256x240.png%22)&iconsDefault=url(%22images%2Fui-icons_777777_256x240.png%22)&iconsContent=url(%22images%2Fui-icons_444444_256x240.png%22)&iconsActive=url(%22images%2Fui-icons_ffffff_256x240.png%22)&bgImgUrlShadow=&bgImgUrlOverlay=&bgImgUrlHover=&bgImgUrlHighlight=&bgImgUrlHeader=&bgImgUrlError=&bgImgUrlDefault=&bgImgUrlContent=&bgImgUrlActive=&opacityFilterShadow=Alpha(Opacity%3D30)&opacityFilterOverlay=Alpha(Opacity%3D30)&opacityShadowPerc=30&opacityOverlayPerc=30&iconColorHover=%23555555&iconColorHighlight=%23777620&iconColorHeader=%23444444&iconColorError=%23cc0000&iconColorDefault=%23777777&iconColorContent=%23444444&iconColorActive=%23ffffff&bgImgOpacityShadow=0&bgImgOpacityOverlay=0&bgImgOpacityError=95&bgImgOpacityHighlight=55&bgImgOpacityContent=75&bgImgOpacityHeader=75&bgImgOpacityActive=65&bgImgOpacityHover=75&bgImgOpacityDefault=75&bgTextureShadow=flat&bgTextureOverlay=flat&bgTextureError=flat&bgTextureHighlight=flat&bgTextureContent=flat&bgTextureHeader=flat&bgTextureActive=flat&bgTextureHover=flat&bgTextureDefault=flat&cornerRadius=3px&fwDefault=normal&ffDefault=Arial%2CHelvetica%2Csans-serif&fsDefault=1em&cornerRadiusShadow=8px&thicknessShadow=5px&offsetLeftShadow=0px&offsetTopShadow=0px&opacityShadow=.3&bgColorShadow=%23666666&opacityOverlay=.3&bgColorOverlay=%23aaaaaa&fcError=%235f3f3f&borderColorError=%23f1a899&bgColorError=%23fddfdf&fcHighlight=%23777620&borderColorHighlight=%23dad55e&bgColorHighlight=%23fffa90&fcContent=%23333333&borderColorContent=%23dddddd&bgColorContent=%23ffffff&fcHeader=%23333333&borderColorHeader=%23dddddd&bgColorHeader=%23e9e9e9&fcActive=%23ffffff&borderColorActive=%23003eff&bgColorActive=%23007fff&fcHover=%232b2b2b&borderColorHover=%23cccccc&bgColorHover=%23ededed&fcDefault=%23454545&borderColorDefault=%23c5c5c5&bgColorDefault=%23f6f6f6 * Copyright jQuery Foundation and other contributors; Licensed MIT */ .ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important;pointer-events:none}.ui-icon{display:inline-block;vertical-align:middle;margin-top:-.25em;position:relative;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-icon-block{left:50%;margin-left:-8px;display:block}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-accordion .ui-accordion-header{display:block;cursor:pointer;position:relative;margin:2px 0 0 0;padding:.5em .5em .5em .7em;font-size:100%}.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;overflow:auto}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-menu{list-style:none;padding:0;margin:0;display:block;outline:0}.ui-menu .ui-menu{position:absolute}.ui-menu .ui-menu-item{margin:0;cursor:pointer;list-style-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}.ui-menu .ui-menu-item-wrapper{position:relative;padding:3px 1em 3px .4em}.ui-menu .ui-menu-divider{margin:5px 0;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.ui-menu .ui-state-focus,.ui-menu .ui-state-active{margin:-1px}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item-wrapper{padding-left:2em}.ui-menu .ui-icon{position:absolute;top:0;bottom:0;left:.2em;margin:auto 0}.ui-menu .ui-menu-icon{left:auto;right:0}.ui-button{padding:.4em 1em;display:inline-block;position:relative;line-height:normal;margin-right:.1em;cursor:pointer;vertical-align:middle;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:visible}.ui-button,.ui-button:link,.ui-button:visited,.ui-button:hover,.ui-button:active{text-decoration:none}.ui-button-icon-only{width:2em;box-sizing:border-box;text-indent:-9999px;white-space:nowrap}input.ui-button.ui-button-icon-only{text-indent:0}.ui-button-icon-only .ui-icon{position:absolute;top:50%;left:50%;margin-top:-8px;margin-left:-8px}.ui-button.ui-icon-notext .ui-icon{padding:0;width:2.1em;height:2.1em;text-indent:-9999px;white-space:nowrap}input.ui-button.ui-icon-notext .ui-icon{width:auto;height:auto;text-indent:0;white-space:normal;padding:.4em 1em}input.ui-button::-moz-focus-inner,button.ui-button::-moz-focus-inner{border:0;padding:0}.ui-controlgroup{vertical-align:middle;display:inline-block}.ui-controlgroup > .ui-controlgroup-item{float:left;margin-left:0;margin-right:0}.ui-controlgroup > .ui-controlgroup-item:focus,.ui-controlgroup > .ui-controlgroup-item.ui-visual-focus{z-index:9999}.ui-controlgroup-vertical > .ui-controlgroup-item{display:block;float:none;width:100%;margin-top:0;margin-bottom:0;text-align:left}.ui-controlgroup-vertical .ui-controlgroup-item{box-sizing:border-box}.ui-controlgroup .ui-controlgroup-label{padding:.4em 1em}.ui-controlgroup .ui-controlgroup-label span{font-size:80%}.ui-controlgroup-horizontal .ui-controlgroup-label + .ui-controlgroup-item{border-left:none}.ui-controlgroup-vertical .ui-controlgroup-label + .ui-controlgroup-item{border-top:none}.ui-controlgroup-horizontal .ui-controlgroup-label.ui-widget-content{border-right:none}.ui-controlgroup-vertical .ui-controlgroup-label.ui-widget-content{border-bottom:none}.ui-controlgroup-vertical .ui-spinner-input{width:75%;width:calc( 100% - 2.4em )}.ui-controlgroup-vertical .ui-spinner .ui-spinner-up{border-top-style:solid}.ui-checkboxradio-label .ui-icon-background{box-shadow:inset 1px 1px 1px #ccc;border-radius:.12em;border:none}.ui-checkboxradio-radio-label .ui-icon-background{width:16px;height:16px;border-radius:1em;overflow:visible;border:none}.ui-checkboxradio-radio-label.ui-checkboxradio-checked .ui-icon,.ui-checkboxradio-radio-label.ui-checkboxradio-checked:hover .ui-icon{background-image:none;width:8px;height:8px;border-width:4px;border-style:solid}.ui-checkboxradio-disabled{pointer-events:none}.ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:1px}.ui-datepicker .ui-datepicker-prev{left:2px}.ui-datepicker .ui-datepicker-next{right:2px}.ui-datepicker .ui-datepicker-prev-hover{left:1px}.ui-datepicker .ui-datepicker-next-hover{right:1px}.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:45%}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:bold;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td span,.ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em .6em;width:auto;overflow:visible}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group{float:left}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;width:100%;font-size:0}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-datepicker .ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat;left:.5em;top:.3em}.ui-dialog{position:absolute;top:0;left:0;padding:.2em;outline:0}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:20px;margin:-10px 0 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:none;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin-top:.5em;padding:.3em 1em .5em .4em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.ui-dialog .ui-resizable-n{height:2px;top:0}.ui-dialog .ui-resizable-e{width:2px;right:0}.ui-dialog .ui-resizable-s{height:2px;bottom:0}.ui-dialog .ui-resizable-w{width:2px;left:0}.ui-dialog .ui-resizable-se,.ui-dialog .ui-resizable-sw,.ui-dialog .ui-resizable-ne,.ui-dialog .ui-resizable-nw{width:7px;height:7px}.ui-dialog .ui-resizable-se{right:0;bottom:0}.ui-dialog .ui-resizable-sw{left:0;bottom:0}.ui-dialog .ui-resizable-ne{right:0;top:0}.ui-dialog .ui-resizable-nw{left:0;top:0}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-draggable-handle{-ms-touch-action:none;touch-action:none}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:0.1px;display:block;-ms-touch-action:none;touch-action:none}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-progressbar{height:2em;text-align:left;overflow:hidden}.ui-progressbar .ui-progressbar-value{margin:-1px;height:100%}.ui-progressbar .ui-progressbar-overlay{background:url("data:image/gif;base64,R0lGODlhKAAoAIABAAAAAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAQABACwAAAAAKAAoAAACkYwNqXrdC52DS06a7MFZI+4FHBCKoDeWKXqymPqGqxvJrXZbMx7Ttc+w9XgU2FB3lOyQRWET2IFGiU9m1frDVpxZZc6bfHwv4c1YXP6k1Vdy292Fb6UkuvFtXpvWSzA+HycXJHUXiGYIiMg2R6W459gnWGfHNdjIqDWVqemH2ekpObkpOlppWUqZiqr6edqqWQAAIfkECQEAAQAsAAAAACgAKAAAApSMgZnGfaqcg1E2uuzDmmHUBR8Qil95hiPKqWn3aqtLsS18y7G1SzNeowWBENtQd+T1JktP05nzPTdJZlR6vUxNWWjV+vUWhWNkWFwxl9VpZRedYcflIOLafaa28XdsH/ynlcc1uPVDZxQIR0K25+cICCmoqCe5mGhZOfeYSUh5yJcJyrkZWWpaR8doJ2o4NYq62lAAACH5BAkBAAEALAAAAAAoACgAAAKVDI4Yy22ZnINRNqosw0Bv7i1gyHUkFj7oSaWlu3ovC8GxNso5fluz3qLVhBVeT/Lz7ZTHyxL5dDalQWPVOsQWtRnuwXaFTj9jVVh8pma9JjZ4zYSj5ZOyma7uuolffh+IR5aW97cHuBUXKGKXlKjn+DiHWMcYJah4N0lYCMlJOXipGRr5qdgoSTrqWSq6WFl2ypoaUAAAIfkECQEAAQAsAAAAACgAKAAAApaEb6HLgd/iO7FNWtcFWe+ufODGjRfoiJ2akShbueb0wtI50zm02pbvwfWEMWBQ1zKGlLIhskiEPm9R6vRXxV4ZzWT2yHOGpWMyorblKlNp8HmHEb/lCXjcW7bmtXP8Xt229OVWR1fod2eWqNfHuMjXCPkIGNileOiImVmCOEmoSfn3yXlJWmoHGhqp6ilYuWYpmTqKUgAAIfkECQEAAQAsAAAAACgAKAAAApiEH6kb58biQ3FNWtMFWW3eNVcojuFGfqnZqSebuS06w5V80/X02pKe8zFwP6EFWOT1lDFk8rGERh1TTNOocQ61Hm4Xm2VexUHpzjymViHrFbiELsefVrn6XKfnt2Q9G/+Xdie499XHd2g4h7ioOGhXGJboGAnXSBnoBwKYyfioubZJ2Hn0RuRZaflZOil56Zp6iioKSXpUAAAh+QQJAQABACwAAAAAKAAoAAACkoQRqRvnxuI7kU1a1UU5bd5tnSeOZXhmn5lWK3qNTWvRdQxP8qvaC+/yaYQzXO7BMvaUEmJRd3TsiMAgswmNYrSgZdYrTX6tSHGZO73ezuAw2uxuQ+BbeZfMxsexY35+/Qe4J1inV0g4x3WHuMhIl2jXOKT2Q+VU5fgoSUI52VfZyfkJGkha6jmY+aaYdirq+lQAACH5BAkBAAEALAAAAAAoACgAAAKWBIKpYe0L3YNKToqswUlvznigd4wiR4KhZrKt9Upqip61i9E3vMvxRdHlbEFiEXfk9YARYxOZZD6VQ2pUunBmtRXo1Lf8hMVVcNl8JafV38aM2/Fu5V16Bn63r6xt97j09+MXSFi4BniGFae3hzbH9+hYBzkpuUh5aZmHuanZOZgIuvbGiNeomCnaxxap2upaCZsq+1kAACH5BAkBAAEALAAAAAAoACgAAAKXjI8By5zf4kOxTVrXNVlv1X0d8IGZGKLnNpYtm8Lr9cqVeuOSvfOW79D9aDHizNhDJidFZhNydEahOaDH6nomtJjp1tutKoNWkvA6JqfRVLHU/QUfau9l2x7G54d1fl995xcIGAdXqMfBNadoYrhH+Mg2KBlpVpbluCiXmMnZ2Sh4GBqJ+ckIOqqJ6LmKSllZmsoq6wpQAAAh+QQJAQABACwAAAAAKAAoAAAClYx/oLvoxuJDkU1a1YUZbJ59nSd2ZXhWqbRa2/gF8Gu2DY3iqs7yrq+xBYEkYvFSM8aSSObE+ZgRl1BHFZNr7pRCavZ5BW2142hY3AN/zWtsmf12p9XxxFl2lpLn1rseztfXZjdIWIf2s5dItwjYKBgo9yg5pHgzJXTEeGlZuenpyPmpGQoKOWkYmSpaSnqKileI2FAAACH5BAkBAAEALAAAAAAoACgAAAKVjB+gu+jG4kORTVrVhRlsnn2dJ3ZleFaptFrb+CXmO9OozeL5VfP99HvAWhpiUdcwkpBH3825AwYdU8xTqlLGhtCosArKMpvfa1mMRae9VvWZfeB2XfPkeLmm18lUcBj+p5dnN8jXZ3YIGEhYuOUn45aoCDkp16hl5IjYJvjWKcnoGQpqyPlpOhr3aElaqrq56Bq7VAAAOw==");height:100%;filter:alpha(opacity=25);opacity:0.25}.ui-progressbar-indeterminate .ui-progressbar-value{background-image:none}.ui-selectable{-ms-touch-action:none;touch-action:none}.ui-selectable-helper{position:absolute;z-index:100;border:1px dotted black}.ui-selectmenu-menu{padding:0;margin:0;position:absolute;top:0;left:0;display:none}.ui-selectmenu-menu .ui-menu{overflow:auto;overflow-x:hidden;padding-bottom:1px}.ui-selectmenu-menu .ui-menu .ui-selectmenu-optgroup{font-size:1em;font-weight:bold;line-height:1.5;padding:2px 0.4em;margin:0.5em 0 0 0;height:auto;border:0}.ui-selectmenu-open{display:block}.ui-selectmenu-text{display:block;margin-right:20px;overflow:hidden;text-overflow:ellipsis}.ui-selectmenu-button.ui-button{text-align:left;white-space:nowrap;width:14em}.ui-selectmenu-icon.ui-icon{float:right;margin-top:0}.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default;-ms-touch-action:none;touch-action:none}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-sortable-handle{-ms-touch-action:none;touch-action:none}.ui-spinner{position:relative;display:inline-block;overflow:hidden;padding:0;vertical-align:middle}.ui-spinner-input{border:none;background:none;color:inherit;padding:.222em 0;margin:.2em 0;vertical-align:middle;margin-left:.4em;margin-right:2em}.ui-spinner-button{width:1.6em;height:50%;font-size:.5em;padding:0;margin:0;text-align:center;position:absolute;cursor:default;display:block;overflow:hidden;right:0}.ui-spinner a.ui-spinner-button{border-top-style:none;border-bottom-style:none;border-right-style:none}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-tabs{position:relative;padding:.2em}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px .2em 0 0;border-bottom-width:0;padding:0;white-space:nowrap}.ui-tabs .ui-tabs-nav .ui-tabs-anchor{float:left;padding:.5em 1em;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor{cursor:text}.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor{cursor:pointer}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:none}.ui-tooltip{padding:8px;position:absolute;z-index:9999;max-width:300px}body .ui-tooltip{border-width:2px}.ui-widget{font-family:Arial,Helvetica,sans-serif;font-size:1em}.ui-widget .ui-widget{font-size:1em}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Arial,Helvetica,sans-serif;font-size:1em}.ui-widget.ui-widget-content{border:1px solid #c5c5c5}.ui-widget-content{border:1px solid #ddd;background:#fff;color:#333}.ui-widget-content a{color:#333}.ui-widget-header{border:1px solid #ddd;background:#e9e9e9;color:#333;font-weight:bold}.ui-widget-header a{color:#333}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default,.ui-button,html .ui-button.ui-state-disabled:hover,html .ui-button.ui-state-disabled:active{border:1px solid #c5c5c5;background:#f6f6f6;font-weight:normal;color:#454545}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited,a.ui-button,a:link.ui-button,a:visited.ui-button,.ui-button{color:#454545;text-decoration:none}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus,.ui-button:hover,.ui-button:focus{border:1px solid #ccc;background:#ededed;font-weight:normal;color:#2b2b2b}.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited,.ui-state-focus a,.ui-state-focus a:hover,.ui-state-focus a:link,.ui-state-focus a:visited,a.ui-button:hover,a.ui-button:focus{color:#2b2b2b;text-decoration:none}.ui-visual-focus{box-shadow:0 0 3px 1px rgb(94,158,214)}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active,a.ui-button:active,.ui-button:active,.ui-button.ui-state-active:hover{border:1px solid #003eff;background:#007fff;font-weight:normal;color:#fff}.ui-icon-background,.ui-state-active .ui-icon-background{border:#003eff;background-color:#fff}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#fff;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #dad55e;background:#fffa90;color:#777620}.ui-state-checked{border:1px solid #dad55e;background:#fffa90}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#777620}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #f1a899;background:#fddfdf;color:#5f3f3f}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#5f3f3f}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#5f3f3f}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.ui-icon{width:16px;height:16px}.ui-icon,.ui-widget-content .ui-icon{background-image:url("images/ui-icons_444444_256x240.png")}.ui-widget-header .ui-icon{background-image:url("images/ui-icons_444444_256x240.png")}.ui-state-hover .ui-icon,.ui-state-focus .ui-icon,.ui-button:hover .ui-icon,.ui-button:focus .ui-icon{background-image:url("images/ui-icons_555555_256x240.png")}.ui-state-active .ui-icon,.ui-button:active .ui-icon{background-image:url("images/ui-icons_ffffff_256x240.png")}.ui-state-highlight .ui-icon,.ui-button .ui-state-highlight.ui-icon{background-image:url("images/ui-icons_777620_256x240.png")}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url("images/ui-icons_cc0000_256x240.png")}.ui-button .ui-icon{background-image:url("images/ui-icons_777777_256x240.png")}.ui-icon-blank{background-position:16px 16px}.ui-icon-caret-1-n{background-position:0 0}.ui-icon-caret-1-ne{background-position:-16px 0}.ui-icon-caret-1-e{background-position:-32px 0}.ui-icon-caret-1-se{background-position:-48px 0}.ui-icon-caret-1-s{background-position:-65px 0}.ui-icon-caret-1-sw{background-position:-80px 0}.ui-icon-caret-1-w{background-position:-96px 0}.ui-icon-caret-1-nw{background-position:-112px 0}.ui-icon-caret-2-n-s{background-position:-128px 0}.ui-icon-caret-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-65px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-65px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:1px -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{border-top-left-radius:3px}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{border-top-right-radius:3px}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{border-bottom-left-radius:3px}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{border-bottom-right-radius:3px}.ui-widget-overlay{background:#aaa;opacity:.003;filter:Alpha(Opacity=.3)}.ui-widget-shadow{-webkit-box-shadow:0 0 5px #666;box-shadow:0 0 5px #666}admin/css/applyonline-admin.css000064400000016615150211775550012577 0ustar00.aol-wrapper .clearfix{clear: both;} .aol-meta label{display: block} .aol_select{text-transform: capitalize;} .strong{font-weight: bold; } /*.aol-ad-closing{border: 2px solid #ddd}*/ .curtime #ad-closing::before { content: "\f145"; position: relative; top: -1px; font: 400 20px/1 dashicons; speak: none; display: inline-block; margin-left: -1px; padding-right: 3px; vertical-align: top; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; color: #82878c; } /*.curtime input.datepicker{margin: -6px 0;}*/ .app_form_fields .hidden{display: none;} #aol_ad_metas label, #app_form_fields label{ display: inline-block; min-width: 100px; } .default_fields .toggle-required{display: none; } #aol_application.postbox .inside { padding: 0; } #aol_application.postbox .inside .minor-publishing-actions{padding: 0 12px 12px} .app_form_fields table{border-spacing: 0; border-collapse: collapse; } .aol_table input[type="text"]{min-width: 180px; padding: 5px 10px;} table.aol_table tr{background: #EEE; border: 3px solid #FFF;} table.aol_table tr td{padding: 5px 10px} .aol_table label .dashicons{color: #CCC; font-size: 20px; vertical-align: middle; } .aol_table label .dashicons:hover{color: #AAA;} tr.ui-state-highlight { height: 40px; line-height: 40px; background-color: #fdff77 !important;} .table {display:table;} .row {display:table-row;} .cell{display:table-cell;} .app_form_fields .adapp_group{padding-bottom: 20px;} .post-type-aol_applications .widefat td, .post-type-aol_applications .widefat th{min-width: 120px; vertical-align: middle} input.closed, .danger {color: #E00;} .dashicons-menu::before { color: #AAA; } #menu-posts-aol_ad .wp-first-item + li{display: none;} .ui-sortable-handle .dashicons-menu{font-size: 26px;} .ui-sortable-handle .dashicons-menu:hover{cursor: pointer;} a.aol-heart{color: #F00; text-decoration: none; } a.aol-stats{color: #777; text-decoration: none; } a.aol-help{color: #0C0; text-decoration: none; } a.aol-shop{color: #00F; text-decoration: none; } a.aol-heart:hover{color: #D00; text-decoration: none; } a.aol-stats:hover{color: #000; text-decoration: none; } a.aol-help:hover{color: #0A0; text-decoration: none; } a.aol-shop:hover{color: #00B; text-decoration: none; } #ad_types > li{border-bottom: 2px solid #ccc; padding: 5px; } /*#app_form_fields td:first-child { max-width: 300px;}*/ /*#app_form_fields td { padding: 0.5em 0;} since 2.0*/ .wp-core-ui .button-danger { background: #dc3545; border-color: #dc2345 #dc1545 #dc1545; box-shadow: 0 1px 0 #dc1545; color: #fff; text-decoration: none; text-shadow: 0 -1px 1px #dc3545,1px 0 1px #dc3545,0 1px 1px #dc3545,-1px 0 1px #dc3545; } .wp-core-ui .button-danger:hover { background: #c82333; border-color: #bd2130; color: #FFF; } .aol-remove:hover { color: #E00; text-shadow: none; cursor: pointer; } .aol-add > .dashicons, .aol-remove > .dashicons { margin-top: 4px; padding-right: 5px; } /*.button.aol-add, .button.aol-remove{padding: 0 5px;}*/ .field-generator{background: #f1f1f1; padding: 20px;} .hide{display: none;} .pw-weak{display: none;} .show-password #pass1-text{display: inline-block;} button.wp-generate-pw > .dashicons{position: relative; top: 3px;} #inviteevaluator .form-field input { width: 25em; } .aol-settings .dashicons-warning { color: #E00;} .alert{padding:10px;margin-bottom:20px;border:1px solid transparent;border-radius:4px} .alert h4{margin-top:0;color:inherit} .alert .alert-link{font-weight:bold} .alert>p,.alert>ul{margin-bottom:0} .alert>p+p{margin-top:5px} .alert-dismissable,.alert-dismissible{padding-right:35px} .alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit} .alert-success{background-color:#dff0d8;border-color:#d6e9c6;color:#3c763d} .alert-success hr{border-top-color:#c9e2b3} .alert-success .alert-link{color:#2b542c} .alert-info{background-color:#d9edf7;border-color:#bce8f1;color:#31708f} .alert-info hr{border-top-color:#a6e1ec} .alert-info .alert-link{color:#245269} .alert-warning{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b} .alert-warning hr{border-top-color:#f7e1b5} .alert-warning .alert-link{color:#66512c} .alert-danger{background-color:#f2dede;border-color:#ebccd1;color:#a94442} .alert-danger hr{border-top-color:#e4b9c0} .alert-danger .alert-link{color:#843534} .aol_form label{min-width: 100px; display: inline-block; } .aol_form .aol-form-field, .aol_form .aol-form-field{width: 80%;} .aol_form input[type=checkbox], .aol_form input[type=radio]{width: auto} .aol_form{background: #eee; padding: 10px; border-radius: 10px; } .dashicons.aol_fields{font-size: 35px; padding-right: 20px; } .aol_form .dashicons.aol_fields{height: 35px; } .aol-selectors{ clear: both; transition: color 0.2s} .aol-selectors p{margin: 0px; padding: 0px; } .aol-selectors td{padding-bottom: 20px; text-align: center; font-size: 13px;} .aol-edit-form{display: none; float: right;} .aol-edit-form .dashicons {border: 1px solid #ccc; background: #eee; padding: 2px; border-radius: 2px; } .aol_form .inline{display: inline-block; width: 20%} i.description{color: #666} .dashicons.aol_fields{cursor: pointer} #ad_custom_filters .dashicons-dismiss { color: #E00; font-size: 21px; cursor: pointer;} #ad_custom_filters tfoot tr{height: 60px;} /* The switch - the box around the slider */ .aol-settings .switch, body.post-type-aol_ad .switch{ position: relative; display: inline-block; width: 60px; height: 34px; } /*HTML Switch - Start*/ /* Hide default HTML checkbox */ .aol-settings .switch input, body.post-type-aol_ad .switch input{ opacity: 0; width: 0; height: 0; } /* The slider */ .aol-settings .slider, body.post-type-aol_ad .slider{ position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; -webkit-transition: .4s; transition: .4s; } .aol-settings .slider:before, body.post-type-aol_ad .slider:before{ position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; -webkit-transition: .4s; transition: .4s; } .aol-settings input:checked + .slider, body.post-type-aol_ad input:checked + .slider{ background-color: #2196F3; } .aol-settings input:focus + .slider, body.post-type-aol_ad input:focus + .slider { box-shadow: 0 0 1px #2196F3; } .aol-settings input:checked + .slider:before, body.post-type-aol_ad input:checked + .slider:before{ -webkit-transform: translateX(26px); -ms-transform: translateX(26px); transform: translateX(26px); } /* Rounded sliders */ .aol-settings .slider.round, body.post-type-aol_ad .slider.round{ border-radius: 34px; } .aol-settings .slider.round:before, body.post-type-aol_ad .slider.round:before { border-radius: 50%; } /*HTML Switch - End*/ body.post-type-aol_ad fieldset{ margin-left: 2px; margin-right: 2px; padding-top: 0.35em; padding-bottom: 0.625em; padding-left: 0.75em; padding-right: 0.75em; border: 1px groove; } body.post-type-aol_ad .postbox-header .hndle{justify-content: normal} .description {font-style: italic} /* Options */ .aol-settings h3{margin-bottom: 5px;} .aol-settings .aol-tab{cursor: pointer} .aol-settings .aol-tab-data:not(#general){display: none} .aol-settings .templateForm{display: none;} .aol-tab.active{background: #FFF} /* End Options */ .post-type-aol_application .column-id{width: 6em;} .aol-tab-data{padding: 20px;} .wrap:has(.aol-table){margin-left: 12px;}admin/class-applyonline-settings-api.php000064400000000325150211775550014417 0ustar00 */ class Applyonline_Admin{ /** * The ID of this plugin. * * @since 1.0.0 * @access private * @var string $plugin_name The ID of this plugin. */ private $plugin_name; /** * The version of this plugin. * * @since 1.0.0 * @access private * @var string $version The current version of this plugin. */ protected $version; /** * Initialize the class and set its properties. * * @since 1.0.0 * @param string $plugin_name The name of this plugin. * @param string $version The version of this plugin. */ public function __construct( $plugin_name, $version ) { $this->plugin_name = $plugin_name; $this->version = $version; //Fix comments on application add_filter('comment_row_actions', array($this, 'comments_fix'), 10, 2); //Application Print add_action('wp_ajax_application_table_filter_result', array($this, 'application_table_filter_result')); new ApplyOnline_Ad_Options(); new Applyonline_Form_Builder(); new Applyonline_Ads(); new Applyonline_Applications(); new Applyonline_Settings($version); } /** * Register the stylesheets for the admin area. * * @since 1.0.0 */ public function enqueue_styles() { /** * This function is provided for demonstration purposes only. * * An instance of this class should be passed to the run() function * defined in Applyonline_Loader as all of the hooks are defined * in that particular class. * * The Applyonline_Loader will then create the relationship * between the defined hooks and the functions defined in this * class. */ wp_enqueue_style( 'aol-select2', plugin_dir_url( __FILE__ ) . 'css/select2.min.css', array(), $this->version, 'all' ); wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/applyonline-admin.css', array(), $this->version, 'all' ); if ( is_aol_admin_screen() ){ wp_enqueue_style( 'aol-select2', plugin_dir_url( __FILE__ ) . 'select2/css/select2.min.css', array(), $this->version, 'all' ); wp_enqueue_style('aol-jquery-ui', plugin_dir_url(__FILE__).'css/jquery-ui.min.css'); } } /** * Register the JavaScript for the admin area. * * @since 1.0.0 */ public function enqueue_scripts($hooks) { /** * This function is provided for demonstration purposes only. * * An instance of this class should be passed to the run() function * defined in Applyonline_Loader as all of the hooks are defined * in that particular class. * * The Applyonline_Loader will then create the relationship * between the defined hooks and the functions defined in this * class. */ $localize = array(); $localize['app_submission_message'] = esc_html__('Form has been submitted successfully. If required, we will get back to you shortly!', 'apply-online'); $localize['app_closed_alert'] = esc_html__('We are no longer accepting applications for this ad!', 'apply-online'); $localize['aol_required_fields_notice'] = esc_html__('Fields with (*) are compulsory.', 'apply-online'); $localize['admin_url'] = admin_url(); $localize['aol_url'] = plugins_url( 'apply-online/' ); $localize['nonce'] = wp_create_nonce('aol_nonce'); wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/applyonline-admin.js', array( 'jquery', 'jquery-ui-sortable', 'jquery-ui-autocomplete' ), $this->version, TRUE ); if( is_aol_admin_screen() ) wp_enqueue_script( 'aol-select2', plugin_dir_url( __FILE__ ) . 'js/select2.min.js', array(), $this->version, TRUE ); wp_localize_script( $this->plugin_name, 'aol_admin', $localize ); wp_enqueue_script( 'jquery-ui-datepicker'); } function get_ads_list(){ if( !current_user_can('manage_ads') ) die('Are you nuts?'); $types = get_aol_ad_types(); $posts = get_posts(array('numberposts' => -1, 'post_type' => $types)); $response = array(); foreach($posts as $post){ $response[] = $post->post_title; } echo json_encode($response); exit; } function ad_editor_authors_metabox($args){ global $post; $ad_types = aol_ad_types(); if ( !in_array(substr($post->post_type, 4), array_keys($ad_types) ) ) return $args; $args['role__in'] = array('aol_manager', 'administrator'); $args['who'] = null; return $args; } function status_filters($views){ unset($views['mine']); unset($views['publish']); $statuses = aol_app_statuses(); foreach ($statuses as $key => $status){ (isset($_GET['aol_application_status']) AND $_GET['aol_application_status'] == $key)? $class = 'current' : $class = NULL; $views[$status] = ''.esc_html__($status, 'apply-online').''; } return $views; } /** * Save the meta when the post is saved. * * @param int $post_id The ID of the post being saved. */ function save_ad( $post_id ){ /* * We need to verify this came from our screen and with proper authorization, * because the save_post action can be triggered at other times. */ if( !current_user_can('edit_ads') ) return; // Check if our nonce is set. if ( ! isset( $_POST['adpost_meta_box_nonce'] ) ) { return; } // Verify that the nonce is valid. if ( ! wp_verify_nonce( $_POST['adpost_meta_box_nonce'], 'myplugin_adpost_meta_awesome_box' ) ) { return; } $types = get_aol_ad_types(); if ( !in_array($_POST['post_type'], $types) ) return; /* OK, it's safe for us to save the data now. */ //Update ad closing if ( isset($_POST['_aol_ad_closing_date']) ) { $time = empty(trim($_POST['_aol_ad_closing_time'])) ? '2359' : trim($_POST['_aol_ad_closing_time']); $timestamp = empty(trim($_POST['_aol_ad_closing_date'])) ? NULL: strtotime($_POST['_aol_ad_closing_date'].' '.$time); update_post_meta( $post_id, '_aol_ad_closing_date', $timestamp); //Add new value. } update_post_meta( $post_id, '_aol_ad_close_type', sanitize_key($_POST['_aol_ad_close_type']) ); //Add new value. update_post_meta( $post_id, '_recipients_emails', sanitize_textarea_field( $_POST['_recipients_emails']) ); //Add new value. //Save ad settings fields from ad ad settings API. /* $settings = apply_filters('aol_ad_options', array()); foreach($settings as $setting){ update_post_meta( $post_id, $setting['key'], $settings['value']); //Add new value. } * */ } /* * Show data in the Filter Application dropdown on Applications Admin Table */ function application_table_filter_result(){ if( !current_user_can('manage_ads') ) die('Are you nuts?'); //$search = (isset($_GET['search']) AND !empty($_GET['search'])) ? $_GET['search']: NULL; $ads = get_posts(array('post_type' => 'aol_ad', 's' => $_GET['search'], 'lang' => '', 'numberposts' => -1)); $ads_arr = array(); $i = 0; foreach($ads as $ad){ $ads_arr[$i]['id'] = $ad->ID; $ads_arr[$i]['text'] = $ad->post_title; $i++; } wp_send_json($ads_arr); } public function admin_notice(){ //$notices = get_option('aol_dismissed_notices', array()); Obselete in favor of aol_admin_notices since 2.5.1 $notices = get_option('aol_admin_notices', array('aol_fresh_install')); if( empty($notices) OR !current_user_can('manage_options')) return; //esc_html__( "%sApply Online%s - It's good to %scheck things%s before a long drive.", 'apply-online' ) ?>

    ', ''); ?> ', ''); ?> ', ''); ?>

    '.sprintf(esc_html__('%sApplyOnline - Statuses%s extension has been depricated since apply-online 2.1. %sClick Here%s to uninstall this extension.', 'apply-online'), '', '', '', '').'

    '; if( is_plugin_active('applyonline-filters/applyonline-filters.php') ) echo '

    '.sprintf(esc_html__('%sApplyOnline - Filters%s extension has been depricated since ApplyOnline 2.1. %sClick Here%s to uninstall this extension.', 'apply-online'), '', '', '', '').'

    '; //Sticky Note unless option is saved. $path = get_option('aol_upload_path'); if( empty($path) AND current_user_can('manage_options')){ ?>

    ', ''); ?> ', ''); ?>

    ID, '_aol_ad_closing_date', true); if($timestamp != null and $timestamp < time()){ $post_states['ad_closed'] = __( 'Closed' ); } return $post_states; } /** * Extend WordPress search to include custom fields * Join posts and postmeta tables * * https://codex.wordpress.org/Plugin_API/Filter_Reference/posts_join * * @since 1.6 */ function cf_search_join( $join ) { global $wpdb; if ( is_search() and is_admin() ) { $join .=' LEFT JOIN '.$wpdb->postmeta. ' ON '. $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id '; } return $join; } /** * Modify the search query with posts_where * * https://codex.wordpress.org/Plugin_API/Filter_Reference/posts_where * * @since 1.6 */ function cf_search_where( $where ) { global $wpdb; if ( is_search() and is_admin() ) { $where = preg_replace( "/\(\s*".$wpdb->posts.".post_title\s+LIKE\s*(\'[^\']+\')\s*\)/", "(".$wpdb->posts.".post_title LIKE $1) OR (".$wpdb->postmeta.".meta_value LIKE $1)", $where ); } return $where; } /** * Prevent duplicates * * https://codex.wordpress.org/Plugin_API/Filter_Reference/posts_distinct * * @since 1.6 */ function cf_search_distinct( $where ) { global $wpdb; if ( is_search() and is_admin() ) { return "DISTINCT"; } return $where; } /** * */ public function comments_fix($actions, $comment){ $post_id = $comment->comment_post_ID; if(get_post_field('post_type', $post_id) == 'aol_application'){ $author = get_user_by('email', $comment->comment_author_email ); if(get_current_user_id() != $author->ID) unset($actions['quickedit']); //if not comment author, dont show the quick edit unset($actions['unapprove']); unset($actions['trash']); unset($actions['edit']); } return $actions; } } class ApplyOnline_Ad_Options{ public function __construct() { add_action( 'add_meta_boxes', array($this, 'add_meta_boxes'),1 ); } function add_meta_boxes(){ $screens = array('aol_ad'); $types = get_option_fixed('aol_ad_types'); if(is_array($types)){ foreach ($types as $type){ $screens[] = 'aol_'.strtolower($type['singular']); } } if(empty($screens) or !is_array($screens)) $screens = array(); add_meta_box( 'aol_ad_options', ' '.esc_html__('Ad Options', 'apply-online' ), array($this, 'aol_ad_options'), $screens, 'advanced', 'high' ); } public function aol_ad_options($post){ $types = get_aol_ad_types(); if( !in_array($post->post_type, $types)) return; $recipients = get_post_meta($post->ID, '_recipients_emails', true); //var_dump($recipients); //var_dump( explode("\n", str_replace(array("\r", " "),"", $recipients)) ); $date = $closed_class = $time = NULL; $close_type = get_post_meta($post->ID, '_aol_ad_close_type', true); $close_form = ($close_type == 'form' or empty($close_type)) ? 'checked': NULL; $close_ad = ($close_type == 'ad') ? 'checked': NULL; $timestamp = get_post_meta($post->ID, '_aol_ad_closing_date', true); if(!empty($timestamp)){ $date = date_i18n('j-m-Y' ,$timestamp); $time = date_i18n('H:i' ,$timestamp); $closed_class = ($timestamp < time()) ? 'closed' : null; } $extra_tabs = apply_filters('aol_ad_options_api', array(), $post); ob_start(); ?>

    : dd-mm-yyyy
    :

    :

    '.$tab['content'].'
    '; endforeach; ?> '.esc_html__('Ad Features', 'apply-online' ), array($this, 'ad_features'), $screens, 'advanced', 'high' ); } public function ad_features( $post ){ // Add a nonce field so we can check for it later. wp_nonce_field( 'myplugin_adpost_meta_awesome_box', 'adpost_meta_box_nonce' ); $keys = get_post_custom_keys( $post->ID); $features = array(); if($keys != NULL): foreach($keys as $key): if(substr($key, 0, 13)=='_aol_feature_'){ $features[$key] = get_post_meta($post->ID, $key, TRUE); } endforeach; endif; $features = apply_filters('aol_features', $features, $post); /* * Use get_post_meta() to retrieve an existing value * from the database and use the value for the form. */ ?>
      $val): $key = sanitize_key($key); echo '
    1. '; //echo ''; if( is_array( $val) ){ echo '    
      Delete
    2. '; } else{ echo '  
      Delete
      '; } echo ''; endforeach; ?>

             
    $val){ $actions['change_to_'.$key] = sprintf(esc_html__('Change to %s'), $val); } return $actions; } function my_bulk_action_handler($redirect_to, $term, $post_ids){ if( !current_user_can('delete_applications') ) return; $stauses = aol_app_statuses_active(); $stauses = array_keys($stauses); $term = str_replace('change_to_', '', $term); if ( !in_array($term, $stauses) ) return $redirect_to; foreach ( $post_ids as $post_id ) { $result = wp_set_post_terms( $post_id, $term, 'aol_application_status' ); do_action('aol_application_status_change', $result[0], $post_id); } //$redirect_to = add_query_arg( 'bulk_emailed_posts', count( $post_ids ), $redirect_to ); return $redirect_to; } public function aol_post_row_actions($actions, $post){ $types = get_aol_ad_types(); if($post->post_type == 'aol_application'){ $actions = array(); //Empty actions. $filter = isset($_GET['aol_application_status']) ? '&aol_application_status=pending' : NULL; $actions['filters'] = ''; $actions['ad'] = ''; $actions['view'] = ''; } elseif( in_array($post->post_type, $types) ){ $actions['test'] = ''.esc_html__('Applications', 'apply-online').''; } return apply_filters('aol_application_row_actions', $actions); } /** * Creates Detail Page for Applicants * * * @access public * @since 1.0.0 * @return void */ public function aol_application_post_editor ($post){ //global $post; if ( !empty( $post ) and $post->post_type =='aol_application' ): ?>

    #ID.' - '. sanitize_text_field($post->post_title); ?>


    ID, '_aol_attachment', true ); ?>    
    ID, 'aol_application_status'); $stauses = aol_app_statuses_active(); ?>

    post_parent); ?> > <?php esc_html_e('Application','apply-online');?> <?php echo (int)$ad_id; ?> - <?php esc_html_e('ApplyOnline','apply-online');?>
    #

    post_title); ?>

    post_date); ?>

      '', 'id' => esc_html__( 'ID', 'apply-online' ), 'title' => esc_html__( 'Ad Title', 'apply-online' ), 'qview' => NULL, 'applicant'=> esc_html__( 'Applicant', 'apply-online' ), 'taxonomy' => esc_html__( 'Status', 'apply-online' ), ); $columns = apply_filters('aol_application_posts_columns', $columns); $columns['date'] = esc_html__( 'Date', 'apply-online' ); return $columns; } /** * Applicant Listing - Column Value * * @param array $columns * @param int $post_id * @access public * @return void */ public function applicants_list_columns_value( $column, $post_id ){ $keys = get_post_custom_keys( $post_id ); $values = get_post_meta($post_id); $new = array(); foreach($values as $key => $val){ $new[$key]=$val[0]; } $name = aol_array_find('Name', $keys); switch ( $column ) { case 'id' : echo $post_id; break; case 'qview' : add_thickbox(); $url = add_query_arg( array( 'action' => 'aol_modal_box', 'app_id' => $post_id, 'TB_iframe' => 'true', ), admin_url( 'admin.php' ) ); echo ''; break; case 'applicant' : if($name === FALSE): $applicant_name = esc_html__('Undefined', 'apply-online'); else: $applicant = apply_filters( 'aol_applicants_table_name_column', get_post_meta( $post_id, $keys[ $name ], TRUE ), $post_id, $keys[ $name ] ); if(is_object($applicant)) $applicant = NULL; elseif(is_array($applicant)) $applicant = implode(',', $applicant); $applicant_name = sprintf( '%s', esc_url( add_query_arg( array ( 'post' => $post_id, 'action' => 'edit' ), 'post.php' ) ), esc_html( $applicant ) ); endif; echo sanitize_text_field($applicant_name); break; case 'taxonomy' : //$parent_id = wp_get_post_parent_id( $post_id ); // get_post_field ( 'post_parent', $post_id ); $terms = get_the_terms( $post_id, 'aol_application_status' ); $statuses = aol_app_statuses(); if ( ! empty( $terms ) ) { $out = array (); foreach ( $terms as $term ){ $status_name = isset($statuses[$term->slug]) ? $statuses[$term->slug] : $term->name; $out[] = sprintf( '%s', esc_url( add_query_arg( array ( 'post_type' => 'aol_application', 'aol_application_status' => $term->slug ), 'edit.php' ) ), esc_html( sanitize_term_field( 'name', __($status_name, 'apply-online'), $term->term_id, 'aol_application_status', 'display' ) ) ); } echo sanitize_text_field(join( ', ', $out )); }/* If no terms were found, output a default message. */ else { esc_html_e( 'Undefined' , 'apply-online'); } break; } } /** * Quick View application * * @param array $columns * @access public * @return array */ public function application_quick_view() { if( !current_user_can('manage_ads') OR empty( (int)$_GET['app_id']) ) die('Are you nuts?'); $ad_id = (int)$_GET['app_id']; $post = get_post( $ad_id ); define( 'IFRAME_REQUEST', true ); iframe_header(); $this->aol_application_post_editor($post); iframe_footer(); exit; } function application_date_column($status, $post ){ if($post->post_type == 'aol_application') $status = esc_html__('Received'); return $status; } public function applications_filter( $query ) { if ( $query->is_main_query() AND is_admin() AND isset($_GET['ad'])) { $parent_id = (int)$_GET['ad']; //If Polaylang is active if(function_exists('pll_get_post_translations')){ $post_translation_ids = pll_get_post_translations( $parent_id ); $post_translation_ids[] = $parent_id; $query->set( 'post_parent__in', $post_translation_ids ); //$query->set( 'orderby', 'title' ); //$query->set( 'order', 'ASC' ); //$query->set( 'post_parent', NULL ); } else{ $query->set( 'post_parent', $parent_id ); //Set post parent ID. } } } } /** * This class adds Meta Boxes to the Edit Screen of the Ads. * * * @since 1.0 * @package MetaBoxes * @subpackage MetaBoxes/includes * @author Farhan Noor **/ class Applyonline_Form_Builder{ /** * Application Form Field Types. * * @since 1.3 * @access public * @var string $plugin_name The ID of this plugin. */ var $app_field_types; public function __construct() { $this->app_field_types = $this->app_field_types(); add_action( 'save_post', array($this, 'save_form_elements'),1 ); add_action( 'add_meta_boxes', array($this, 'aol_meta_boxes'),1 ); /*Ajax Calls*/ add_action("wp_ajax_aol_template_render", array($this, "template_form_callback")); add_action("wp_ajax_aol_ad_form_render", array($this, "aol_ad_form_render")); } //Save From Elements in the Database function save_form_elements( $post_id ){ /* * We need to verify this came from our screen and with proper authorization, * because the save_post action can be triggered at other times. */ if( !current_user_can('edit_ads') ) return; // Check if our nonce is set. if ( ! isset( $_POST['adpost_meta_box_nonce'] ) ) { return; } // Verify that the nonce is valid. if ( ! wp_verify_nonce( $_POST['adpost_meta_box_nonce'], 'myplugin_adpost_meta_awesome_box' ) ) { return; } /* OK, it's safe for us to save the data now. */ $types = get_aol_ad_types(); if ( !in_array($_POST['post_type'], $types) ) return; //Delete fields. $old_keys = (array)get_post_custom_keys($post_id); $new_keys = array_keys($_POST); $new_keys = array_map('sanitize_key', $new_keys); //First santize all keys. $removed_keys = array_diff($old_keys, $new_keys); //List of removed meta keys. foreach($removed_keys as $key => $val): if(substr($val, 0, 13) == '_aol_feature_' OR substr($val, 0, 9) == '_aol_app_'){ delete_post_meta($post_id, $val); //Remove meta from the db. } endforeach; $existing_keys = array_diff($old_keys, $removed_keys); //List of removed meta keys. UNUSED // Add/update new value. $fields_order = array(); foreach ($_POST as $key => $val): $key = sanitize_key($key); //Sanitize Key before processing. // Make sure that it is set. if ( substr($key, 0, 13)=='_aol_feature_' and isset( $val ) ) { //die('Hello World'); /*Adding Support for version >= 1.9*/ if( !is_array($val) ){ $val = array('label' => str_replace('_', ' ',substr($key, 13)), 'value' => sanitize_text_field($val)); //sanitize & convert to array. } //Sanitize user input. $my_data = array_map( 'sanitize_text_field', $val ); $restul = update_post_meta( $post_id, $key, $my_data); // Add new value. } // Make sure that it is set. elseif ( substr($key, 0, 9) == '_aol_app_' and isset( $val ) ) { //$my_data = serialize($val); if(in_array($val['type'], array('separator', 'seprator', 'paragraph'))) $val['required'] = 0; if(isset($val['options'])){ $val['options'] = explode(',', $val['options']); $val['options'] = implode(',', array_map('trim',$val['options'])); } /*END - Remove white spaces */ update_post_meta( $post_id, $key, aol_array_map_r( 'sanitize_textarea_field', $val ) ); // Add new value. $fields_order[] = $key; } // endforeach; update_post_meta( $post_id, '_aol_fields_order', $fields_order); // Add new value. } /** * Metaboxes for Ads Editor * * @since 1.0 */ function aol_meta_boxes($post) { $screens = array('aol_ad'); $types = get_option_fixed('aol_ad_types'); if(is_array($types)){ foreach ($types as $type){ $screens[] = 'aol_'.strtolower($type['singular']); } } if(empty($screens) or !is_array($screens)) $screens = array(); add_meta_box( 'aol_ad_app_fields', ' '.esc_html__('Application Form Builder', 'apply-online' ), array($this, 'application_form_fields'), $screens, 'advanced', 'high' ); /* add_meta_box( 'aol_form_builder', esc_html__( 'New Application Form Builder', 'apply-online' ), array($this, 'application_form_builder'), $screens, 'advanced', 'high' ); * */ } function app_field_types(){ return array( 'text'=> esc_html__('Text Field','apply-online'), 'number'=> esc_html__('Number Field','apply-online'), 'text_area'=>esc_html__('Text Area','apply-online'), 'email'=> esc_html__('E Mail Field','apply-online'), 'date'=>esc_html__('Date Field','apply-online'), 'checkbox'=>esc_html__('Check Boxes','apply-online'), 'radio'=> esc_html__('Radio Buttons','apply-online'), 'dropdown'=>esc_html__('Dropdown Options','apply-online'), 'file'=>esc_html__('Attachment Field','apply-online'), //'seprator' => 'Seprator', //Deprecated since 1.9.6. Need to be fixed for older versions. 'separator' => esc_html__('Separator','apply-online'), 'paragraph' => esc_html__('Paragraph','apply-online'), //'url' => esc_html__('URL','apply-online'), ); } public function aol_fields_icons($id="") { $icons = array( 'text' => 'dashicons-editor-textcolor', 'text_area' => 'dashicons-format-aside', 'number' => 'dashicons-editor-ol', 'email' => 'dashicons-email-alt', 'date' => 'dashicons-calendar', 'checkbox' => 'dashicons-yes', 'radio' => 'dashicons-marker', 'dropdown' => 'dashicons-sort', 'file' => 'dashicons-paperclip', 'separator' => 'dashicons-minus', 'paragraph' => 'dashicons-editor-justify', 'url' => 'dashicons-admin-links' ); //if((float)get_bloginfo('version') < 5) $icons['file'] = 'dashicons-admin-links'; $icon = ''; return $icon; } public function application_fields_generator($app_fields, $temp = NULL){ add_thickbox(); $adapp_form_generator = empty($temp) ? 'adapp_form_fields' : 'adapp_generator_'.$temp ?> $val){ if( substr($key, 0, 8) == '_aol_app' ) $fields[$key] = maybe_unserialize ($val[0]); } echo $this->aol_form_template($fields); exit; } /* * An ajax call to return Application Template Form Fields. */ function template_form_callback(){ if( !current_user_can('manage_ads') OR !wp_verify_nonce( $_POST['nonce'], 'aol_nonce' ) ) die('Are you nuts?'); $fields = get_option('aol_form_templates', array()); $array = $fields[ sanitize_text_field($_POST['template']) ]; foreach($array as $key => $field){ if( substr($key, 0, 4) != '_aol' ) unset($array[$key]); } echo $this->aol_form_template($array); exit; } function aol_form_template($fields, $tempid = NULL){ add_thickbox(); $types_names = $this->app_field_types(); $req_class = NULL; foreach($fields as $key => $val): if(substr($key, 0, 9) != '_aol_app_') continue; //Sanitizing data before output. $key = esc_attr($key); $label = isset($val['label']) ? sanitize_text_field($val['label']) : str_replace('_',' ',substr($key,9)); if($val['type']=='seprator') $val['type'] = 'separator'; //Fixed bug before 1.9.6, spell mistake in the key. //if(!isset($val['required'])) $val['required'] = 1; // $req_class = ($val['required'] == 0) ? 'button-disabled': null; $fields = NULL; $field_types = $this->app_field_types(); foreach($field_types as $field_key => $field_val){ $field_key = esc_attr($field_key); $field_val = sanitize_text_field($field_val); if($val['type'] == $field_key) $fields .= ''; else $fields .= ''; } $req_class .= ($val['type'] == 'separator' OR $val['type'] == 'paragraph') ? ' button-disabled' : ' toggle-required'; echo ''; echo '  '; echo ''; empty($tempid) ? do_action('aol_after_form_field', $key) : do_action('aol_after_application_template_field', $tempid, $key); echo '
    '; $this->row_popup($key, $val, $tempid); echo ''; echo ''; //} endforeach; } public function row_popup($key, $val, $template = NULL){ //Sanitizing data before output. $template = sanitize_key($template); $key = esc_attr($key); $label = isset($val['label']) ? esc_attr($val['label']) : str_replace('_',' ',substr($key,9)); $description = isset($val['description']) ? esc_attr($val['description']) : NULL; // $text = isset($val['text']) ? sanitize_textarea_field($val['text']) : $description; // $height = (isset($val['height']) and $val['height'] > 0) ? (int)($val['height']) : 0; // $placeholder = isset($val['placeholder']) ? esc_attr($val['placeholder']) : NULL; $limit = isset($val['limit']) ? (int)$val['limit'] : NULL; $class = !empty($val['class']) ? esc_attr($val['class']) : NULL; $types = !empty($val['allowed_file_types']) ? esc_attr($val['allowed_file_types']) : esc_attr(get_option("aol_allowed_file_types", ALLOWED_FILE_TYPES)); $size = !empty($val['allowed_size']) ? (int)$val['allowed_size'] : (int)get_option('aol_upload_max_size'); $selection = !empty($val['preselect']) && $val['preselect'] == 1 ? 'checked' : ''; $icon = sanitize_text_field($this->aol_fields_icons($val['type'])); $name = empty($template) ? $key : $template."[$key]"; $required = isset( $val['required'] ) ? (int)$val['required'] : 0; $checked = !empty( $val['required'] ) && $val['required'] == 1 ? 'checked' : ''; $notify = !empty( $val['notify'] ) && $val['notify'] == 1 ? 'checked' : ''; echo ''; //End class="aol_form" } public function application_form_fields( $post ) { //global $adfields; // Add a nonce field so we can check for it later. wp_nonce_field( 'myplugin_adpost_meta_awesome_box', 'adpost_meta_box_nonce' ); do_action('aol_before_form_builder', $post); /* * Use get_post_meta() to retrieve an existing value * from the database and use the value for the form. */ ?>
    ID); if(empty($fields)): //$fields = get_option('aol_default_fields', array()); //if(empty($fields)): $fields = get_option('aol_form_templates', array()); $templates = TRUE; $keys = array_keys($fields); $options = null; //Sanitizing data before output. foreach($keys as $key){ $options.= ''; } ?> aol_form_template($fields); endif; do_action('aol_after_form_builder', $post); ?>
       
    application_fields_generator($this->app_field_types); ?> version = $version; //Registering Submenus. add_action('admin_menu', array($this, 'sub_menus')); //Registering Settings. add_action( 'admin_init', array($this, 'registers_settings') ); add_filter( 'plugin_row_meta', array($this, 'plugin_row_meta'), 10, 2 ); //Manageing AOL role capabilites. add_filter( "option_page_capability_aol_settings_group", 'aol_manager_capability' ); add_filter( "option_page_capability_aol_ad_template", 'aol_manager_capability' ); add_filter( "option_page_capability_aol_ads", 'aol_manager_capability' ); add_filter( "option_page_capability_aol_applications", 'aol_manager_capability' ); } public function plugin_row_meta($links, $file){ if ( strpos( $file, 'apply-online.php' ) !== false ){ $links['settings'] = ''.esc_html__('Settings', 'apply-online').''; } return $links; } public function sub_menus(){ add_menu_page( esc_html__('Settings', 'apply-online'), _x('ApplyOnline', 'Admin Menu', 'apply-online'), 'edit_applications', 'aol-settings', array($this, 'settings_page_callback'), 'dashicons-admin-site',31 ); add_submenu_page('aol-settings', esc_html__('Settings', 'apply-online'), esc_html__('Settings', 'apply-online'), 'delete_others_ads', 'aol-settings'); $filters = aol_ad_filters(); foreach($filters as $key => $val){ add_submenu_page( 'aol-settings', '', sprintf(esc_html__('%s Filter', 'apply-online'), $val['plural']), 'delete_others_ads', "edit-tags.php?taxonomy=aol_ad_".sanitize_key($key)."&post_type=aol_ad", null ); } } function save_settings(){ if(!current_user_can('edit_applications')) return; if ( !empty( $_POST['aol_default_app_fields'] ) && check_admin_referer( 'aol_awesome_pretty_nonce','aol_default_app_fields' ) ) { $args = array( 'label' => FILTER_SANITIZE_STRING, 'required' => 1, 'type' => FILTER_SANITIZE_STRING, 'description' => FILTER_SANITIZE_STRING, 'placeholder' => FILTER_SANITIZE_STRING, 'class' => FILTER_SANITIZE_STRING, 'limit' => FILTER_SANITIZE_NUMBER_INT, 'preselect' => FILTER_SANITIZE_NUMBER_INT, 'options' => FILTER_SANITIZE_STRING, 'filter' => FILTER_SANITIZE_STRING, ); $settings = array(); foreach($_POST as $tempid => $template): //Check if all top level template keys starts with 'template' keyword. if(isset($_POST[$tempid])){ if($tempid == 'new'){ if( !empty($_POST[$tempid]['templateName']) ) $settings['template'.time()] = $template; unset($_POST[$tempid]); } elseif( substr($tempid, 0, 8) == 'template' ){ foreach($template as $key => $val){ $settings[sanitize_key($tempid)][$key] = is_array($val) ? filter_var_array($val, $args) : sanitize_text_field($val); } } //elseif( substr($tempid, 0, 8) != 'template' ) unset ($_POST[$tempid]); 16/08/2019 //if(is_array($template) AND (key($template) != 'templateName' OR substr(key($template), 0, 4) != '_aol')) unset($_POST[$tempid][key($template)]); } /* if(substr($tempid, 0, 8) != 'template'){ unset($_POST[$tempid]); continue; } * */ //Remove unnecessary fields //foreach($template as $key => $val){ //If not an aol meta key, unset it & continue to next iteration. //Replacing meta key with sanitized one. //unset($_POST[$tempid][$key]); //$_POST[$tempid][sanitize_key($key)] = $val; //} //Save aol default fields in DB. endforeach; update_option('aol_form_templates', $settings, FALSE); do_action('aol_save_settings'); } } function settings_api(){ $tabs = array( 'general' => array( 'id' => 'general', 'name' => esc_html__( 'General' ,'apply-online' ), 'desc' => esc_html__( 'Global settings for the plugin. Some options can be overwritten from the ad editor screen.', 'apply-online' ), 'href' => null, 'classes' => ' active', 'callback' => array($this, 'tab_general') ),/* 'ui' => array( 'id' => 'ui', 'name' => esc_html__('User Interface' ,'apply-online'), 'desc' => esc_html__( 'Front-end User Iterface Manager', 'apply-online' ), 'href' => null, ), * */ 'template' => array( 'id' => 'template', 'name' => esc_html__('Template' ,'apply-online'), 'desc' => esc_html__( 'Application form templates for new ads.', 'apply-online' ), 'href' => null, 'callback' => array($this, 'tab_template') ), 'applications' => array( 'id' => 'applications', 'name' => esc_html__('Applications' ,'apply-online'), 'desc' => esc_html__( 'This section is intended for received applications.', 'apply-online' ), 'href' => null, 'callback' => array($this, 'tab_applications') ), 'filters' => array( 'id' => 'filters', 'name' => esc_html__('Ad Filters' ,'apply-online'), 'desc' => esc_html__( 'Display Filters in [aol] shortcode outupt.', 'apply-online' ), 'href' => null, 'callback' => array($this, 'tab_filters') ), 'types' => array( 'id' => 'types', 'name' => esc_html__('Ad Types' ,'apply-online'), 'desc' => esc_html__( 'Define different types of ads e.g. Careers, Classes, Memberships. These types will appear under All Ads section in WordPress admin panel.', 'apply-online' ), 'href' => null, 'callback' => array($this, 'tab_types') ), ); $tabs = apply_filters('aol_settings_tabs', $tabs); //Show these tabs at the end. $tabs['faqs'] = array( 'id' => 'faqs', 'name' => esc_html__('FAQ' ,'apply-online'), 'desc' => esc_html__('Frequently Asked Questions.' ,'apply-online'), 'href' => null, 'callback' => array($this, 'tab_faqs') ); $tabs['extend'] = array( 'id' => 'extend', 'name' => esc_html__('Extend' ,'apply-online'), 'desc' => esc_html__('Extend Plugin' ,'apply-online'), 'href' => 'https://wpreloaded.com/shop/', 'capability' => 'manage_options', 'callback' => array($this, 'tab_extend') ); $tabs = apply_filters('aol_settings_all_tabs', $tabs); return $tabs; } public function settings_page_callback(){ $this->save_settings(); //$tabs = json_decode(json_encode($this->settings_api()), FALSE); $tabs = $this->settings_api(); ob_start(); ?>

    version); ?>

    output) and !isset($tab->callback) ) ? $tab->output : $tab->callback; echo '
    '; if(isset($tab['name'])) echo '

    '.sanitize_text_field($tab['name']).'

    '; if(isset($tab['desc'])) echo '

    '.sanitize_text_field($tab['desc']).'

    '; //Output is already sanitized in the concerned method. $callback = $tab['callback']; //echo isset($tab['output']) ? $tab['output'] : $this[$callback()]; if( is_array($callback) ){ $obj = $callback[0]; $method = $callback[1]; echo $obj->$method(); } else { echo $callback(); } echo '
    '; } ?>
    'sanitize_textarea_field') ); register_setting( 'aol_settings_group', 'aol_application_success_alert', array( 'sanitize_callback' => 'sanitize_text_field') ); register_setting( 'aol_settings_group', 'aol_is_progress_bar', array( 'sanitize_callback' => 'boolval') ); register_setting( 'aol_settings_group', 'aol_progress_bar_color', array( 'sanitize_callback' => 'aol_sanitize_array') ); register_setting( 'aol_settings_group', 'aol_shortcode_readmore', array( 'sanitize_callback' => 'esc_attr') ); register_setting( 'aol_settings_group', 'aol_application_submit_button', array( 'sanitize_callback' => 'esc_attr') ); register_setting( 'aol_settings_group', 'aol_required_fields_notice', array( 'sanitize_callback' => 'sanitize_text_field')); register_setting( 'aol_settings_group', 'aol_thankyou_page', array( 'sanitize_callback' => 'sanitize_text_field') ); register_setting( 'aol_settings_group', 'aol_upload_path', array( 'sanitize_callback' => 'sanitize_text_field') ); register_setting( 'aol_settings_group', 'aol_form_heading', array( 'sanitize_callback' => 'esc_attr') ); register_setting( 'aol_settings_group', 'aol_features_title', array( 'sanitize_callback' => 'esc_attr') ); register_setting( 'aol_settings_group', 'aol_slug', 'sanitize_title', array( 'sanitize_callback' => 'sanitize_key') ); register_setting( 'aol_settings_group', 'aol_upload_max_size', array('default' => 1, 'sanitize_callback' => 'intval') ); register_setting( 'aol_settings_group', 'aol_days_for_older_ads_alert', array('default' => 0, 'sanitize_callback' => 'intval') ); //register_setting( 'aol_settings_group', 'aol_upload_folder', array('sanitize_callback' => 'sanitize_text_field') ); register_setting( 'aol_settings_group', 'aol_allowed_file_types', array('sanitize_callback' => 'sanitize_text_field') ); register_setting( 'aol_settings_group', 'aol_application_close_message', array( 'sanitize_callback' => 'sanitize_text_field') ); register_setting( 'aol_settings_group', 'aol_ad_author_notification', array( 'sanitize_callback' => 'boolval') ); //register_setting( 'aol_settings_group', 'aol_nonce_is_active', array( 'sanitize_callback' => 'sanitize_text_field') ); register_setting( 'aol_settings_group', 'aol_success_mail_message', array( 'sanitize_callback' => 'sanitize_textarea_field') ); register_setting( 'aol_settings_group', 'aol_success_mail_subject', array( 'sanitize_callback' => 'esc_attr') ); register_setting( 'aol_settings_group', 'aol_admin_mail_subject', array( 'sanitize_callback' => 'esc_attr') ); register_setting( 'aol_settings_group', 'aol_not_found_alert', array( 'sanitize_callback' => 'esc_attr') ); register_setting( 'aol_filters', 'aol_ad_filters', array( 'sanitize_callback' => 'aol_sanitize_array') ); //Registering settings for aol_settings API option. $settings = get_aol_settings(); foreach($settings as $setting){ //$key = get_option($setting['key']); register_setting( 'aol_settings_group', $setting['key'], array( 'sanitize_callback' => $setting['sanitize_callback']) ); } register_setting( 'aol_ad_template', 'aol_default_fields');//Depreciated register_setting( 'aol_ad_template', 'aol_form_templates'); register_setting( 'aol_ads', 'aol_ad_types', array('sanitize_callback' => 'aol_sanitize_array') ); register_setting( 'aol_applications', 'aol_app_statuses', array('default' => array())); register_setting( 'aol_applications', 'aol_custom_statuses', array('default' => array(), 'sanitize_callback' => 'aol_sanitize_array')); register_setting( 'aol_ui_settings_group', 'aol_submit_button_classes', array('sanitize_callback' => 'sanitize_text_field')); register_setting( 'aol_ui_settings_group', 'aol_readmore_button_classes', array('sanitize_callback' => 'sanitize_text_field')); register_setting( 'aol_ui_settings_group', 'aol_multistep_button_classes', array('sanitize_callback' => 'sanitize_text_field')); register_setting( 'aol_ui_settings_group', 'aol_submit_button_classes', array('sanitize_callback' => 'sanitize_text_field')); register_setting( 'aol_ui_settings_group', 'aol_submit_button_classes', array('sanitize_callback' => 'sanitize_text_field')); //On update of aol_slug field, update permalink too. add_action('update_option_aol_slug', array($this, 'refresh_permalink')); add_action('update_option_aol_ad_types', array($this, 'refresh_types_permalink'), 10, 3); } public function refresh_permalink(){ //Re register post type for proper Flush Rules. $slug = get_option_fixed('aol_slug', 'ads'); /*Register Main Post Type*/ register_post_type('aol_ad', array('has_archive' => true, 'rewrite' => array('slug'=> $slug))); flush_rewrite_rules(); } function register_ad_types_for_flushing($cpt, $plural){ $result = register_post_type('aol_'.$cpt, array( 'has_archive' => true, 'public' => true, 'rewrite' => array('slug' => $plural), )); } function refresh_types_permalink($old, $new, $option){ wp_cache_delete ( 'alloptions', 'options' ); foreach($new as $cpt => $val){ $this->register_ad_types_for_flushing($cpt, $val['plural']); } flush_rewrite_rules(); } private function wp_pages(){ $pages = get_pages(); $pages_arr = array(); foreach ( $pages as $page ) { $pages_arr[$page->ID] = $page->post_title; } return $pages_arr; } private function tab_general(){ ?>
    '#222222', 'background' => '#dddddd', 'counter' => '#888888')); $failure_alert = "Something went wrong please follow these instruciton: Try submitting form again. Refresh page and try submitting form again. If problem persists, please report this issue through Contact Us page."; $submission_alert = 'Form has been submitted successfully with application id [id]. If required, we will get back to you shortly!'; $message="Hi there,\n\n" ."Thanks for showing interest in the ad: [title]. Your application with id [id] has been received. We will review your application and contact you if required.\n\n" .sprintf(__('Team %s'), get_bloginfo('name'))."\n" .site_url()."\n" ."Please do not reply to this system generated message."; $depricated = sprintf(__('This section is being depricated and will be removed on %s. Please use similar section in each ad.', 'apply-online'), date('M d, Y')); ?>

       



    ', ''); ?>

    ', ''); ?>

    '.get_post_type_archive_link('aol_ad').'') ?>

    MBs

    '.sanitize_text_field( $setting['button']['title'] ).'': NULL ; ?>

    '; echo sanitize_text_field( $setting['helptext'] ); ?>

    app_field_types(); settings_fields( 'aol_ad_template' ); do_settings_sections( 'aol_ad_template' ); //Support for deprecated Template Form. $xfields = get_option('aol_default_fields'); if(!empty($xfields)){ $xfields['templateName'] = 'Default Template'; update_option ('aol_form_templates', array('templatedefault' => $xfields)); update_option ('aol_default_fields_x', $xfields, FALSE); delete_option('aol_default_fields'); } //update_option('aol_form_templates', array('english' => $template, 'french' => $template)); $templates = get_option('aol_form_templates', array()); if(!empty($templates)): $i = 0; echo '

    $val){ echo ''; if(!isset($val['plural'])){ echo ''; } else { echo ''; } echo ''; echo ''; $i++; } endif; ?>

    ', ''); ?>

      $type): $type['filters'] = isset($type['filters']) ? $type['filters'] : array(); //Sanitizing key beforehand as it's used for multiple times. $key = sanitize_key($key); $count = wp_count_posts('aol_'.sanitize_key($type['singular'])); echo '
    1. '.sanitize_text_field( $type['singular'] ) .' ('. sanitize_text_field( $type['plural'] ) .')

      '; echo '

      '.esc_html__('Description', 'apply-online').':

      '; echo '

      '.esc_html__('Shortcode', 'apply-online').':

      '; echo '

      '.esc_html__('Direct URL', 'apply-online').': '.get_post_type_archive_link( 'aol_'.$key ).'

      '; echo '

      '.esc_html__("Direct links comes with theme's UI and shortcode comes with plugin's UI", 'apply-online').'

      '; echo ''; echo ''; $this->filters($type['filters'], $key); if($key != 'ad') echo '
    2. '; endforeach; endif; ?>


      $val){ //Sanitizing key before hand as its used for multiple times. //$cpt is already sanitized. $key = sanitize_key($key); $checked = in_array($key, $set_filters) ? 'checked' : NULL; echo '
    • '; } ?>
      $val){ //Sanitizing variables beforehand. $key = sanitize_key($key); $val = esc_attr($val); $checked = in_array($key, $set_filters) ? 'checked' : NULL; echo '
    • '; if( !in_array($key, array('pending', 'rejected', 'shortlisted'))) echo ''; echo '
    • '; $i++; } ?>

    esc_html__('How to create an ad?', 'apply-online'), 'answer' => esc_html__('In your WordPress admin panel, go to "All Ads" menu with globe icon and add a new ad listing here.', 'apply-online') ), array( 'question' => esc_html__('How to show ad listings on the front-end?', 'apply-online'), 'answer' => esc_html__('You may choose either option.', 'apply-online'), ), array( 'answer' => array( esc_html__('Write [aol] shortcode in an existing page or add a new page and write shortcode anywhere in the page editor. Now click on VIEW to see all of your ads on front-end.?' ,'apply-online'), sprintf(esc_html__('The url %s lists all the ads using your theme's default look and feel. %s(If above not working, try saving %s permalinks %s without any changes)' ,'apply-online'), ''.get_post_type_archive_link( 'aol_ad' ).'', '
        ', '', '') ) ), array( 'question' => esc_html__('Ads archive page on front-end shows 404 error or Nothing Found.' ,'apply-online'), 'answer' => sprintf(esc_html__('Try saving %spermalinks%s without any change.' ,'apply-online'), '', '') ), array( 'question' => esc_html__('I have a long application form to fill, how can i facilitate applicant to fill it conveniently?' ,'apply-online'), 'answer' => sprintf(esc_html__('With %sApplication Tracking System%s extention, applicant can save/update incomplete form for multiple times before final submission.' ,'apply-online'), '', '') ), array( 'question' => esc_html__('How can I show selected ads on front-end?' ,'apply-online'), 'answer' => array( esc_html__('You can show selected ads on your website by using shortcode with "ads" attribute. Ad ids must be separated with commas i.e. [aol ads="1,2,3"].' ,'apply-online'), esc_html__('To show first 5 ads, use count shortcode attribute i.e. [aol count="5"]') ), ), array( 'question' => esc_html__('Can I show ads without excerpt/summary?' ,'apply-online'), 'answer' => esc_html__('Yes, use shortcode with "excerpt" attribute i.e. [aol excerpt="no"]' ,'apply-online') ), array( 'question' => esc_html__('What attributes can i use in the shortcode?' ,'apply-online'), 'answer' => esc_html__('Shortcode with default attributes is [aol ads="all" count="-1" excerpt="yes" type="ad" display="full"]. Use only required attributes.' ,'apply-online') ), array( 'question' => esc_html__('Can I display only application form using shortocode?' ,'apply-online'), 'answer' => esc_html__(' Yes, [aol_form id="0"] is the shortcode to display a particular application form in WordPress pages or posts. Use correct form id in the shortocode.' ,'apply-online') ), array( 'question' => esc_html__('Can I list ads without any fancy styling?' ,'apply-online'), 'answer' => esc_html__('Yes, use shortcode with "style" attribute to list ads with bullets i.e. [aol display="list"]. To generate an ordered list add another attribute "list-style" i.e. [aol display="list" list-style="ol"].' ,'apply-online') ), array( 'question' => esc_html__('Filters under ApplyOnline section are not accessible.' ,'apply-online'), 'answer' => esc_html__('Try deactivating & then reactivating this plugin.' ,'apply-online') ), array( 'question' => esc_html__("I Have enabled the filters but they are not visible on the 'ads' page." ,'apply-online'), 'answer' => '' ), array( 'question' => '', 'answer' => '' ), array( 'question' => '', 'answer' => '' ), array( 'question' => '', 'answer' => '' ), array( 'question' => '', 'answer' => '' ), array( 'question' => '', 'answer' => '' ), array( 'question' => '', 'answer' => '' ), ); ?>

    1. '.get_post_type_archive_link( 'aol_ad' ).'', '
          ', '', ''); ?>

    ', ''); ?>

    ', ''); ?>

    ', ''); ?>

    ', ''); ?>

    ', ''); ?>

    >2]|=t[f]<>6,u[h++]=128|63&s):s<55296||s>=57344?(u[h++]=224|s>>12,u[h++]=128|s>>6&63,u[h++]=128|63&s):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++f)),u[h++]=240|s>>18,u[h++]=128|s>>12&63,u[h++]=128|s>>6&63,u[h++]=128|63&s);else for(h=this.start;f>2]|=s<>2]|=(192|s>>6)<>2]|=(128|63&s)<=57344?(n[h>>2]|=(224|s>>12)<>2]|=(128|s>>6&63)<>2]|=(128|63&s)<>2]|=(240|s>>18)<>2]|=(128|s>>12&63)<>2]|=(128|s>>6&63)<>2]|=(128|63&s)<=64?(this.start=h-64,this.hash(),this.hashed=!0):this.start=h}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},t.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,r=this.lastByteIndex;t[r>>2]|=u[3&r],r>=56&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},t.prototype.hash=function(){var t,r,e,i,s,h,f=this.blocks;this.first?r=((r=((t=((t=f[0]-680876937)<<7|t>>>25)-271733879<<0)^(e=((e=(-271733879^(i=((i=(-1732584194^2004318071&t)+f[1]-117830708)<<12|i>>>20)+t<<0)&(-271733879^t))+f[2]-1126478375)<<17|e>>>15)+i<<0)&(i^t))+f[3]-1316259209)<<22|r>>>10)+e<<0:(t=this.h0,r=this.h1,e=this.h2,r=((r+=((t=((t+=((i=this.h3)^r&(e^i))+f[0]-680876936)<<7|t>>>25)+r<<0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+f[1]-389564586)<<12|i>>>20)+t<<0)&(t^r))+f[2]+606105819)<<17|e>>>15)+i<<0)&(i^t))+f[3]-1044525330)<<22|r>>>10)+e<<0),r=((r+=((t=((t+=(i^r&(e^i))+f[4]-176418897)<<7|t>>>25)+r<<0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+f[5]+1200080426)<<12|i>>>20)+t<<0)&(t^r))+f[6]-1473231341)<<17|e>>>15)+i<<0)&(i^t))+f[7]-45705983)<<22|r>>>10)+e<<0,r=((r+=((t=((t+=(i^r&(e^i))+f[8]+1770035416)<<7|t>>>25)+r<<0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+f[9]-1958414417)<<12|i>>>20)+t<<0)&(t^r))+f[10]-42063)<<17|e>>>15)+i<<0)&(i^t))+f[11]-1990404162)<<22|r>>>10)+e<<0,r=((r+=((t=((t+=(i^r&(e^i))+f[12]+1804603682)<<7|t>>>25)+r<<0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+f[13]-40341101)<<12|i>>>20)+t<<0)&(t^r))+f[14]-1502002290)<<17|e>>>15)+i<<0)&(i^t))+f[15]+1236535329)<<22|r>>>10)+e<<0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+f[1]-165796510)<<5|t>>>27)+r<<0)^r))+f[6]-1069501632)<<9|i>>>23)+t<<0)^t&((e=((e+=(t^r&(i^t))+f[11]+643717713)<<14|e>>>18)+i<<0)^i))+f[0]-373897302)<<20|r>>>12)+e<<0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+f[5]-701558691)<<5|t>>>27)+r<<0)^r))+f[10]+38016083)<<9|i>>>23)+t<<0)^t&((e=((e+=(t^r&(i^t))+f[15]-660478335)<<14|e>>>18)+i<<0)^i))+f[4]-405537848)<<20|r>>>12)+e<<0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+f[9]+568446438)<<5|t>>>27)+r<<0)^r))+f[14]-1019803690)<<9|i>>>23)+t<<0)^t&((e=((e+=(t^r&(i^t))+f[3]-187363961)<<14|e>>>18)+i<<0)^i))+f[8]+1163531501)<<20|r>>>12)+e<<0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+f[13]-1444681467)<<5|t>>>27)+r<<0)^r))+f[2]-51403784)<<9|i>>>23)+t<<0)^t&((e=((e+=(t^r&(i^t))+f[7]+1735328473)<<14|e>>>18)+i<<0)^i))+f[12]-1926607734)<<20|r>>>12)+e<<0,r=((r+=((h=(i=((i+=((s=r^e)^(t=((t+=(s^i)+f[5]-378558)<<4|t>>>28)+r<<0))+f[8]-2022574463)<<11|i>>>21)+t<<0)^t)^(e=((e+=(h^r)+f[11]+1839030562)<<16|e>>>16)+i<<0))+f[14]-35309556)<<23|r>>>9)+e<<0,r=((r+=((h=(i=((i+=((s=r^e)^(t=((t+=(s^i)+f[1]-1530992060)<<4|t>>>28)+r<<0))+f[4]+1272893353)<<11|i>>>21)+t<<0)^t)^(e=((e+=(h^r)+f[7]-155497632)<<16|e>>>16)+i<<0))+f[10]-1094730640)<<23|r>>>9)+e<<0,r=((r+=((h=(i=((i+=((s=r^e)^(t=((t+=(s^i)+f[13]+681279174)<<4|t>>>28)+r<<0))+f[0]-358537222)<<11|i>>>21)+t<<0)^t)^(e=((e+=(h^r)+f[3]-722521979)<<16|e>>>16)+i<<0))+f[6]+76029189)<<23|r>>>9)+e<<0,r=((r+=((h=(i=((i+=((s=r^e)^(t=((t+=(s^i)+f[9]-640364487)<<4|t>>>28)+r<<0))+f[12]-421815835)<<11|i>>>21)+t<<0)^t)^(e=((e+=(h^r)+f[15]+530742520)<<16|e>>>16)+i<<0))+f[2]-995338651)<<23|r>>>9)+e<<0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+f[0]-198630844)<<6|t>>>26)+r<<0)|~e))+f[7]+1126891415)<<10|i>>>22)+t<<0)^((e=((e+=(t^(i|~r))+f[14]-1416354905)<<15|e>>>17)+i<<0)|~t))+f[5]-57434055)<<21|r>>>11)+e<<0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+f[12]+1700485571)<<6|t>>>26)+r<<0)|~e))+f[3]-1894986606)<<10|i>>>22)+t<<0)^((e=((e+=(t^(i|~r))+f[10]-1051523)<<15|e>>>17)+i<<0)|~t))+f[1]-2054922799)<<21|r>>>11)+e<<0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+f[8]+1873313359)<<6|t>>>26)+r<<0)|~e))+f[15]-30611744)<<10|i>>>22)+t<<0)^((e=((e+=(t^(i|~r))+f[6]-1560198380)<<15|e>>>17)+i<<0)|~t))+f[13]+1309151649)<<21|r>>>11)+e<<0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+f[4]-145523070)<<6|t>>>26)+r<<0)|~e))+f[11]-1120210379)<<10|i>>>22)+t<<0)^((e=((e+=(t^(i|~r))+f[2]+718787259)<<15|e>>>17)+i<<0)|~t))+f[9]-343485551)<<21|r>>>11)+e<<0,this.first?(this.h0=t+1732584193<<0,this.h1=r-271733879<<0,this.h2=e-1732584194<<0,this.h3=i+271733878<<0,this.first=!1):(this.h0=this.h0+t<<0,this.h1=this.h1+r<<0,this.h2=this.h2+e<<0,this.h3=this.h3+i<<0)},t.prototype.hex=function(){this.finalize();var t=this.h0,r=this.h1,e=this.h2,i=this.h3;return n[t>>4&15]+n[15&t]+n[t>>12&15]+n[t>>8&15]+n[t>>20&15]+n[t>>16&15]+n[t>>28&15]+n[t>>24&15]+n[r>>4&15]+n[15&r]+n[r>>12&15]+n[r>>8&15]+n[r>>20&15]+n[r>>16&15]+n[r>>28&15]+n[r>>24&15]+n[e>>4&15]+n[15&e]+n[e>>12&15]+n[e>>8&15]+n[e>>20&15]+n[e>>16&15]+n[e>>28&15]+n[e>>24&15]+n[i>>4&15]+n[15&i]+n[i>>12&15]+n[i>>8&15]+n[i>>20&15]+n[i>>16&15]+n[i>>28&15]+n[i>>24&15]},t.prototype.toString=t.prototype.hex,t.prototype.digest=function(){this.finalize();var t=this.h0,r=this.h1,e=this.h2,i=this.h3;return[255&t,t>>8&255,t>>16&255,t>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255,255&e,e>>8&255,e>>16&255,e>>24&255,255&i,i>>8&255,i>>16&255,i>>24&255]},t.prototype.array=t.prototype.digest,t.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),r=new Uint32Array(t);return r[0]=this.h0,r[1]=this.h1,r[2]=this.h2,r[3]=this.h3,t},t.prototype.buffer=t.prototype.arrayBuffer,t.prototype.base64=function(){for(var t,r,e,i="",s=this.array(),h=0;h<15;)t=s[h++],r=s[h++],e=s[h++],i+=p[t>>>2]+p[63&(t<<4|r>>>4)]+p[63&(r<<2|e>>>6)]+p[63&e];return t=s[h],i+=p[t>>>2]+p[t<<4&63]+"=="};var _=v();f?module.exports=_:(i.md5=_,o&&define(function(){return _}))}();admin/js/select2.min.js000064400000211301150211775550010737 0ustar00/*! Select2 4.0.11 | https://github.com/select2/select2/blob/master/LICENSE.md */ !function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(u){var e=function(){if(u&&u.fn&&u.fn.select2&&u.fn.select2.amd)var e=u.fn.select2.amd;var t,n,r,h,o,s,f,g,m,v,y,_,i,a,w;function b(e,t){return i.call(e,t)}function l(e,t){var n,r,i,o,s,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e){for(s=(e=e.split("/")).length-1,y.nodeIdCompat&&w.test(e[s])&&(e[s]=e[s].replace(w,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),u=0;u":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},i.appendMany=function(e,t){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},i.__cache={};var n=0;return i.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++n),t=n.toString())),t},i.StoreData=function(e,t,n){var r=i.GetUniqueElementId(e);i.__cache[r]||(i.__cache[r]={}),i.__cache[r][t]=n},i.GetData=function(e,t){var n=i.GetUniqueElementId(e);return t?i.__cache[n]&&null!=i.__cache[n][t]?i.__cache[n][t]:o(e).data(t):i.__cache[n]},i.RemoveData=function(e){var t=i.GetUniqueElementId(e);null!=i.__cache[t]&&delete i.__cache[t],e.removeAttribute("data-select2-id")},i}),e.define("select2/results",["jquery","./utils"],function(h,f){function r(e,t,n){this.$element=e,this.data=n,this.options=t,r.__super__.constructor.call(this)}return f.Extend(r,f.Observable),r.prototype.render=function(){var e=h('
      ');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},r.prototype.clear=function(){this.$results.empty()},r.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=h(''),r=this.options.get("translations").get(e.message);n.append(t(r(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},r.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},r.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n",{class:"select2-results__options select2-results__options--nested"});p.append(l),s.append(a),s.append(p)}else this.template(e,t);return f.StoreData(t,"data",e),t},r.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=f.GetData(e[0],"data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var r=n-1;0===e.length&&(r=0);var i=t.eq(r);i.trigger("mouseenter");var o=l.$results.offset().top,s=i.offset().top,a=l.$results.scrollTop()+(s-o);0===r?l.$results.scrollTop(0):s-o<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var r=t.eq(n);r.trigger("mouseenter");var i=l.$results.offset().top+l.$results.outerHeight(!1),o=r.offset().top+r.outerHeight(!1),s=l.$results.scrollTop()+o-i;0===n?l.$results.scrollTop(0):ithis.$results.outerHeight()||o<0)&&this.$results.scrollTop(i)}},r.prototype.template=function(e,t){var n=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),i=n(e,t);null==i?t.style.display="none":"string"==typeof i?t.innerHTML=r(i):h(t).append(i)},r}),e.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}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,r,i){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return r.Extend(o,r.Observable),o.prototype.render=function(){var e=n('');return this._tabindex=0,null!=r.GetData(this.$element[0],"old-tabindex")?this._tabindex=r.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},o.prototype.bind=function(e,t){var n=this,r=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",r),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},o.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},o.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&r.GetData(this,"element").select2("close")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,r){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html(''),e},i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments);var r=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",r),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("")},i.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),r=this.display(t,n);n.empty().append(r);var i=t.title||t.text;i?n.attr("title",i):n.removeAttr("title")}else this.clear()},i}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,e,l){function n(e,t){n.__super__.constructor.apply(this,arguments)}return l.Extend(n,e),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('
        '),e},n.prototype.bind=function(e,t){var r=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){r.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!r.options.get("disabled")){var t=i(this).parent(),n=l.GetData(t[0],"data");r.trigger("unselect",{originalEvent:e,data:n})}})},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},n.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},n.prototype.selectionContainer=function(){return i('
      • ×
      • ')},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n×');a.StoreData(r[0],"data",t),this.$selection.find(".select2-selection__rendered").prepend(r)}},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(r,a,l){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=r('');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},e.prototype.bind=function(e,t,n){var r=this,i=t.id+"-results";e.call(this,t,n),t.on("open",function(){r.$search.attr("aria-controls",i),r.$search.trigger("focus")}),t.on("close",function(){r.$search.val(""),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")}),t.on("enable",function(){r.$search.prop("disabled",!1),r._transferTabIndex()}),t.on("disable",function(){r.$search.prop("disabled",!0)}),t.on("focus",function(e){r.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){r.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){r._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented(),e.which===l.BACKSPACE&&""===r.$search.val()){var t=r.$searchContainer.prev(".select2-selection__choice");if(0this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(){r._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var r=this;this._checkIfMaximumSelected(function(){e.call(r,t,n)})},e.prototype._checkIfMaximumSelected=function(e,n){var r=this;this.current(function(e){var t=null!=e?e.length:0;0=r.maximumSelectionLength?r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):n&&n()})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(o,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=o('');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var r=this,i=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){r.handleSearch(e)}),t.on("open",function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",i),r.$search.trigger("focus"),window.setTimeout(function(){r.$search.trigger("focus")},0)}),t.on("close",function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||r.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(r.showSearch(e)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,r)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),r=t.length-1;0<=r;r--){var i=t[r];this.placeholder.id===i.id&&n.splice(r,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,r){this.lastParams={},e.call(this,t,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("query",function(e){r.lastParams=e,r.loading=!0}),t.on("query:append",function(e){r.lastParams=e,r.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&e){var t=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore()}},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('
      • '),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=f(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("open",function(){r._showDropdown(),r._attachPositioningHandler(t),r._bindContainerResultHandlers(t)}),t.on("close",function(){r._hideDropdown(),r._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f(""),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},e.prototype._attachPositioningHandler=function(e,t){var n=this,r="scroll.select2."+t.id,i="resize.select2."+t.id,o="orientationchange.select2."+t.id,s=this.$container.parents().filter(a.hasScroll);s.each(function(){a.StoreData(this,"select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),s.on(r,function(e){var t=a.GetData(this,"select2-scroll-position");f(this).scrollTop(t.y)}),f(window).on(r+" "+i+" "+o,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,r="resize.select2."+t.id,i="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+r+" "+i)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),r=null,i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=i.top,o.bottom=i.top+o.height;var s=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=ai.bottom+s,d={left:i.left,top:o.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h={top:0,left:0};f.contains(document.body,p[0])&&(h=p.offset()),d.top-=h.top,d.left-=h.left,t||n||(r="below"),u||!c||t?!c&&u&&t&&(r="below"):r="above",("above"==r||t&&"below"!==r)&&(d.top=o.top-h.top-s),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(d)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,r){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,r)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,r=0;r');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),u.StoreData(e[0],"element",this.$element),e},d}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(i,e,o,t,s){if(null==i.fn.select2){var a=["open","close","destroy"];i.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=i.extend(!0,{},t);new o(i(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,r=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=s.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,r)}),-1'); }); } }); /*Ad Types Settings*/ $('#ad_aol_type').click(function(){ var fieldNameRawSingular = aol_sanitize_text_field( $('#ad_type_singular').val() ); // Get Raw value. var fieldNameRawPlural = aol_sanitize_text_field( $('#ad_type_plural').val() ); // Get Raw value. var fieldNameRawDesc = aol_sanitize_text_field( $('#ad_type_description').val() ); // Get Raw value. var fieldNameSingular = aol_sanitize_key(fieldNameRawSingular); if(fieldNameSingular != '' && fieldNameRawPlural != ''){ $('#ad_types').append('
      • '+fieldNameRawSingular+' ('+fieldNameRawPlural+') '+fieldNameRawDesc+'

        Save changes to get shortcode & filters.

        Delete
      • '); i++; $('#ad_type_singular').val(''); // Get Raw value. $('#ad_type_plural').val(''); // Get Raw value. $('#ad_type_description').val(''); // Get Raw value. } else{ $('#adapp_name').css('border','1px solid #F00'); } }); /*Form Builder row removal*/ $('#ad_types').on('click', 'li .aol-remove',function(){ $(this).parentsUntil('ol', 'li').remove(); }); /*Form Builder default template*/ $('#ad_types').find('.default').click(function(){ return false; }); /*Ad editor Scripts*/ /*Form Builder Application Field Type change for new Field only*/ $('.aol_fields').click(function(){ //var fieldType=$(this).val(); var fieldType = $(this).data('id'); $('.aol_form').css('display','block'); if(fieldType == 'checkbox' || fieldType == 'dropdown' || fieldType == 'radio'){ $('.aol_form_options').show(); } else{ $('.aol_form_options').hide(); } if(fieldType == 'checkbox' || fieldType == 'dropdown' || fieldType == 'radio' || fieldType == 'text_area' || fieldType == 'dropdown' || fieldType == 'file' || fieldType == 'separator' || fieldType == 'paragraph' ){ $('.aol_placeholder').hide(); } else{ $('.aol_placeholder').show(); } }); //Form Builder Required field Option $('.aol_checkbox').on('click', function(e){ // e.preventDefault(); if( $(this).prop('checked') ) { $(this).val('1'); } else { $(this).val('0'); } //tb_remove(); }); /* $('.aol_fields').on('click', function(e){ var field = $(this).data('id'); $('#adapp_field_type').val(field).change(); $('.aol_form').css('display','block'); }); */ // // // $('.click_test').on('click', function(e){ // var button = aol_arrays('button'); // var label = aol_arrays('label'); // var placeholder = aol_arrays('placeholder'); // var requied = aol_arrays('requied'); // alert(label+placeholder+requied+button); // $('.aol_form').html(label+placeholder+requied+button); // $('.textfield').trigger( "click" ); // // }); $('.textfield-poup').on('click', function(e){ $('.aol_form').css('dispaly','none'); }); /* Form Builder (Group Fields): Add new row. */ $('.addField').on('click', function(e){ e.preventDefault(); var tempID = aol_sanitize_text_field( $(this).data('temp') ); var wrapper = $(this).closest('.aol_form'); //var fieldNameRaw = $('#adapp_name').val(); // Get Raw value. var fieldNameRaw = aol_sanitize_text_field( wrapper.find('.adapp_name').val() ); // Get Raw value. //var fieldName = md5(fieldNameRaw) //var fieldID = aol_sanitize_key(fieldNameRaw); //Replace white space with _. var fieldID = aol_sanitize_key( wrapper.find('#adapp_uid').val() ); if( tempID == '' ) var fieldID = '_aol_app_'+fieldID; else if( tempID == 'new' ) var fieldID = 'new[_aol_app_'+fieldID+']'; else if( tempID != '' ) var fieldID = tempID+'[_aol_app_'+fieldID+']'; var fieldType = aol_sanitize_key( wrapper.find('input[name="aol_type"]').val() ); var fieldPlaceholder = aol_sanitize_text_field( wrapper.find('.adapp_placeholder').val() ); var fieldClass = aol_sanitize_text_field( wrapper.find('.adapp_class').val() ); var fieldFileTypes = aol_sanitize_text_field( wrapper.find('.adapp_file_types').val() ); var fieldFileSize = parseInt( wrapper.find('.adapp_file_max_size').val() ); var required = parseInt( wrapper.find('.adapp_required').val() ); var notify_email = aol_sanitize_text_field( wrapper.find('.adapp_notification').val() ); var fieldOptions = aol_sanitize_text_field( wrapper.find('.adapp_field_options').val() ); var fieldDesccription = aol_sanitize_text_field( wrapper.find('.adapp_field_help').val() ); var fieldText = aol_sanitize_text_field( wrapper.find('.adapp_text').val() ); var fieldTextHeight = aol_sanitize_text_field( wrapper.find('.adapp_text_height').val() ); var fieldLimit = parseInt( wrapper.find('.adapp_limit').val() ); if( notify_email == '1'){ var notify_checked ='checked'; }else { var notify_checked =''; } if( required == '1'){ var checked_item ='checked'; }else { var checked_item =''; } var aol_defult_selection = ''; if( wrapper.find(".adapp_preselect").prop('checked') ) { var aol_defult_selection = 'checked'; } //Highlight culprut $('#adapp_name').css('border','1px solid #f00'); //var fieldTypeHtml = wrapper.find('.adapp_field_type').html(); if(fieldNameRaw == '' || fieldType == '' || fieldID == '' || fieldID == '_aol_app_'){ wrapper.find('.adapp_name, .adapp_uid').css('border','1px solid #F00'); //if(fieldType == '') wrapper.find('#adapp_field_type').css('border','1px solid #F00'); } else{ var select_value = fieldType; var start_html ='\n\ \n\ \n\
        \n\