Custom Contact Forms - Version 7.7

Version Description

  • New CAPTCHA option
  • Fix "0" choice input bug
  • Fix empty conditional bug
  • Reset field renderer bug fixed
  • Guide user for whitelisting file extenions in file field
  • Submit class form option
  • Logged in users only form option
Download this release

Release Info

Developer tlovett1
Plugin Icon 128x128 Custom Contact Forms
Version 7.7
Comparing to
See all releases

Code changes from version 7.6 to 7.7

Files changed (55) hide show
  1. assets/build/css/form-manager.css +2 -0
  2. assets/build/css/form-manager.css.map +1 -1
  3. assets/build/css/form-manager.min.css +1 -1
  4. assets/build/css/form-mce.css +2 -0
  5. assets/build/css/form-mce.css.map +1 -1
  6. assets/build/css/form-mce.min.css +1 -1
  7. assets/build/css/form-table.css +3 -0
  8. assets/build/css/form-table.css.map +1 -1
  9. assets/build/css/form-table.min.css +1 -1
  10. assets/build/css/form.css +2 -0
  11. assets/build/css/form.css.map +1 -1
  12. assets/build/css/form.min.css +1 -1
  13. assets/build/js/form-manager.js +87 -22
  14. assets/build/js/form-manager.min.js +3 -3
  15. assets/build/js/form.min.js +1 -1
  16. assets/img/simple-captcha.png +0 -0
  17. assets/js/form.js +10 -0
  18. assets/js/manager/models.js +20 -0
  19. assets/js/manager/views.js +67 -22
  20. assets/scss/form-manager.scss +4 -0
  21. assets/scss/form-mce.scss +4 -0
  22. assets/scss/form-table.scss +4 -0
  23. assets/scss/form.scss +4 -0
  24. classes/class-ccf-api-form-controller.php +23 -3
  25. classes/class-ccf-field-renderer.php +56 -3
  26. classes/class-ccf-form-cpt.php +5 -0
  27. classes/class-ccf-form-handler.php +53 -7
  28. classes/class-ccf-form-manager.php +68 -25
  29. classes/class-ccf-form-renderer.php +9 -1
  30. custom-contact-forms.php +2 -2
  31. languages/custom-contact-forms.mo +0 -0
  32. languages/custom-contact-forms.po +550 -520
  33. readme.txt +12 -0
  34. vendor/abeautifulsite/simple-php-captcha/.gitignore +3 -0
  35. vendor/abeautifulsite/simple-php-captcha/backgrounds/45-degree-fabric.png +0 -0
  36. vendor/abeautifulsite/simple-php-captcha/backgrounds/cloth-alike.png +0 -0
  37. vendor/abeautifulsite/simple-php-captcha/backgrounds/grey-sandbag.png +0 -0
  38. vendor/abeautifulsite/simple-php-captcha/backgrounds/kinda-jean.png +0 -0
  39. vendor/abeautifulsite/simple-php-captcha/backgrounds/polyester-lite.png +0 -0
  40. vendor/abeautifulsite/simple-php-captcha/backgrounds/stitched-wool.png +0 -0
  41. vendor/abeautifulsite/simple-php-captcha/backgrounds/white-carbon.png +0 -0
  42. vendor/abeautifulsite/simple-php-captcha/backgrounds/white-wave.png +0 -0
  43. vendor/abeautifulsite/simple-php-captcha/composer.json +7 -0
  44. vendor/abeautifulsite/simple-php-captcha/fonts/times_new_yorker.ttf +0 -0
  45. vendor/abeautifulsite/simple-php-captcha/index.php +137 -0
  46. vendor/abeautifulsite/simple-php-captcha/readme.md +14 -0
  47. vendor/abeautifulsite/simple-php-captcha/simple-php-captcha.php +172 -0
  48. vendor/autoload.php +7 -0
  49. vendor/composer/ClassLoader.php +413 -0
  50. vendor/composer/LICENSE +21 -0
  51. vendor/composer/autoload_classmap.php +9 -0
  52. vendor/composer/autoload_namespaces.php +9 -0
  53. vendor/composer/autoload_psr4.php +9 -0
  54. vendor/composer/autoload_real.php +45 -0
  55. vendor/composer/installed.json +27 -0
assets/build/css/form-manager.css CHANGED
@@ -91,6 +91,8 @@
91
  padding: 10px 20px; }
92
  .ccf-main-modal .field .preview .recaptcha-preview-img {
93
  margin-top: 7px; }
 
 
94
  .ccf-main-modal .field .preview .field-description {
95
  margin-top: 3px;
96
  clear: left; }
91
  padding: 10px 20px; }
92
  .ccf-main-modal .field .preview .recaptcha-preview-img {
93
  margin-top: 7px; }
94
+ .ccf-main-modal .field .preview .simple-captcha-preview-img {
95
+ margin-bottom: 7px; }
96
  .ccf-main-modal .field .preview .field-description {
97
  margin-top: 3px;
98
  clear: left; }
assets/build/css/form-manager.css.map CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "version": 3,
3
- "mappings": ";AAAA,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AE,GAAG;IACZ,MAAM,EAAE,iBAAiB;IACzB,OAAO,EAAE,OAAO;EAGjB,qCAAqB;IACpB,QAAQ,EAAE,KAAK;IACf,GAAG,EAAE,GAAG;IACR,IAAI,EAAE,GAAG;IACT,KAAK,EAAE,KAAK;IACZ,WAAW,EAAE,MAAM;IACnB,UAAU,EAAE,IAAI;IAChB,kBAAkB,EAAE,4BAA8B;IAClD,UAAU,EAAE,4BAA8B;IAC1C,WAAW,EAAE,GAAG;IAChB,OAAO,EAAE,OAAO;IAEhB,4CAAO;MACN,SAAS,EAAE,IAAI;MACf,QAAQ,EAAE,QAAQ;MAClB,KAAK,EAAE,IAAI;MACX,MAAM,EAAE,OAAO;IAGhB,8CAAS;MACR,MAAM,EAAE,IAAI;MAEZ,qDAAO;QACN,KAAK,EAAE,OAAO;QACd,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE,SAAS;MAGlB,iDAAG;QACF,WAAW,EAAE,IAAI;MAGlB,oDAAM;QACL,eAAe,EAAE,IAAI",
4
  "sources": ["../../scss/form-manager.scss"],
5
  "names": [],
6
  "file": "form-manager.css"
assets/build/css/form-manager.min.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";@font-face{font-family:menu;src:url(../../fonts/menu.eot);src:url(../../fonts/menu.eot?#iefix) format("embedded-opentype"),url(../../fonts/menu.woff) format("woff"),url(../../fonts/menu.ttf) format("truetype"),url(../../fonts/menu.svg#form-manager) format("svg");font-weight:400;font-style:normal}@font-face{font-family:form-manager;src:url(../../fonts/form-manager.eot);src:url(../../fonts/form-manager.eot?#iefix) format("embedded-opentype"),url(../../fonts/form-manager.woff) format("woff"),url(../../fonts/form-manager.ttf) format("truetype"),url(../../fonts/form-manager.svg#form-manager) format("svg");font-weight:400;font-style:normal}.ccf-open-form-manager:before{font-family:menu;content:"";padding-right:4px;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;cursor:pointer;-webkit-font-smoothing:antialiased}.ccf-main-modal{display:none;position:fixed;top:30px;left:30px;right:30px;bottom:30px;z-index:160000;overflow:hidden;background-color:#fff}.ccf-main-modal [data-icon]:before{font-family:form-manager;content:attr(data-icon);speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;cursor:pointer;-webkit-font-smoothing:antialiased}.ccf-main-modal .single .insert-form-button{display:none}.ccf-main-modal .hidden{display:block}.ccf-main-modal .field{margin-bottom:5px;overflow:auto;position:relative}.ccf-main-modal .field.field-incomplete h4{background-color:#ffebe8}.ccf-main-modal .field.field-duplicate-slug h4{background-color:#ffe6a5}.ccf-main-modal .field.ccf-editing{border:#999 1px solid}.ccf-main-modal .field.ccf-editing h4:hover{border:1px solid #e5e5e5}.ccf-main-modal .field h4{-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);border:1px solid #e5e5e5;background:#fafafa;font-size:13px;margin:0;font-weight:600;color:#222;padding:13px 13px 13px 20px;cursor:move}.ccf-main-modal .field h4:hover{border:#999 1px solid}.ccf-main-modal .field .right{float:right;display:block}.ccf-main-modal .field .right a{color:inherit;margin-left:3px}.ccf-main-modal .field .preview{clear:both;display:none;text-align:left;overflow:auto;float:none;background-color:#fff;border-left:1px solid #e5e5e5;border-right:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;padding:10px 20px}.ccf-main-modal .field .preview .recaptcha-preview-img{margin-top:7px}.ccf-main-modal .field .preview .field-description{margin-top:3px;clear:left}.ccf-main-modal .field .preview .left{float:left;clear:both;width:47%}.ccf-main-modal .field .preview .right{float:right;width:47%}.ccf-main-modal .field .preview .full input[type=text],.ccf-main-modal .field .preview .full select,.ccf-main-modal .field .preview .left input[type=text],.ccf-main-modal .field .preview .left select,.ccf-main-modal .field .preview .right input[type=text],.ccf-main-modal .field .preview .right select{width:100%;max-width:100%}.ccf-main-modal .field .preview .full .sub-label,.ccf-main-modal .field .preview .left .sub-label,.ccf-main-modal .field .preview .right .sub-label{margin:3px 0 3px 2px;font-size:90%}.ccf-main-modal .field .preview .full .hour,.ccf-main-modal .field .preview .full .minute,.ccf-main-modal .field .preview .left .hour,.ccf-main-modal .field .preview .left .minute,.ccf-main-modal .field .preview .right .hour,.ccf-main-modal .field .preview .right .minute{display:inline-block;margin-right:5px}.ccf-main-modal .field .preview .full .hour input,.ccf-main-modal .field .preview .full .minute input,.ccf-main-modal .field .preview .left .hour input,.ccf-main-modal .field .preview .left .minute input,.ccf-main-modal .field .preview .right .hour input,.ccf-main-modal .field .preview .right .minute input{width:35px}.ccf-main-modal .field .preview .full .am-pm,.ccf-main-modal .field .preview .left .am-pm,.ccf-main-modal .field .preview .right .am-pm{display:inline-block;vertical-align:top}.ccf-main-modal .field .preview .full .am-pm select,.ccf-main-modal .field .preview .left .am-pm select,.ccf-main-modal .field .preview .right .am-pm select{width:60px}.ccf-main-modal .field .preview .heading{font-size:125%;font-weight:700;border-bottom:1px solid #ccc;padding-bottom:9px;margin-bottom:9px}.ccf-main-modal .field .preview .subheading{font-style:italic}.ccf-main-modal .field .preview .conditionals-enabled{font-size:70%;background-color:#ffe6a5;font-weight:700;padding:0 2px;opacity:.5;left:7px;position:absolute;top:1.49em}.ccf-main-modal .field .preview label{font-weight:700;margin-bottom:3px;cursor:inherit}.ccf-main-modal .field .preview label span.required{color:red}.ccf-main-modal .field .preview input[type=checkbox]+label,.ccf-main-modal .field .preview input[type=radio]+label{display:inline-block}.ccf-main-modal .field .preview input[type=text],.ccf-main-modal .field .preview textarea{width:100%;background-color:#fff;color:#333;border:1px solid #ddd;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.07);box-shadow:inset 0 1px 2px rgba(0,0,0,.07)}.ccf-main-modal .field .preview textarea{height:60px}.ccf-main-modal .close-icon{position:absolute;top:16px;right:16px;font-size:35px;cursor:pointer;color:#333;z-index:160001}.ccf-main-modal .main-menu{position:absolute;top:0;right:0;left:0;height:125px}.ccf-main-modal .main-menu h1{padding:16px}.ccf-main-modal .main-menu ul{height:40px;box-sizing:border-box;font-size:14px;margin:0;list-style-type:none;border-top:1px solid #ddd;background:#f3f3f3;padding:0 16px}.ccf-main-modal .main-menu ul li{margin:0;display:inline-block;height:38px;vertical-align:middle;line-height:40px;padding:0 8px}.ccf-main-modal .main-menu ul li a{text-decoration:none}.ccf-main-modal .main-menu ul li a :hover,.ccf-main-modal .main-menu ul li a.selected{color:#000}.ccf-main-modal .ccf-form-pane{display:none;position:absolute;top:125px;right:0;left:0;bottom:0}.ccf-main-modal .ccf-form-pane.single{top:85px;border-top:1px solid #e5e5e5}.ccf-main-modal .ccf-form-pane.single .form-content,.ccf-main-modal .ccf-form-pane.single .left-sidebar{border-top:0}.ccf-main-modal .ccf-form-pane .disabled-overlay{position:absolute;top:0;left:0;right:0;bottom:50px;background-color:#000;opacity:.1;-ms-filter:"alpha(Opacity=1)";filter:alpha(opacity=1);-moz-opacity:.1;-khtml-opacity:.1;z-index:3;display:none}.ccf-main-modal .ccf-form-pane .bottom{bottom:0;left:0;right:0;height:50px;padding:0 16px 0 0;position:absolute;text-align:right;line-height:50px;border-top:1px solid #e5e5e5}.ccf-main-modal .ccf-form-pane .bottom .left{float:left;background-color:#00a0d2;padding-left:16px;padding-right:16px;color:#fff}@media (max-width:830px){.ccf-main-modal .ccf-form-pane .bottom .left{display:none}}.ccf-main-modal .ccf-form-pane .bottom .left input{vertical-align:middle;margin-left:5px}.ccf-main-modal .ccf-form-pane .bottom .left button{vertical-align:middle}.ccf-main-modal .ccf-form-pane .bottom .left .signup-x{color:red;display:none;font-size:150%;vertical-align:middle;font-weight:700;margin-left:4px}.ccf-main-modal .ccf-form-pane .bottom .left .signup-check{color:green;display:none;vertical-align:middle;font-size:150%;font-weight:700;margin-left:4px}.ccf-main-modal .ccf-form-pane .bottom .left.signup-error .signup-x,.ccf-main-modal .ccf-form-pane .bottom .left.signup-success .signup-check{display:inline}.ccf-main-modal .ccf-form-pane .bottom .spinner{display:none;visibility:visible;float:right;width:16px;height:16px;margin-top:16px}.ccf-main-modal .ccf-form-pane .bottom input[type=button]{margin-top:11px;float:right;margin-left:6px}.ccf-main-modal .ccf-form-pane .accordion-section{background-color:#fff;border-bottom:0}.ccf-main-modal .ccf-form-pane .accordion-section:first-child{border-top:1px solid #e5e5e5}.ccf-main-modal .ccf-form-pane .accordion-section.expanded .section-content{display:block}.ccf-main-modal .ccf-form-pane .accordion-section.expanded .accordion-heading:before{content:""}.ccf-main-modal .ccf-form-pane .accordion-section.expanded .form-settings-heading:before{content:""}.ccf-main-modal .ccf-form-pane .accordion-section .accordion-heading,.ccf-main-modal .ccf-form-pane .accordion-section .form-settings-heading{cursor:pointer;display:block;line-height:29px;color:inherit;padding:10px 20px;border-bottom:1px solid #e5e5e5;font-size:150%;background-color:#fafafa;margin:0}.ccf-main-modal .ccf-form-pane .accordion-section .accordion-heading:before,.ccf-main-modal .ccf-form-pane .accordion-section .form-settings-heading:before{margin-right:8px;font-family:form-manager;content:"";speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;cursor:pointer;-webkit-font-smoothing:antialiased}.ccf-main-modal .ccf-form-pane .accordion-section .section-content{display:none;padding:10px 20px;border-bottom:1px solid #e5e5e5}.ccf-main-modal .ccf-form-pane label{display:block;margin-bottom:8px}.ccf-main-modal .ccf-form-pane .explain{margin-top:5px;font-style:italic;display:block}.ccf-main-modal .ccf-form-pane.show-form-settings .ccf-form-settings{display:block}.ccf-main-modal .ccf-form-pane .ccf-form-settings{display:none;position:absolute;width:75%;bottom:50px;left:25%;z-index:2;top:0;overflow:auto;background-color:#fff;border-top:1px solid #ddd;padding:21px;box-sizing:border-box}.ccf-main-modal .ccf-form-pane .ccf-form-settings h3:first-child,.ccf-main-modal .ccf-form-pane .ccf-form-settings p:first-child{margin-top:0}.ccf-main-modal .ccf-form-pane .ccf-form-settings h3{border-bottom:1px solid #ccc;padding-bottom:.75em;margin-top:2em}.ccf-main-modal .ccf-form-pane .ccf-form-settings .ccf-form-notifications td{position:relative}.ccf-main-modal .ccf-form-pane .ccf-form-settings .variables{margin-top:0}.ccf-main-modal .ccf-form-pane .ccf-form-settings .ccf-form-notifications .active{width:15%}.ccf-main-modal .ccf-form-pane .ccf-form-settings .ccf-form-notifications .active-indicator{color:#33CA33;font-size:40px}.ccf-main-modal .ccf-form-pane .ccf-form-settings .ccf-form-notifications .inactive-indicator{color:red;font-size:40px}.ccf-main-modal .ccf-form-pane .ccf-form-settings .ccf-form-notifications .add-notification{margin-top:1em;cursor:pointer}.ccf-main-modal .ccf-form-pane .ccf-form-settings .close-notification{position:absolute;top:10px;right:10px;cursor:pointer;font-size:200%;color:inherit}.ccf-main-modal .ccf-form-pane .ccf-form-settings .delete-notification{color:red}.ccf-main-modal .ccf-form-pane .ccf-form-settings .address .add,.ccf-main-modal .ccf-form-pane .ccf-form-settings .address .delete,.ccf-main-modal .ccf-form-pane .ccf-form-settings .field-mapping .add,.ccf-main-modal .ccf-form-pane .ccf-form-settings .field-mapping .delete{color:inherit;vertical-align:middle}.ccf-main-modal .ccf-form-pane .ccf-form-settings .post-creation-mapping-wrapper{margin-top:1em}.ccf-main-modal .ccf-form-pane .left-sidebar{box-sizing:border-box;background-color:#f3f3f3;position:absolute;border-top:1px solid #ddd;border-right:1px solid #ddd;width:25%;top:0;padding:0;bottom:50px;left:0;overflow:auto}.ccf-main-modal .ccf-form-pane .left-sidebar .accordion-section:first-child{border-top:0}.ccf-main-modal .ccf-form-pane .left-sidebar .fields,.ccf-main-modal .ccf-form-pane .left-sidebar .special-fields,.ccf-main-modal .ccf-form-pane .left-sidebar .structure-fields{padding:5px}.ccf-main-modal .ccf-form-pane .left-sidebar .fields .field .preview,.ccf-main-modal .ccf-form-pane .left-sidebar .fields .field .right,.ccf-main-modal .ccf-form-pane .left-sidebar .special-fields .field .preview,.ccf-main-modal .ccf-form-pane .left-sidebar .special-fields .field .right,.ccf-main-modal .ccf-form-pane .left-sidebar .structure-fields .field .preview,.ccf-main-modal .ccf-form-pane .left-sidebar .structure-fields .field .right{display:none}.ccf-main-modal .ccf-form-pane .form-content{box-sizing:border-box;position:absolute;width:40%;bottom:50px;left:25%;right:35%;top:0;overflow:auto;border-top:1px solid #ddd;padding:21px}.ccf-main-modal .ccf-form-pane .form-content .field-placeholder{border:1px dashed #e5e5e5;height:46px;margin-bottom:5px}.ccf-main-modal .ccf-form-pane .form-content .no-fields{font-size:22px;padding:16px;font-style:italic}.ccf-main-modal .ccf-form-pane .form-content:after{width:100%;display:block;margin-top:5px;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;font-style:italic;font-size:22px;text-align:center;padding:1em .5em;border:4px dashed #e5e5e5;content:attr(data-drag-message)}.ccf-main-modal .ccf-form-pane .right-sidebar{box-sizing:border-box;padding:0;position:absolute;width:35%;top:0;overflow:auto;background-color:#f3f3f3;right:0;bottom:50px;border-left:1px solid #ddd}.ccf-main-modal .ccf-form-pane .right-sidebar .section-content>div{margin-bottom:6px}.ccf-main-modal .ccf-form-pane .right-sidebar .no-field{padding:16px;font-style:italic;font-size:22px}.ccf-main-modal .ccf-form-pane .right-sidebar label{display:inline-block;margin:0}.ccf-main-modal .ccf-form-pane .right-sidebar label .required{color:red}.ccf-main-modal .ccf-form-pane .right-sidebar .field-error input{border-color:red;border-width:2px}.ccf-main-modal .ccf-form-pane .right-sidebar .field-duplicate-slug input{border-color:#ffe6a5;border-width:2px}.ccf-main-modal .ccf-form-pane .right-sidebar input[type=text]{width:100%;display:block;margin-top:5px}.ccf-main-modal .ccf-form-pane .right-sidebar .hide{display:none}.ccf-main-modal .ccf-form-pane .right-sidebar .conditionals input[type=text]{width:100px;display:inline-block}.ccf-main-modal .ccf-form-pane .right-sidebar input[type=checkbox]+label{display:inline-block;vertical-align:middle}.ccf-main-modal .ccf-form-pane .right-sidebar label+select{display:inline-block}.ccf-main-modal .ccf-form-pane .right-sidebar textarea{width:100%;height:80px;margin-top:5px}.ccf-main-modal .ccf-form-pane .right-sidebar .field-html{height:150px;width:100%}.ccf-main-modal .ccf-form-pane .right-sidebar .repeatable-choices .choice input[type=text]{width:100px;display:inline-block}.ccf-main-modal .ccf-form-pane .right-sidebar .repeatable-choices .choice .move{color:inherit;cursor:move}.ccf-main-modal .ccf-form-pane .right-sidebar .repeatable-choices .choice .move:before{cursor:move}.ccf-main-modal .ccf-form-pane .right-sidebar .repeatable-choices .choice .add,.ccf-main-modal .ccf-form-pane .right-sidebar .repeatable-choices .choice .delete{cursor:pointer;color:inherit}.ccf-main-modal .ccf-existing-form-pane{display:none;position:absolute;overflow:scroll;top:125px;right:0;left:0;bottom:0;background-color:#fff;padding:16px}.ccf-main-modal .ccf-existing-form-pane table,.ccf-main-modal .ccf-form-notifications table{width:100%;border-collapse:collapse;table-layout:fixed;border:1px solid #ddd}.ccf-main-modal .ccf-existing-form-pane table .left,.ccf-main-modal .ccf-form-notifications table .left{float:left;width:50%;padding-right:10px;box-sizing:border-box}.ccf-main-modal .ccf-existing-form-pane table .left textarea,.ccf-main-modal .ccf-form-notifications table .left textarea{width:100%;height:300px}.ccf-main-modal .ccf-existing-form-pane table .right,.ccf-main-modal .ccf-form-notifications table .right{padding-left:10px;box-sizing:border-box;float:right;width:50%}.ccf-main-modal .ccf-existing-form-pane table td,.ccf-main-modal .ccf-form-notifications table td{margin:0;padding:14px 21px;text-align:left}.ccf-main-modal .ccf-existing-form-pane table .empty-form-table,.ccf-main-modal .ccf-existing-form-pane table .no-notifications,.ccf-main-modal .ccf-form-notifications table .empty-form-table,.ccf-main-modal .ccf-form-notifications table .no-notifications{text-align:center}.ccf-main-modal .ccf-existing-form-pane table tfoot,.ccf-main-modal .ccf-existing-form-pane table thead,.ccf-main-modal .ccf-form-notifications table tfoot,.ccf-main-modal .ccf-form-notifications table thead{background-color:#f0f0f0}.ccf-main-modal .ccf-existing-form-pane table tfoot tr,.ccf-main-modal .ccf-existing-form-pane table thead tr,.ccf-main-modal .ccf-form-notifications table tfoot tr,.ccf-main-modal .ccf-form-notifications table thead tr{border-bottom:1px solid #e5e5e5;border-top:1px solid #e5e5e5}.ccf-main-modal .ccf-existing-form-pane table tfoot th,.ccf-main-modal .ccf-existing-form-pane table thead th,.ccf-main-modal .ccf-form-notifications table tfoot th,.ccf-main-modal .ccf-form-notifications table thead th{margin:0;text-align:left;padding:14px 21px;box-sizing:border-box}.ccf-main-modal .ccf-existing-form-pane table tfoot .id,.ccf-main-modal .ccf-existing-form-pane table thead .id,.ccf-main-modal .ccf-form-notifications table tfoot .id,.ccf-main-modal .ccf-form-notifications table thead .id{width:5%}.ccf-main-modal .ccf-existing-form-pane table tfoot .title,.ccf-main-modal .ccf-existing-form-pane table thead .title,.ccf-main-modal .ccf-form-notifications table tfoot .title,.ccf-main-modal .ccf-form-notifications table thead .title{width:30%}.ccf-main-modal .ccf-existing-form-pane table tfoot .author,.ccf-main-modal .ccf-existing-form-pane table tfoot .entries,.ccf-main-modal .ccf-existing-form-pane table tfoot .submissions,.ccf-main-modal .ccf-existing-form-pane table thead .author,.ccf-main-modal .ccf-existing-form-pane table thead .entries,.ccf-main-modal .ccf-existing-form-pane table thead .submissions,.ccf-main-modal .ccf-form-notifications table tfoot .author,.ccf-main-modal .ccf-form-notifications table tfoot .entries,.ccf-main-modal .ccf-form-notifications table tfoot .submissions,.ccf-main-modal .ccf-form-notifications table thead .author,.ccf-main-modal .ccf-form-notifications table thead .entries,.ccf-main-modal .ccf-form-notifications table thead .submissions{width:10%}.ccf-main-modal .ccf-existing-form-pane table tfoot .number-of-fields,.ccf-main-modal .ccf-existing-form-pane table thead .number-of-fields,.ccf-main-modal .ccf-form-notifications table tfoot .number-of-fields,.ccf-main-modal .ccf-form-notifications table thead .number-of-fields{width:15%}.ccf-main-modal .ccf-existing-form-pane table tfoot .date,.ccf-main-modal .ccf-existing-form-pane table thead .date,.ccf-main-modal .ccf-form-notifications table tfoot .date,.ccf-main-modal .ccf-form-notifications table thead .date{width:20%}.ccf-main-modal .ccf-existing-form-pane table tbody tr:nth-child(odd),.ccf-main-modal .ccf-form-notifications table tbody tr:nth-child(odd){background-color:#fafafa;margin:0}.ccf-main-modal .ccf-existing-form-pane table tbody tr,.ccf-main-modal .ccf-form-notifications table tbody tr{background-color:#fff}.ccf-main-modal .ccf-existing-form-pane table tbody td,.ccf-main-modal .ccf-form-notifications table tbody td{vertical-align:top}.ccf-main-modal .ccf-existing-form-pane table tbody td a,.ccf-main-modal .ccf-form-notifications table tbody td a{text-decoration:none;cursor:pointer}.ccf-main-modal .ccf-existing-form-pane table tbody td .title,.ccf-main-modal .ccf-form-notifications table tbody td .title{font-weight:700;font-size:14px}.ccf-main-modal .ccf-existing-form-pane table tbody td .actions,.ccf-main-modal .ccf-form-notifications table tbody td .actions{visibility:hidden;margin-top:6px}.ccf-main-modal .ccf-existing-form-pane table tbody td .actions .delete,.ccf-main-modal .ccf-form-notifications table tbody td .actions .delete{color:red}.ccf-main-modal .ccf-existing-form-pane table tbody tr:hover td .actions,.ccf-main-modal .ccf-form-notifications table tbody tr:hover td .actions{visibility:visible}.ccf-main-modal-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;z-index:159900;opacity:.7;-ms-filter:"alpha(Opacity=70)";filter:alpha(opacity=70);-moz-opacity:.7;-khtml-opacity:.7;background-color:#000}.ccf-pagination{font-size:12px;margin-top:8px;text-align:right}.ccf-pagination .pages{padding:0 4px}.ccf-pagination .num-items{font-style:italic;padding-right:4px}.ccf-pagination a{cursor:pointer;color:#0074a2;background:#f0f0f0;text-decoration:none}.ccf-pagination a.first,.ccf-pagination a.last,.ccf-pagination a.next,.ccf-pagination a.prev{font-size:16px;line-height:22px;padding:0 7px 2px}.ccf-pagination a.first:hover,.ccf-pagination a.last:hover,.ccf-pagination a.next:hover,.ccf-pagination a.prev:hover{color:#fff;background-color:#2ea2cc}.ccf-pagination a.disabled{color:#aaa}.ccf-pagination a.disabled:hover{color:#aaa;background:#f0f0f0}.ccf-error-modal{display:none}.ccf-error-modal.show{display:block}.ccf-error-modal .ccf-notification-dialog-background{position:fixed;top:0;left:0;right:0;bottom:0;background:#000;opacity:.7;filter:alpha(opacity=70);z-index:1000000}.ccf-error-modal .notification-dialog{position:fixed;top:30%;left:50%;width:450px;margin-left:-225px;background:#fff;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.3);box-shadow:0 3px 6px rgba(0,0,0,.3);line-height:1.5;z-index:1000005}.ccf-error-modal .notification-dialog .close{font-size:25px;position:absolute;right:10px;cursor:pointer}.ccf-error-modal .notification-dialog .message{margin:25px}.ccf-error-modal .notification-dialog .message .title{color:#23282d;font-size:1.3em;margin:0 0 1em}.ccf-error-modal .notification-dialog .message ul{margin-left:25px}.ccf-error-modal .notification-dialog .message ul li{list-style-type:disc}
1
+ @charset "UTF-8";@font-face{font-family:menu;src:url(../../fonts/menu.eot);src:url(../../fonts/menu.eot?#iefix) format("embedded-opentype"),url(../../fonts/menu.woff) format("woff"),url(../../fonts/menu.ttf) format("truetype"),url(../../fonts/menu.svg#form-manager) format("svg");font-weight:400;font-style:normal}@font-face{font-family:form-manager;src:url(../../fonts/form-manager.eot);src:url(../../fonts/form-manager.eot?#iefix) format("embedded-opentype"),url(../../fonts/form-manager.woff) format("woff"),url(../../fonts/form-manager.ttf) format("truetype"),url(../../fonts/form-manager.svg#form-manager) format("svg");font-weight:400;font-style:normal}.ccf-open-form-manager:before{font-family:menu;content:"";padding-right:4px;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;cursor:pointer;-webkit-font-smoothing:antialiased}.ccf-main-modal{display:none;position:fixed;top:30px;left:30px;right:30px;bottom:30px;z-index:160000;overflow:hidden;background-color:#fff}.ccf-main-modal [data-icon]:before{font-family:form-manager;content:attr(data-icon);speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;cursor:pointer;-webkit-font-smoothing:antialiased}.ccf-main-modal .single .insert-form-button{display:none}.ccf-main-modal .hidden{display:block}.ccf-main-modal .field{margin-bottom:5px;overflow:auto;position:relative}.ccf-main-modal .field.field-incomplete h4{background-color:#ffebe8}.ccf-main-modal .field.field-duplicate-slug h4{background-color:#ffe6a5}.ccf-main-modal .field.ccf-editing{border:#999 1px solid}.ccf-main-modal .field.ccf-editing h4:hover{border:1px solid #e5e5e5}.ccf-main-modal .field h4{-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);border:1px solid #e5e5e5;background:#fafafa;font-size:13px;margin:0;font-weight:600;color:#222;padding:13px 13px 13px 20px;cursor:move}.ccf-main-modal .field h4:hover{border:#999 1px solid}.ccf-main-modal .field .right{float:right;display:block}.ccf-main-modal .field .right a{color:inherit;margin-left:3px}.ccf-main-modal .field .preview{clear:both;display:none;text-align:left;overflow:auto;float:none;background-color:#fff;border-left:1px solid #e5e5e5;border-right:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;padding:10px 20px}.ccf-main-modal .field .preview .recaptcha-preview-img{margin-top:7px}.ccf-main-modal .field .preview .simple-captcha-preview-img{margin-bottom:7px}.ccf-main-modal .field .preview .field-description{margin-top:3px;clear:left}.ccf-main-modal .field .preview .left{float:left;clear:both;width:47%}.ccf-main-modal .field .preview .right{float:right;width:47%}.ccf-main-modal .field .preview .full input[type=text],.ccf-main-modal .field .preview .full select,.ccf-main-modal .field .preview .left input[type=text],.ccf-main-modal .field .preview .left select,.ccf-main-modal .field .preview .right input[type=text],.ccf-main-modal .field .preview .right select{width:100%;max-width:100%}.ccf-main-modal .field .preview .full .sub-label,.ccf-main-modal .field .preview .left .sub-label,.ccf-main-modal .field .preview .right .sub-label{margin:3px 0 3px 2px;font-size:90%}.ccf-main-modal .field .preview .full .hour,.ccf-main-modal .field .preview .full .minute,.ccf-main-modal .field .preview .left .hour,.ccf-main-modal .field .preview .left .minute,.ccf-main-modal .field .preview .right .hour,.ccf-main-modal .field .preview .right .minute{display:inline-block;margin-right:5px}.ccf-main-modal .field .preview .full .hour input,.ccf-main-modal .field .preview .full .minute input,.ccf-main-modal .field .preview .left .hour input,.ccf-main-modal .field .preview .left .minute input,.ccf-main-modal .field .preview .right .hour input,.ccf-main-modal .field .preview .right .minute input{width:35px}.ccf-main-modal .field .preview .full .am-pm,.ccf-main-modal .field .preview .left .am-pm,.ccf-main-modal .field .preview .right .am-pm{display:inline-block;vertical-align:top}.ccf-main-modal .field .preview .full .am-pm select,.ccf-main-modal .field .preview .left .am-pm select,.ccf-main-modal .field .preview .right .am-pm select{width:60px}.ccf-main-modal .field .preview .heading{font-size:125%;font-weight:700;border-bottom:1px solid #ccc;padding-bottom:9px;margin-bottom:9px}.ccf-main-modal .field .preview .subheading{font-style:italic}.ccf-main-modal .field .preview .conditionals-enabled{font-size:70%;background-color:#ffe6a5;font-weight:700;padding:0 2px;opacity:.5;left:7px;position:absolute;top:1.49em}.ccf-main-modal .field .preview label{font-weight:700;margin-bottom:3px;cursor:inherit}.ccf-main-modal .field .preview label span.required{color:red}.ccf-main-modal .field .preview input[type=checkbox]+label,.ccf-main-modal .field .preview input[type=radio]+label{display:inline-block}.ccf-main-modal .field .preview input[type=text],.ccf-main-modal .field .preview textarea{width:100%;background-color:#fff;color:#333;border:1px solid #ddd;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.07);box-shadow:inset 0 1px 2px rgba(0,0,0,.07)}.ccf-main-modal .field .preview textarea{height:60px}.ccf-main-modal .close-icon{position:absolute;top:16px;right:16px;font-size:35px;cursor:pointer;color:#333;z-index:160001}.ccf-main-modal .main-menu{position:absolute;top:0;right:0;left:0;height:125px}.ccf-main-modal .main-menu h1{padding:16px}.ccf-main-modal .main-menu ul{height:40px;box-sizing:border-box;font-size:14px;margin:0;list-style-type:none;border-top:1px solid #ddd;background:#f3f3f3;padding:0 16px}.ccf-main-modal .main-menu ul li{margin:0;display:inline-block;height:38px;vertical-align:middle;line-height:40px;padding:0 8px}.ccf-main-modal .main-menu ul li a{text-decoration:none}.ccf-main-modal .main-menu ul li a :hover,.ccf-main-modal .main-menu ul li a.selected{color:#000}.ccf-main-modal .ccf-form-pane{display:none;position:absolute;top:125px;right:0;left:0;bottom:0}.ccf-main-modal .ccf-form-pane.single{top:85px;border-top:1px solid #e5e5e5}.ccf-main-modal .ccf-form-pane.single .form-content,.ccf-main-modal .ccf-form-pane.single .left-sidebar{border-top:0}.ccf-main-modal .ccf-form-pane .disabled-overlay{position:absolute;top:0;left:0;right:0;bottom:50px;background-color:#000;opacity:.1;-ms-filter:"alpha(Opacity=1)";filter:alpha(opacity=1);-moz-opacity:.1;-khtml-opacity:.1;z-index:3;display:none}.ccf-main-modal .ccf-form-pane .bottom{bottom:0;left:0;right:0;height:50px;padding:0 16px 0 0;position:absolute;text-align:right;line-height:50px;border-top:1px solid #e5e5e5}.ccf-main-modal .ccf-form-pane .bottom .left{float:left;background-color:#00a0d2;padding-left:16px;padding-right:16px;color:#fff}@media (max-width:830px){.ccf-main-modal .ccf-form-pane .bottom .left{display:none}}.ccf-main-modal .ccf-form-pane .bottom .left input{vertical-align:middle;margin-left:5px}.ccf-main-modal .ccf-form-pane .bottom .left button{vertical-align:middle}.ccf-main-modal .ccf-form-pane .bottom .left .signup-x{color:red;display:none;font-size:150%;vertical-align:middle;font-weight:700;margin-left:4px}.ccf-main-modal .ccf-form-pane .bottom .left .signup-check{color:green;display:none;vertical-align:middle;font-size:150%;font-weight:700;margin-left:4px}.ccf-main-modal .ccf-form-pane .bottom .left.signup-error .signup-x,.ccf-main-modal .ccf-form-pane .bottom .left.signup-success .signup-check{display:inline}.ccf-main-modal .ccf-form-pane .bottom .spinner{display:none;visibility:visible;float:right;width:16px;height:16px;margin-top:16px}.ccf-main-modal .ccf-form-pane .bottom input[type=button]{margin-top:11px;float:right;margin-left:6px}.ccf-main-modal .ccf-form-pane .accordion-section{background-color:#fff;border-bottom:0}.ccf-main-modal .ccf-form-pane .accordion-section:first-child{border-top:1px solid #e5e5e5}.ccf-main-modal .ccf-form-pane .accordion-section.expanded .section-content{display:block}.ccf-main-modal .ccf-form-pane .accordion-section.expanded .accordion-heading:before{content:""}.ccf-main-modal .ccf-form-pane .accordion-section.expanded .form-settings-heading:before{content:""}.ccf-main-modal .ccf-form-pane .accordion-section .accordion-heading,.ccf-main-modal .ccf-form-pane .accordion-section .form-settings-heading{cursor:pointer;display:block;line-height:29px;color:inherit;padding:10px 20px;border-bottom:1px solid #e5e5e5;font-size:150%;background-color:#fafafa;margin:0}.ccf-main-modal .ccf-form-pane .accordion-section .accordion-heading:before,.ccf-main-modal .ccf-form-pane .accordion-section .form-settings-heading:before{margin-right:8px;font-family:form-manager;content:"";speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;cursor:pointer;-webkit-font-smoothing:antialiased}.ccf-main-modal .ccf-form-pane .accordion-section .section-content{display:none;padding:10px 20px;border-bottom:1px solid #e5e5e5}.ccf-main-modal .ccf-form-pane label{display:block;margin-bottom:8px}.ccf-main-modal .ccf-form-pane .explain{margin-top:5px;font-style:italic;display:block}.ccf-main-modal .ccf-form-pane.show-form-settings .ccf-form-settings{display:block}.ccf-main-modal .ccf-form-pane .ccf-form-settings{display:none;position:absolute;width:75%;bottom:50px;left:25%;z-index:2;top:0;overflow:auto;background-color:#fff;border-top:1px solid #ddd;padding:21px;box-sizing:border-box}.ccf-main-modal .ccf-form-pane .ccf-form-settings h3:first-child,.ccf-main-modal .ccf-form-pane .ccf-form-settings p:first-child{margin-top:0}.ccf-main-modal .ccf-form-pane .ccf-form-settings h3{border-bottom:1px solid #ccc;padding-bottom:.75em;margin-top:2em}.ccf-main-modal .ccf-form-pane .ccf-form-settings .ccf-form-notifications td{position:relative}.ccf-main-modal .ccf-form-pane .ccf-form-settings .variables{margin-top:0}.ccf-main-modal .ccf-form-pane .ccf-form-settings .ccf-form-notifications .active{width:15%}.ccf-main-modal .ccf-form-pane .ccf-form-settings .ccf-form-notifications .active-indicator{color:#33CA33;font-size:40px}.ccf-main-modal .ccf-form-pane .ccf-form-settings .ccf-form-notifications .inactive-indicator{color:red;font-size:40px}.ccf-main-modal .ccf-form-pane .ccf-form-settings .ccf-form-notifications .add-notification{margin-top:1em;cursor:pointer}.ccf-main-modal .ccf-form-pane .ccf-form-settings .close-notification{position:absolute;top:10px;right:10px;cursor:pointer;font-size:200%;color:inherit}.ccf-main-modal .ccf-form-pane .ccf-form-settings .delete-notification{color:red}.ccf-main-modal .ccf-form-pane .ccf-form-settings .address .add,.ccf-main-modal .ccf-form-pane .ccf-form-settings .address .delete,.ccf-main-modal .ccf-form-pane .ccf-form-settings .field-mapping .add,.ccf-main-modal .ccf-form-pane .ccf-form-settings .field-mapping .delete{color:inherit;vertical-align:middle}.ccf-main-modal .ccf-form-pane .ccf-form-settings .post-creation-mapping-wrapper{margin-top:1em}.ccf-main-modal .ccf-form-pane .left-sidebar{box-sizing:border-box;background-color:#f3f3f3;position:absolute;border-top:1px solid #ddd;border-right:1px solid #ddd;width:25%;top:0;padding:0;bottom:50px;left:0;overflow:auto}.ccf-main-modal .ccf-form-pane .left-sidebar .accordion-section:first-child{border-top:0}.ccf-main-modal .ccf-form-pane .left-sidebar .fields,.ccf-main-modal .ccf-form-pane .left-sidebar .special-fields,.ccf-main-modal .ccf-form-pane .left-sidebar .structure-fields{padding:5px}.ccf-main-modal .ccf-form-pane .left-sidebar .fields .field .preview,.ccf-main-modal .ccf-form-pane .left-sidebar .fields .field .right,.ccf-main-modal .ccf-form-pane .left-sidebar .special-fields .field .preview,.ccf-main-modal .ccf-form-pane .left-sidebar .special-fields .field .right,.ccf-main-modal .ccf-form-pane .left-sidebar .structure-fields .field .preview,.ccf-main-modal .ccf-form-pane .left-sidebar .structure-fields .field .right{display:none}.ccf-main-modal .ccf-form-pane .form-content{box-sizing:border-box;position:absolute;width:40%;bottom:50px;left:25%;right:35%;top:0;overflow:auto;border-top:1px solid #ddd;padding:21px}.ccf-main-modal .ccf-form-pane .form-content .field-placeholder{border:1px dashed #e5e5e5;height:46px;margin-bottom:5px}.ccf-main-modal .ccf-form-pane .form-content .no-fields{font-size:22px;padding:16px;font-style:italic}.ccf-main-modal .ccf-form-pane .form-content:after{width:100%;display:block;margin-top:5px;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;font-style:italic;font-size:22px;text-align:center;padding:1em .5em;border:4px dashed #e5e5e5;content:attr(data-drag-message)}.ccf-main-modal .ccf-form-pane .right-sidebar{box-sizing:border-box;padding:0;position:absolute;width:35%;top:0;overflow:auto;background-color:#f3f3f3;right:0;bottom:50px;border-left:1px solid #ddd}.ccf-main-modal .ccf-form-pane .right-sidebar .section-content>div{margin-bottom:6px}.ccf-main-modal .ccf-form-pane .right-sidebar .no-field{padding:16px;font-style:italic;font-size:22px}.ccf-main-modal .ccf-form-pane .right-sidebar label{display:inline-block;margin:0}.ccf-main-modal .ccf-form-pane .right-sidebar label .required{color:red}.ccf-main-modal .ccf-form-pane .right-sidebar .field-error input{border-color:red;border-width:2px}.ccf-main-modal .ccf-form-pane .right-sidebar .field-duplicate-slug input{border-color:#ffe6a5;border-width:2px}.ccf-main-modal .ccf-form-pane .right-sidebar input[type=text]{width:100%;display:block;margin-top:5px}.ccf-main-modal .ccf-form-pane .right-sidebar .hide{display:none}.ccf-main-modal .ccf-form-pane .right-sidebar .conditionals input[type=text]{width:100px;display:inline-block}.ccf-main-modal .ccf-form-pane .right-sidebar input[type=checkbox]+label{display:inline-block;vertical-align:middle}.ccf-main-modal .ccf-form-pane .right-sidebar label+select{display:inline-block}.ccf-main-modal .ccf-form-pane .right-sidebar textarea{width:100%;height:80px;margin-top:5px}.ccf-main-modal .ccf-form-pane .right-sidebar .field-html{height:150px;width:100%}.ccf-main-modal .ccf-form-pane .right-sidebar .repeatable-choices .choice input[type=text]{width:100px;display:inline-block}.ccf-main-modal .ccf-form-pane .right-sidebar .repeatable-choices .choice .move{color:inherit;cursor:move}.ccf-main-modal .ccf-form-pane .right-sidebar .repeatable-choices .choice .move:before{cursor:move}.ccf-main-modal .ccf-form-pane .right-sidebar .repeatable-choices .choice .add,.ccf-main-modal .ccf-form-pane .right-sidebar .repeatable-choices .choice .delete{cursor:pointer;color:inherit}.ccf-main-modal .ccf-existing-form-pane{display:none;position:absolute;overflow:scroll;top:125px;right:0;left:0;bottom:0;background-color:#fff;padding:16px}.ccf-main-modal .ccf-existing-form-pane table,.ccf-main-modal .ccf-form-notifications table{width:100%;border-collapse:collapse;table-layout:fixed;border:1px solid #ddd}.ccf-main-modal .ccf-existing-form-pane table .left,.ccf-main-modal .ccf-form-notifications table .left{float:left;width:50%;padding-right:10px;box-sizing:border-box}.ccf-main-modal .ccf-existing-form-pane table .left textarea,.ccf-main-modal .ccf-form-notifications table .left textarea{width:100%;height:300px}.ccf-main-modal .ccf-existing-form-pane table .right,.ccf-main-modal .ccf-form-notifications table .right{padding-left:10px;box-sizing:border-box;float:right;width:50%}.ccf-main-modal .ccf-existing-form-pane table td,.ccf-main-modal .ccf-form-notifications table td{margin:0;padding:14px 21px;text-align:left}.ccf-main-modal .ccf-existing-form-pane table .empty-form-table,.ccf-main-modal .ccf-existing-form-pane table .no-notifications,.ccf-main-modal .ccf-form-notifications table .empty-form-table,.ccf-main-modal .ccf-form-notifications table .no-notifications{text-align:center}.ccf-main-modal .ccf-existing-form-pane table tfoot,.ccf-main-modal .ccf-existing-form-pane table thead,.ccf-main-modal .ccf-form-notifications table tfoot,.ccf-main-modal .ccf-form-notifications table thead{background-color:#f0f0f0}.ccf-main-modal .ccf-existing-form-pane table tfoot tr,.ccf-main-modal .ccf-existing-form-pane table thead tr,.ccf-main-modal .ccf-form-notifications table tfoot tr,.ccf-main-modal .ccf-form-notifications table thead tr{border-bottom:1px solid #e5e5e5;border-top:1px solid #e5e5e5}.ccf-main-modal .ccf-existing-form-pane table tfoot th,.ccf-main-modal .ccf-existing-form-pane table thead th,.ccf-main-modal .ccf-form-notifications table tfoot th,.ccf-main-modal .ccf-form-notifications table thead th{margin:0;text-align:left;padding:14px 21px;box-sizing:border-box}.ccf-main-modal .ccf-existing-form-pane table tfoot .id,.ccf-main-modal .ccf-existing-form-pane table thead .id,.ccf-main-modal .ccf-form-notifications table tfoot .id,.ccf-main-modal .ccf-form-notifications table thead .id{width:5%}.ccf-main-modal .ccf-existing-form-pane table tfoot .title,.ccf-main-modal .ccf-existing-form-pane table thead .title,.ccf-main-modal .ccf-form-notifications table tfoot .title,.ccf-main-modal .ccf-form-notifications table thead .title{width:30%}.ccf-main-modal .ccf-existing-form-pane table tfoot .author,.ccf-main-modal .ccf-existing-form-pane table tfoot .entries,.ccf-main-modal .ccf-existing-form-pane table tfoot .submissions,.ccf-main-modal .ccf-existing-form-pane table thead .author,.ccf-main-modal .ccf-existing-form-pane table thead .entries,.ccf-main-modal .ccf-existing-form-pane table thead .submissions,.ccf-main-modal .ccf-form-notifications table tfoot .author,.ccf-main-modal .ccf-form-notifications table tfoot .entries,.ccf-main-modal .ccf-form-notifications table tfoot .submissions,.ccf-main-modal .ccf-form-notifications table thead .author,.ccf-main-modal .ccf-form-notifications table thead .entries,.ccf-main-modal .ccf-form-notifications table thead .submissions{width:10%}.ccf-main-modal .ccf-existing-form-pane table tfoot .number-of-fields,.ccf-main-modal .ccf-existing-form-pane table thead .number-of-fields,.ccf-main-modal .ccf-form-notifications table tfoot .number-of-fields,.ccf-main-modal .ccf-form-notifications table thead .number-of-fields{width:15%}.ccf-main-modal .ccf-existing-form-pane table tfoot .date,.ccf-main-modal .ccf-existing-form-pane table thead .date,.ccf-main-modal .ccf-form-notifications table tfoot .date,.ccf-main-modal .ccf-form-notifications table thead .date{width:20%}.ccf-main-modal .ccf-existing-form-pane table tbody tr:nth-child(odd),.ccf-main-modal .ccf-form-notifications table tbody tr:nth-child(odd){background-color:#fafafa;margin:0}.ccf-main-modal .ccf-existing-form-pane table tbody tr,.ccf-main-modal .ccf-form-notifications table tbody tr{background-color:#fff}.ccf-main-modal .ccf-existing-form-pane table tbody td,.ccf-main-modal .ccf-form-notifications table tbody td{vertical-align:top}.ccf-main-modal .ccf-existing-form-pane table tbody td a,.ccf-main-modal .ccf-form-notifications table tbody td a{text-decoration:none;cursor:pointer}.ccf-main-modal .ccf-existing-form-pane table tbody td .title,.ccf-main-modal .ccf-form-notifications table tbody td .title{font-weight:700;font-size:14px}.ccf-main-modal .ccf-existing-form-pane table tbody td .actions,.ccf-main-modal .ccf-form-notifications table tbody td .actions{visibility:hidden;margin-top:6px}.ccf-main-modal .ccf-existing-form-pane table tbody td .actions .delete,.ccf-main-modal .ccf-form-notifications table tbody td .actions .delete{color:red}.ccf-main-modal .ccf-existing-form-pane table tbody tr:hover td .actions,.ccf-main-modal .ccf-form-notifications table tbody tr:hover td .actions{visibility:visible}.ccf-main-modal-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;z-index:159900;opacity:.7;-ms-filter:"alpha(Opacity=70)";filter:alpha(opacity=70);-moz-opacity:.7;-khtml-opacity:.7;background-color:#000}.ccf-pagination{font-size:12px;margin-top:8px;text-align:right}.ccf-pagination .pages{padding:0 4px}.ccf-pagination .num-items{font-style:italic;padding-right:4px}.ccf-pagination a{cursor:pointer;color:#0074a2;background:#f0f0f0;text-decoration:none}.ccf-pagination a.first,.ccf-pagination a.last,.ccf-pagination a.next,.ccf-pagination a.prev{font-size:16px;line-height:22px;padding:0 7px 2px}.ccf-pagination a.first:hover,.ccf-pagination a.last:hover,.ccf-pagination a.next:hover,.ccf-pagination a.prev:hover{color:#fff;background-color:#2ea2cc}.ccf-pagination a.disabled{color:#aaa}.ccf-pagination a.disabled:hover{color:#aaa;background:#f0f0f0}.ccf-error-modal{display:none}.ccf-error-modal.show{display:block}.ccf-error-modal .ccf-notification-dialog-background{position:fixed;top:0;left:0;right:0;bottom:0;background:#000;opacity:.7;filter:alpha(opacity=70);z-index:1000000}.ccf-error-modal .notification-dialog{position:fixed;top:30%;left:50%;width:450px;margin-left:-225px;background:#fff;-webkit-box-shadow:0 3px 6px rgba(0,0,0,.3);box-shadow:0 3px 6px rgba(0,0,0,.3);line-height:1.5;z-index:1000005}.ccf-error-modal .notification-dialog .close{font-size:25px;position:absolute;right:10px;cursor:pointer}.ccf-error-modal .notification-dialog .message{margin:25px}.ccf-error-modal .notification-dialog .message .title{color:#23282d;font-size:1.3em;margin:0 0 1em}.ccf-error-modal .notification-dialog .message ul{margin-left:25px}.ccf-error-modal .notification-dialog .message ul li{list-style-type:disc}
assets/build/css/form-mce.css CHANGED
@@ -45,6 +45,8 @@
45
  clear: both;
46
  height: 0;
47
  display: block; }
 
 
48
  .ccf-form-preview .field label {
49
  display: block; }
50
  .ccf-form-preview .field .left {
45
  clear: both;
46
  height: 0;
47
  display: block; }
48
+ .ccf-form-preview .field .simple-captcha-preview-img {
49
+ margin-bottom: 7px; }
50
  .ccf-form-preview .field label {
51
  display: block; }
52
  .ccf-form-preview .field .left {
assets/build/css/form-mce.css.map CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "version": 3,
3
- "mappings": "AAAA,iBAAkB;EACjB,MAAM,EAAE,iBAAiB;EACzB,gBAAgB,EAAE,OAAO;EACzB,OAAO,EAAE,SAAS;EAClB,SAAS,EAAE,IAAI;EACf,WAAW,EAAE,sBAAsB;EAEnC,+BAAgB;IACf,UAAU,EAAE,MAAM;EAGnB,oBAAG;IACF,MAAM,EAAE,UAAU;IAClB,OAAO,EAAE,CAAC;EAGX,+BAAc;IACb,UAAU,EAAE,IAAI;IAEhB,qCAAM;MACL,KAAK,EAAE,IAAI;MACX,YAAY,EAAE,IAAI;MAClB,UAAU,EAAE,OAAO;MACnB,kBAAkB,EAAE,+CAA0C;MAC9D,UAAU,EAAE,+CAA0C;MACtD,cAAc,EAAE,GAAG;MACnB,OAAO,EAAE,YAAY;MACrB,eAAe,EAAE,IAAI;MACrB,SAAS,EAAE,IAAI;MACf,WAAW,EAAE,IAAI;MACjB,MAAM,EAAE,IAAI;MACZ,MAAM,EAAE,CAAC;MACT,OAAO,EAAE,UAAU;MACnB,MAAM,EAAE,OAAO;MACf,YAAY,EAAE,GAAG;MACjB,YAAY,EAAE,KAAK;MACnB,kBAAkB,EAAE,IAAI;MACxB,qBAAqB,EAAE,GAAG;MAC1B,aAAa,EAAE,GAAG;MAClB,WAAW,EAAE,MAAM;MACnB,kBAAkB,EAAE,UAAU;MAC9B,eAAe,EAAE,UAA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build/css/form-mce.min.css CHANGED
@@ -1 +1 @@
1
- .ccf-form-preview{border:1px solid #e5e5e5;background-color:#fcfcfc;padding:3.5% 7.5%;font-size:14px;font-family:"Open Sans",sans-serif}.ccf-form-preview.preview-error{text-align:center}.ccf-form-preview h2{margin:0 0 10px;padding:0}.ccf-form-preview .field-submit{margin-top:15px}.ccf-form-preview .field-submit input{color:#555;border-color:#ccc;background:#f7f7f7;-webkit-box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);vertical-align:top;display:inline-block;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0 10px 1px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;-webkit-border-radius:3px;border-radius:3px;white-space:nowrap;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ccf-form-preview .field{clear:both;text-align:left;float:none;padding:15px 0}.ccf-form-preview .field:after{content:' ';clear:both;height:0;display:block}.ccf-form-preview .field label{display:block}.ccf-form-preview .field .left{float:left;clear:both;width:47%}.ccf-form-preview .field .right{float:right;width:47%}.ccf-form-preview .field .field-description{margin-top:7px;clear:left}.ccf-form-preview .field .full input[type=text],.ccf-form-preview .field .full select,.ccf-form-preview .field .left input[type=text],.ccf-form-preview .field .left select,.ccf-form-preview .field .right input[type=text],.ccf-form-preview .field .right select{width:100%;max-width:100%}.ccf-form-preview .field .full .sub-label,.ccf-form-preview .field .left .sub-label,.ccf-form-preview .field .right .sub-label{margin:3px 0 3px 2px;font-size:90%}.ccf-form-preview .field .heading{font-size:125%;font-weight:700;border-bottom:1px solid #ccc;padding-bottom:9px;margin-bottom:9px}.ccf-form-preview .field .subheading{font-style:italic}.ccf-form-preview .field label{font-weight:700;margin-bottom:7px;cursor:inherit}.ccf-form-preview .field label span.required{color:red}.ccf-form-preview .field .conditionals-enabled{display:none}.ccf-form-preview .field .choice{padding-left:15px}.ccf-form-preview .field .choice label{font-weight:400}.ccf-form-preview .field input[type=checkbox]+label,.ccf-form-preview .field input[type=radio]+label{display:inline-block}.ccf-form-preview .field input[type=text],.ccf-form-preview .field textarea{border:1px solid #ddd;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.07);box-shadow:inset 0 1px 2px rgba(0,0,0,.07);background-color:#fff;color:#333;height:28px;box-sizing:border-box;width:100%;display:block}.ccf-form-preview .field input[type=text],.ccf-form-preview .field select,.ccf-form-preview .field textarea{padding:3px 6px;font-size:14px}.ccf-form-preview .field textarea{height:80px}.ccf-form-preview .field select{border:1px solid #ddd;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.07);box-shadow:inset 0 1px 2px rgba(0,0,0,.07);background-color:#fff;color:#333;outline:0;padding:2px;line-height:28px;height:28px;vertical-align:middle;font-size:14px}.ccf-form-preview .field.date .hour,.ccf-form-preview .field.date .minute{display:inline-block;margin-right:5px}.ccf-form-preview .field.date .hour input,.ccf-form-preview .field.date .minute input{width:35px}.ccf-form-preview .field.date .hour label,.ccf-form-preview .field.date .minute label{font-weight:400}.ccf-form-preview .field.date .am-pm{display:inline-block;vertical-align:top}.ccf-form-preview .field.date .am-pm select{width:60px}
1
+ .ccf-form-preview{border:1px solid #e5e5e5;background-color:#fcfcfc;padding:3.5% 7.5%;font-size:14px;font-family:"Open Sans",sans-serif}.ccf-form-preview.preview-error{text-align:center}.ccf-form-preview h2{margin:0 0 10px;padding:0}.ccf-form-preview .field-submit{margin-top:15px}.ccf-form-preview .field-submit input{color:#555;border-color:#ccc;background:#f7f7f7;-webkit-box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);box-shadow:inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);vertical-align:top;display:inline-block;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0 10px 1px;cursor:pointer;border-width:1px;border-style:solid;-webkit-appearance:none;-webkit-border-radius:3px;border-radius:3px;white-space:nowrap;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ccf-form-preview .field{clear:both;text-align:left;float:none;padding:15px 0}.ccf-form-preview .field:after{content:' ';clear:both;height:0;display:block}.ccf-form-preview .field .simple-captcha-preview-img{margin-bottom:7px}.ccf-form-preview .field label{display:block}.ccf-form-preview .field .left{float:left;clear:both;width:47%}.ccf-form-preview .field .right{float:right;width:47%}.ccf-form-preview .field .field-description{margin-top:7px;clear:left}.ccf-form-preview .field .full input[type=text],.ccf-form-preview .field .full select,.ccf-form-preview .field .left input[type=text],.ccf-form-preview .field .left select,.ccf-form-preview .field .right input[type=text],.ccf-form-preview .field .right select{width:100%;max-width:100%}.ccf-form-preview .field .full .sub-label,.ccf-form-preview .field .left .sub-label,.ccf-form-preview .field .right .sub-label{margin:3px 0 3px 2px;font-size:90%}.ccf-form-preview .field .heading{font-size:125%;font-weight:700;border-bottom:1px solid #ccc;padding-bottom:9px;margin-bottom:9px}.ccf-form-preview .field .subheading{font-style:italic}.ccf-form-preview .field label{font-weight:700;margin-bottom:7px;cursor:inherit}.ccf-form-preview .field label span.required{color:red}.ccf-form-preview .field .conditionals-enabled{display:none}.ccf-form-preview .field .choice{padding-left:15px}.ccf-form-preview .field .choice label{font-weight:400}.ccf-form-preview .field input[type=checkbox]+label,.ccf-form-preview .field input[type=radio]+label{display:inline-block}.ccf-form-preview .field input[type=text],.ccf-form-preview .field textarea{border:1px solid #ddd;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.07);box-shadow:inset 0 1px 2px rgba(0,0,0,.07);background-color:#fff;color:#333;height:28px;box-sizing:border-box;width:100%;display:block}.ccf-form-preview .field input[type=text],.ccf-form-preview .field select,.ccf-form-preview .field textarea{padding:3px 6px;font-size:14px}.ccf-form-preview .field textarea{height:80px}.ccf-form-preview .field select{border:1px solid #ddd;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.07);box-shadow:inset 0 1px 2px rgba(0,0,0,.07);background-color:#fff;color:#333;outline:0;padding:2px;line-height:28px;height:28px;vertical-align:middle;font-size:14px}.ccf-form-preview .field.date .hour,.ccf-form-preview .field.date .minute{display:inline-block;margin-right:5px}.ccf-form-preview .field.date .hour input,.ccf-form-preview .field.date .minute input{width:35px}.ccf-form-preview .field.date .hour label,.ccf-form-preview .field.date .minute label{font-weight:400}.ccf-form-preview .field.date .am-pm{display:inline-block;vertical-align:top}.ccf-form-preview .field.date .am-pm select{width:60px}
assets/build/css/form-table.css CHANGED
@@ -1,4 +1,7 @@
1
  .view-switch {
2
  display: none; }
3
 
 
 
 
4
  /*# sourceMappingURL=form-table.css.map */
1
  .view-switch {
2
  display: none; }
3
 
4
+ .column-ccf_form_id {
5
+ width: 7em; }
6
+
7
  /*# sourceMappingURL=form-table.css.map */
assets/build/css/form-table.css.map CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "version": 3,
3
- "mappings": "AAAA,YAAa;EACZ,OAAO,EAAE,IAAI",
4
  "sources": ["../../scss/form-table.scss"],
5
  "names": [],
6
  "file": "form-table.css"
1
  {
2
  "version": 3,
3
+ "mappings": "AAAA,YAAa;EACZ,OAAO,EAAE,IAAI;;AAGd,mBAAoB;EACnB,KAAK,EAAE,GAAG",
4
  "sources": ["../../scss/form-table.scss"],
5
  "names": [],
6
  "file": "form-table.css"
assets/build/css/form-table.min.css CHANGED
@@ -1 +1 @@
1
- .view-switch{display:none}
1
+ .view-switch{display:none}.column-ccf_form_id{width:7em}
assets/build/css/form.css CHANGED
@@ -40,6 +40,8 @@
40
  clear: both; }
41
  .ccf-form-wrapper .field[data-field-type="recaptcha"] .error, .ccf-form-wrapper .field[data-field-type="file"] .error, .ccf-form-wrapper .field[data-field-type="dropdown"] .error, .ccf-form-wrapper .field[data-field-type="radio"] .error, .ccf-form-wrapper .field[data-field-type="checkboxes"] .error, .ccf-form-wrapper .field[data-field-type="date"] .error {
42
  float: none; }
 
 
43
  .ccf-form-wrapper .field .field-error-input {
44
  border: 1px solid #ff0000; }
45
  .ccf-form-wrapper .field label.main-label {
40
  clear: both; }
41
  .ccf-form-wrapper .field[data-field-type="recaptcha"] .error, .ccf-form-wrapper .field[data-field-type="file"] .error, .ccf-form-wrapper .field[data-field-type="dropdown"] .error, .ccf-form-wrapper .field[data-field-type="radio"] .error, .ccf-form-wrapper .field[data-field-type="checkboxes"] .error, .ccf-form-wrapper .field[data-field-type="date"] .error {
42
  float: none; }
43
+ .ccf-form-wrapper .field .ccf-simple-captcha-wrapper {
44
+ margin-bottom: 12px; }
45
  .ccf-form-wrapper .field .field-error-input {
46
  border: 1px solid #ff0000; }
47
  .ccf-form-wrapper .field label.main-label {
assets/build/css/form.css.map CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "version": 3,
3
- "mappings": "AAAA,iBAAkB;EACjB,MAAM,EAAE,MAAM;EAEd,iCAAgB;IACf,OAAO,EAAE,IAAI;EAGd,4BAAW;IACV,KAAK,EAAE,IAAI;EAGZ,6BAAY;IACX,SAAS,EAAE,IAAI;IACf,OAAO,EAAE,MAAM;EAGhB,mCAAkB;IACjB,OAAO,EAAE,UAAU;EAInB,kCAAI;IACH,cAAc,EAAE,MAAM;IACtB,OAAO,EAAE,YAAY;IACrB,MAAM,EAAE,CAAC;IACT,UAAU,EAAE,oDAAoD;IAChE,MAAM,EAAE,gBAAgB;IACxB,YAAY,EAAE,CAAC;IACf,cAAc,EAAE,CAAC;IACjB,OAAO,EAAE,CAAC;IACV,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,SAAS;EAInB,oCAAmB;IAClB,SAAS,EAAE,GAAG;IACd,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,GAAG;EAGhB,wBAAO;IACN,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,KAAK;IACZ,SAAS,EAAE,GAAG;IACd,UAAU,EAAE,GAAG;IAEf,kHAA8C;MAC7C,KAAK,EAAE,IAAI;IAGZ,oCAAc;MACb,KAAK,EAAE,KAAK;EAId,6BAAY;IACX,OAAO,EAAE,IAAI;EAGd,wBAAO;IACN,aAAa,EA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OAAO,EAAE,GAAG;MAEZ,iXAA6B;QAC5B,KAAK,EAAK,IAAI;MAEf,+TAAmB;QAClB,KAAK,EAAK,IAAI;MAEf,+TAAmB;QAClB,KAAK,EAAK,IAAI;MAEf,wVAAwB;QACvB,KAAK,EAAK,IAAI;IAIhB,yDAAwB;MACvB,OAAO,EAAE,QAAQ;MACjB,gBAAgB,EAAE,OAAO;MAAE,gBAAgB,EAAE,wEAAwE;MACrH,gBAAgB,EAAE,2CAA2C;MAC7D,gBAAgB,EAAE,wCAAwC;MAC1D,gBAAgB,EAAE,uCAAuC;MACzD,gBAAgB,EAAE,sCAAsC;MACxD,gBAAgB,EAAE,yCAAyC;MAAC,MAAM,EAAC,kGAAkG;EAIvK,kCAAiB;IAChB,SAAS,EAAE,IAAI;IAEf,+OAAiE;MAChE,aAAa,EAAE,GAAG;MAClB,gBAAgB,EAAE,OAAO;MACzB,KAAK,EAAE,IAAI;MACX,MAAM,EAAE,iBAAiB;MACzB,OAAO,EAAE,GAAG;MAEZ,sXAA6B;QAC5B,KAAK,EAAK,IAAI;MAEf,oUAAmB;QAClB,KAAK,EAAK,IAAI;MAEf,oUAAmB;QAClB,KAAK,EAAK,IAAI;MAEf,6VAAwB;QACvB,KAAK,EAAK,IAAI;IAIhB,0DAAwB;MACvB,OAAO,EAAE,QAAQ;MACjB,gBAAgB,EAAE,OAAO;MAAE,gBAAgB,EAAE,2EAA2E;MACxH,gBAAgB,EAAE,8CAA8C;MAChE,gBAAgB,EAAE,2CAA2C;MAC7D,gBAAgB,EAAE,0CAA0C;MAC5D,gBAAgB,EAAE,yCAAyC;MAC3D,gBAAgB,EAAE,4CAA4C;MAAC,MAAM,EAAC,qGAAqG",
4
  "sources": ["../../scss/form.scss"],
5
  "names": [],
6
  "file": "form.css"
assets/build/css/form.min.css CHANGED
@@ -1 +1 @@
1
- .ccf-form-wrapper{margin:20px 0}.ccf-form-wrapper .ccf-form-frame{display:none}.ccf-form-wrapper .ccf-clear{clear:both}.ccf-form-wrapper .form-title{font-size:150%;padding:20px 0}.ccf-form-wrapper .form-description{padding:0 0 20px}.ccf-form-wrapper .form-submit img{vertical-align:middle;display:inline-block;border:0;-ms-filter:"alpha(Opacity=0)";filter:alpha(opacity=0);-moz-opacity:0;-khtml-opacity:0;opacity:0;float:none;margin:0 0 0 6px}.ccf-form-wrapper .field-description{font-size:85%;clear:left;margin-top:6px}.ccf-form-wrapper .error{color:red;float:right;font-size:85%;margin-top:3px}.ccf-form-wrapper .error.email-error,.ccf-form-wrapper .error.match-error,.ccf-form-wrapper .error.unknown-error{float:none}.ccf-form-wrapper .error.right-error{float:right}.ccf-form-wrapper .field-hide{display:none}.ccf-form-wrapper .field{margin-bottom:24px;clear:both}.ccf-form-wrapper .field[data-field-type=checkboxes] .error,.ccf-form-wrapper .field[data-field-type=date] .error,.ccf-form-wrapper .field[data-field-type=dropdown] .error,.ccf-form-wrapper .field[data-field-type=file] .error,.ccf-form-wrapper .field[data-field-type=radio] .error,.ccf-form-wrapper .field[data-field-type=recaptcha] .error{float:none}.ccf-form-wrapper .field .field-error-input{border:1px solid red}.ccf-form-wrapper .field label.main-label{display:block;clear:both;margin-bottom:6px;font-weight:700}.ccf-form-wrapper .field label.main-label .required{padding-right:.3em;color:red}.ccf-form-wrapper .field input[type=text],.ccf-form-wrapper .field textarea{width:100%;box-sizing:border-box}.ccf-form-wrapper .field select{display:block;width:auto}.ccf-form-wrapper .field input[type=file]{background-color:inherit;border:0;line-height:0}.ccf-form-wrapper .field textarea{min-height:100px;color:inherit;font-family:inherit}.ccf-form-wrapper .field .left{width:50%;float:left;box-sizing:border-box;padding-right:10px;clear:both}.ccf-form-wrapper .field .right{width:50%;float:right;box-sizing:border-box;padding-left:10px}.ccf-form-wrapper .field .sub-label{margin-top:3px;font-size:85%;clear:none;font-weight:400}.ccf-form-wrapper .field.field-type-section-header .heading{font-size:125%;border-bottom:1px solid #ccc;padding-bottom:5px}.ccf-form-wrapper .field.field-type-section-header .subheading{margin-top:10px;font-size:85%;font-style:italic}.ccf-form-wrapper .field.field-type-date .hour,.ccf-form-wrapper .field.field-type-date .minute{display:inline-block;margin-right:5px}.ccf-form-wrapper .field.field-type-date .hour input,.ccf-form-wrapper .field.field-type-date .minute input{width:3.5em}.ccf-form-wrapper .field.field-type-date .hour label,.ccf-form-wrapper .field.field-type-date .minute label{font-weight:400}.ccf-form-wrapper .field.field-type-date .am-pm{display:inline-block;vertical-align:top}.ccf-form-wrapper .field.field-type-date .am-pm select{width:auto}.ccf-form-wrapper .ccf-theme-dark{font-size:16px}.ccf-form-wrapper .ccf-theme-dark dropdown,.ccf-form-wrapper .ccf-theme-dark input[type=submit],.ccf-form-wrapper .ccf-theme-dark input[type=text],.ccf-form-wrapper .ccf-theme-dark select,.ccf-form-wrapper .ccf-theme-dark textarea{border-radius:4px;background-color:#555;color:#fff;border:1px solid #ccc;padding:8px}.ccf-form-wrapper .ccf-theme-dark dropdown::-webkit-input-placeholder,.ccf-form-wrapper .ccf-theme-dark input[type=submit]::-webkit-input-placeholder,.ccf-form-wrapper .ccf-theme-dark input[type=text]::-webkit-input-placeholder,.ccf-form-wrapper .ccf-theme-dark select::-webkit-input-placeholder,.ccf-form-wrapper .ccf-theme-dark textarea::-webkit-input-placeholder{color:#ccc}.ccf-form-wrapper .ccf-theme-dark dropdown:-moz-placeholder,.ccf-form-wrapper .ccf-theme-dark input[type=submit]:-moz-placeholder,.ccf-form-wrapper .ccf-theme-dark input[type=text]:-moz-placeholder,.ccf-form-wrapper .ccf-theme-dark select:-moz-placeholder,.ccf-form-wrapper .ccf-theme-dark textarea:-moz-placeholder{color:#ccc}.ccf-form-wrapper .ccf-theme-dark dropdown:-ms-input-placeholder,.ccf-form-wrapper .ccf-theme-dark input[type=submit]:-ms-input-placeholder,.ccf-form-wrapper .ccf-theme-dark input[type=text]:-ms-input-placeholder,.ccf-form-wrapper .ccf-theme-dark select:-ms-input-placeholder,.ccf-form-wrapper .ccf-theme-dark textarea:-ms-input-placeholder{color:#ccc}.ccf-form-wrapper .ccf-theme-dark input.ccf-submit-button{padding:8px 14px;background-color:#555;background-image:-webkit-gradient(linear,left top,left bottom,from(#555),to(#222));background-image:-webkit-linear-gradient(top,#555,#222);background-image:-moz-linear-gradient(top,#555,#222);background-image:-ms-linear-gradient(top,#555,#222);background-image:-o-linear-gradient(top,#555,#222);background-image:linear-gradient(to bottom,#555,#222);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr=#555555, endColorstr=#222)}.ccf-form-wrapper .ccf-theme-light{font-size:16px}.ccf-form-wrapper .ccf-theme-light dropdown,.ccf-form-wrapper .ccf-theme-light input[type=submit],.ccf-form-wrapper .ccf-theme-light input[type=text],.ccf-form-wrapper .ccf-theme-light select,.ccf-form-wrapper .ccf-theme-light textarea{border-radius:4px;background-color:#fcfcfc;color:#333;border:1px solid #e0e0e0;padding:8px}.ccf-form-wrapper .ccf-theme-light dropdown::-webkit-input-placeholder,.ccf-form-wrapper .ccf-theme-light input[type=submit]::-webkit-input-placeholder,.ccf-form-wrapper .ccf-theme-light input[type=text]::-webkit-input-placeholder,.ccf-form-wrapper .ccf-theme-light select::-webkit-input-placeholder,.ccf-form-wrapper .ccf-theme-light textarea::-webkit-input-placeholder{color:#ccc}.ccf-form-wrapper .ccf-theme-light dropdown:-moz-placeholder,.ccf-form-wrapper .ccf-theme-light input[type=submit]:-moz-placeholder,.ccf-form-wrapper .ccf-theme-light input[type=text]:-moz-placeholder,.ccf-form-wrapper .ccf-theme-light select:-moz-placeholder,.ccf-form-wrapper .ccf-theme-light textarea:-moz-placeholder{color:#ccc}.ccf-form-wrapper .ccf-theme-light dropdown:-ms-input-placeholder,.ccf-form-wrapper .ccf-theme-light input[type=submit]:-ms-input-placeholder,.ccf-form-wrapper .ccf-theme-light input[type=text]:-ms-input-placeholder,.ccf-form-wrapper .ccf-theme-light select:-ms-input-placeholder,.ccf-form-wrapper .ccf-theme-light textarea:-ms-input-placeholder{color:#ccc}.ccf-form-wrapper .ccf-theme-light input.ccf-submit-button{padding:8px 14px;background-color:#f0f0f0;background-image:-webkit-gradient(linear,left top,left bottom,from(#f0f0f0),to(#fcfcfc));background-image:-webkit-linear-gradient(top,#f0f0f0,#fcfcfc);background-image:-moz-linear-gradient(top,#f0f0f0,#fcfcfc);background-image:-ms-linear-gradient(top,#f0f0f0,#fcfcfc);background-image:-o-linear-gradient(top,#f0f0f0,#fcfcfc);background-image:linear-gradient(to bottom,#f0f0f0,#fcfcfc);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr=#f0f0f0, endColorstr=#fcfcfc)}
1
+ .ccf-form-wrapper{margin:20px 0}.ccf-form-wrapper .ccf-form-frame{display:none}.ccf-form-wrapper .ccf-clear{clear:both}.ccf-form-wrapper .form-title{font-size:150%;padding:20px 0}.ccf-form-wrapper .form-description{padding:0 0 20px}.ccf-form-wrapper .form-submit img{vertical-align:middle;display:inline-block;border:0;-ms-filter:"alpha(Opacity=0)";filter:alpha(opacity=0);-moz-opacity:0;-khtml-opacity:0;opacity:0;float:none;margin:0 0 0 6px}.ccf-form-wrapper .field-description{font-size:85%;clear:left;margin-top:6px}.ccf-form-wrapper .error{color:red;float:right;font-size:85%;margin-top:3px}.ccf-form-wrapper .error.email-error,.ccf-form-wrapper .error.match-error,.ccf-form-wrapper .error.unknown-error{float:none}.ccf-form-wrapper .error.right-error{float:right}.ccf-form-wrapper .field-hide{display:none}.ccf-form-wrapper .field{margin-bottom:24px;clear:both}.ccf-form-wrapper .field[data-field-type=checkboxes] .error,.ccf-form-wrapper .field[data-field-type=date] .error,.ccf-form-wrapper .field[data-field-type=dropdown] .error,.ccf-form-wrapper .field[data-field-type=file] .error,.ccf-form-wrapper .field[data-field-type=radio] .error,.ccf-form-wrapper .field[data-field-type=recaptcha] .error{float:none}.ccf-form-wrapper .field .ccf-simple-captcha-wrapper{margin-bottom:12px}.ccf-form-wrapper .field .field-error-input{border:1px solid red}.ccf-form-wrapper .field label.main-label{display:block;clear:both;margin-bottom:6px;font-weight:700}.ccf-form-wrapper .field label.main-label .required{padding-right:.3em;color:red}.ccf-form-wrapper .field input[type=text],.ccf-form-wrapper .field textarea{width:100%;box-sizing:border-box}.ccf-form-wrapper .field select{display:block;width:auto}.ccf-form-wrapper .field input[type=file]{background-color:inherit;border:0;line-height:0}.ccf-form-wrapper .field textarea{min-height:100px;color:inherit;font-family:inherit}.ccf-form-wrapper .field .left{width:50%;float:left;box-sizing:border-box;padding-right:10px;clear:both}.ccf-form-wrapper .field .right{width:50%;float:right;box-sizing:border-box;padding-left:10px}.ccf-form-wrapper .field .sub-label{margin-top:3px;font-size:85%;clear:none;font-weight:400}.ccf-form-wrapper .field.field-type-section-header .heading{font-size:125%;border-bottom:1px solid #ccc;padding-bottom:5px}.ccf-form-wrapper .field.field-type-section-header .subheading{margin-top:10px;font-size:85%;font-style:italic}.ccf-form-wrapper .field.field-type-date .hour,.ccf-form-wrapper .field.field-type-date .minute{display:inline-block;margin-right:5px}.ccf-form-wrapper .field.field-type-date .hour input,.ccf-form-wrapper .field.field-type-date .minute input{width:3.5em}.ccf-form-wrapper .field.field-type-date .hour label,.ccf-form-wrapper .field.field-type-date .minute label{font-weight:400}.ccf-form-wrapper .field.field-type-date .am-pm{display:inline-block;vertical-align:top}.ccf-form-wrapper .field.field-type-date .am-pm select{width:auto}.ccf-form-wrapper .ccf-theme-dark{font-size:16px}.ccf-form-wrapper .ccf-theme-dark dropdown,.ccf-form-wrapper .ccf-theme-dark input[type=submit],.ccf-form-wrapper .ccf-theme-dark input[type=text],.ccf-form-wrapper .ccf-theme-dark select,.ccf-form-wrapper .ccf-theme-dark textarea{border-radius:4px;background-color:#555;color:#fff;border:1px solid #ccc;padding:8px}.ccf-form-wrapper .ccf-theme-dark dropdown::-webkit-input-placeholder,.ccf-form-wrapper .ccf-theme-dark input[type=submit]::-webkit-input-placeholder,.ccf-form-wrapper .ccf-theme-dark input[type=text]::-webkit-input-placeholder,.ccf-form-wrapper .ccf-theme-dark select::-webkit-input-placeholder,.ccf-form-wrapper .ccf-theme-dark textarea::-webkit-input-placeholder{color:#ccc}.ccf-form-wrapper .ccf-theme-dark dropdown:-moz-placeholder,.ccf-form-wrapper .ccf-theme-dark input[type=submit]:-moz-placeholder,.ccf-form-wrapper .ccf-theme-dark input[type=text]:-moz-placeholder,.ccf-form-wrapper .ccf-theme-dark select:-moz-placeholder,.ccf-form-wrapper .ccf-theme-dark textarea:-moz-placeholder{color:#ccc}.ccf-form-wrapper .ccf-theme-dark dropdown:-ms-input-placeholder,.ccf-form-wrapper .ccf-theme-dark input[type=submit]:-ms-input-placeholder,.ccf-form-wrapper .ccf-theme-dark input[type=text]:-ms-input-placeholder,.ccf-form-wrapper .ccf-theme-dark select:-ms-input-placeholder,.ccf-form-wrapper .ccf-theme-dark textarea:-ms-input-placeholder{color:#ccc}.ccf-form-wrapper .ccf-theme-dark input.ccf-submit-button{padding:8px 14px;background-color:#555;background-image:-webkit-gradient(linear,left top,left bottom,from(#555),to(#222));background-image:-webkit-linear-gradient(top,#555,#222);background-image:-moz-linear-gradient(top,#555,#222);background-image:-ms-linear-gradient(top,#555,#222);background-image:-o-linear-gradient(top,#555,#222);background-image:linear-gradient(to bottom,#555,#222);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr=#555555, endColorstr=#222)}.ccf-form-wrapper .ccf-theme-light{font-size:16px}.ccf-form-wrapper .ccf-theme-light dropdown,.ccf-form-wrapper .ccf-theme-light input[type=submit],.ccf-form-wrapper .ccf-theme-light input[type=text],.ccf-form-wrapper .ccf-theme-light select,.ccf-form-wrapper .ccf-theme-light textarea{border-radius:4px;background-color:#fcfcfc;color:#333;border:1px solid #e0e0e0;padding:8px}.ccf-form-wrapper .ccf-theme-light dropdown::-webkit-input-placeholder,.ccf-form-wrapper .ccf-theme-light input[type=submit]::-webkit-input-placeholder,.ccf-form-wrapper .ccf-theme-light input[type=text]::-webkit-input-placeholder,.ccf-form-wrapper .ccf-theme-light select::-webkit-input-placeholder,.ccf-form-wrapper .ccf-theme-light textarea::-webkit-input-placeholder{color:#ccc}.ccf-form-wrapper .ccf-theme-light dropdown:-moz-placeholder,.ccf-form-wrapper .ccf-theme-light input[type=submit]:-moz-placeholder,.ccf-form-wrapper .ccf-theme-light input[type=text]:-moz-placeholder,.ccf-form-wrapper .ccf-theme-light select:-moz-placeholder,.ccf-form-wrapper .ccf-theme-light textarea:-moz-placeholder{color:#ccc}.ccf-form-wrapper .ccf-theme-light dropdown:-ms-input-placeholder,.ccf-form-wrapper .ccf-theme-light input[type=submit]:-ms-input-placeholder,.ccf-form-wrapper .ccf-theme-light input[type=text]:-ms-input-placeholder,.ccf-form-wrapper .ccf-theme-light select:-ms-input-placeholder,.ccf-form-wrapper .ccf-theme-light textarea:-ms-input-placeholder{color:#ccc}.ccf-form-wrapper .ccf-theme-light input.ccf-submit-button{padding:8px 14px;background-color:#f0f0f0;background-image:-webkit-gradient(linear,left top,left bottom,from(#f0f0f0),to(#fcfcfc));background-image:-webkit-linear-gradient(top,#f0f0f0,#fcfcfc);background-image:-moz-linear-gradient(top,#f0f0f0,#fcfcfc);background-image:-ms-linear-gradient(top,#f0f0f0,#fcfcfc);background-image:-o-linear-gradient(top,#f0f0f0,#fcfcfc);background-image:linear-gradient(to bottom,#f0f0f0,#fcfcfc);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr=#f0f0f0, endColorstr=#fcfcfc)}
assets/build/js/form-manager.js CHANGED
@@ -471,6 +471,7 @@
471
  postFieldMappings: new wp.ccf.collections.PostFieldMappings(),
472
  notifications: new wp.ccf.collections.FormNotifications(),
473
  pause: false,
 
474
  pauseMessage: ccfSettings.pauseMessage,
475
  theme: 'none'
476
  };
@@ -962,6 +963,25 @@
962
  }
963
  );
964
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
965
  wp.ccf.models.Fields.address = wp.ccf.models.Fields.address || wp.ccf.models.StandardField.extend(
966
  {
967
  defaults: function() {
@@ -1381,7 +1401,7 @@
1381
  if ( this.field.get( 'slug' ) !== field.get( 'slug' ) ) {
1382
  var type = field.get( 'type' );
1383
 
1384
- if ( 'address' !== type && 'checkboxes' !== type && 'date' !== type && 'name' !== type && 'file' !== type && 'recaptcha' !== type && 'section-header' !== type && 'html' !== type ) {
1385
  option = document.createElement( 'option' );
1386
  option.innerHTML = field.get( 'slug' );
1387
  option.value = field.get( 'slug' );
@@ -1707,7 +1727,7 @@
1707
  fields.each( function( field ) {
1708
  type = field.get( 'type' );
1709
 
1710
- if ( 'html' !== type && 'section-header' !== type && 'recaptcha' !== type ) {
1711
  variablesText += '[' + field.get( 'slug' ) + '] ';
1712
  }
1713
  } );
@@ -2021,20 +2041,24 @@
2021
  },
2022
 
2023
  saveField: function() {
2024
- var conditionals = this.el.querySelectorAll( '.conditionals' )[0].querySelectorAll( '.conditional' );
2025
 
2026
- _.each( conditionals, function( conditional ) {
2027
- $( conditional ).trigger( 'saveConditional' );
2028
- });
 
 
 
2029
 
2030
- this.model.set( 'conditionalType', this.el.querySelectorAll( '.field-conditional-type' )[0].value );
2031
- this.model.set( 'conditionalFieldsRequired', this.el.querySelectorAll( '.field-conditional-fields-required' )[0].value );
2032
 
2033
- var oldConditionals = this.model.get( 'conditionalsEnabled' );
2034
- this.model.set( 'conditionalsEnabled', ( this.el.querySelectorAll( '.field-conditionals-enabled' )[0].value == 1 ) ? true : false );
2035
 
2036
- if ( oldConditionals !== this.model.get( 'conditionalsEnabled' ) ) {
2037
- this.render( 'advanced' );
 
2038
  }
2039
  },
2040
 
@@ -2047,17 +2071,20 @@
2047
 
2048
  var conditionalsCollection = this.model.get( 'conditionals' );
2049
 
2050
- var conditionals = this.el.querySelectorAll( '.conditionals' )[0];
2051
 
2052
- if ( conditionalsCollection.length >= 1 ) {
2053
 
2054
- conditionalsCollection.each( function( model ) {
2055
- var view = new wp.ccf.views.FieldConditional( { model: model, field: this.model, fieldCollection: this.collection } ).render();
2056
- conditionals.appendChild( view.el );
2057
- }, this );
2058
- } else {
2059
- var conditional = new wp.ccf.models.FieldConditional();
2060
- conditionalsCollection.add( conditional );
 
 
 
2061
  }
2062
 
2063
  return this;
@@ -2138,6 +2165,28 @@
2138
  }
2139
  );
2140
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2141
  wp.ccf.views.Fields['section-header'] = wp.ccf.views.Fields['section-header'] || wp.ccf.views.FieldBase.extend(
2142
  {
2143
  template: wp.ccf.utils.template( 'ccf-section-header-template' ),
@@ -2358,10 +2407,23 @@
2358
  this.model.set( 'slug', this.el.querySelectorAll( '.field-slug' )[0].value );
2359
  this.model.set( 'label', this.el.querySelectorAll( '.field-label' )[0].value );
2360
  this.model.set( 'description', this.el.querySelectorAll( '.field-description' )[0].value );
 
 
 
2361
  this.model.set( 'addressType', this.el.querySelectorAll( '.field-address-type' )[0].value );
 
 
 
 
 
 
2362
  this.model.set( 'className', this.el.querySelectorAll( '.field-class-name' )[0].value );
2363
  this.model.set( 'required', ( this.el.querySelectorAll( '.field-required' )[0].value == 1 ) ? true : false );
2364
 
 
 
 
 
2365
  this.constructor.__super__.saveField.apply( this, arguments );
2366
 
2367
  return this;
@@ -3029,6 +3091,9 @@
3029
  var pause = this.el.querySelectorAll( '.form-pause' )[0].value;
3030
  this.model.set( 'pause', ( parseInt( pause ) ) ? true : false );
3031
 
 
 
 
3032
  var postCreation = this.el.querySelectorAll( '.form-post-creation' )[0].value;
3033
  this.model.set( 'postCreation', ( parseInt( postCreation ) ) ? true : false );
3034
 
@@ -3658,7 +3723,7 @@
3658
  },
3659
 
3660
  menuClick: function( event ) {
3661
- var view = event.target.getAttribute( 'data-view' );
3662
 
3663
  if ( 'form-pane' === view ) {
3664
  wp.ccf.currentForm = null;
471
  postFieldMappings: new wp.ccf.collections.PostFieldMappings(),
472
  notifications: new wp.ccf.collections.FormNotifications(),
473
  pause: false,
474
+ requireLoggedIn: false,
475
  pauseMessage: ccfSettings.pauseMessage,
476
  theme: 'none'
477
  };
963
  }
964
  );
965
 
966
+ wp.ccf.models.Fields['simple-captcha'] = wp.ccf.models.Fields['simple-captcha'] || wp.ccf.models.StandardField.extend(
967
+ {
968
+ defaults: function() {
969
+ var defaults = {
970
+ type: 'simple-captcha',
971
+ placeholder: ccfSettings.defaultSimpleCaptchaPlaceholder
972
+ };
973
+
974
+ return _.defaults( defaults, this.constructor.__super__.defaults() );
975
+ },
976
+
977
+ isImmutable: true,
978
+
979
+ initialize: function() {
980
+ return this.constructor.__super__.initialize.apply( this, arguments );
981
+ }
982
+ }
983
+ );
984
+
985
  wp.ccf.models.Fields.address = wp.ccf.models.Fields.address || wp.ccf.models.StandardField.extend(
986
  {
987
  defaults: function() {
1401
  if ( this.field.get( 'slug' ) !== field.get( 'slug' ) ) {
1402
  var type = field.get( 'type' );
1403
 
1404
+ if ( 'address' !== type && 'checkboxes' !== type && 'date' !== type && 'name' !== type && 'file' !== type && 'recaptcha' !== type && 'simple-captcha' !== type && 'section-header' !== type && 'html' !== type ) {
1405
  option = document.createElement( 'option' );
1406
  option.innerHTML = field.get( 'slug' );
1407
  option.value = field.get( 'slug' );
1727
  fields.each( function( field ) {
1728
  type = field.get( 'type' );
1729
 
1730
+ if ( 'html' !== type && 'section-header' !== type && 'recaptcha' !== type && 'simple-captcha' !== type ) {
1731
  variablesText += '[' + field.get( 'slug' ) + '] ';
1732
  }
1733
  } );
2041
  },
2042
 
2043
  saveField: function() {
2044
+ var conditionalsWrapper = this.el.querySelectorAll( '.conditionals' );
2045
 
2046
+ if ( conditionalsWrapper.length ) {
2047
+ var conditionals = conditionalsWrapper[0].querySelectorAll( '.conditional' );
2048
+
2049
+ _.each( conditionals, function( conditional ) {
2050
+ $( conditional ).trigger( 'saveConditional' );
2051
+ });
2052
 
2053
+ this.model.set( 'conditionalType', this.el.querySelectorAll( '.field-conditional-type' )[0].value );
2054
+ this.model.set( 'conditionalFieldsRequired', this.el.querySelectorAll( '.field-conditional-fields-required' )[0].value );
2055
 
2056
+ var oldConditionals = this.model.get( 'conditionalsEnabled' );
2057
+ this.model.set( 'conditionalsEnabled', ( this.el.querySelectorAll( '.field-conditionals-enabled' )[0].value == 1 ) ? true : false );
2058
 
2059
+ if ( oldConditionals !== this.model.get( 'conditionalsEnabled' ) ) {
2060
+ this.render( 'advanced' );
2061
+ }
2062
  }
2063
  },
2064
 
2071
 
2072
  var conditionalsCollection = this.model.get( 'conditionals' );
2073
 
2074
+ var conditionalsWrapper = this.el.querySelectorAll( '.conditionals' );
2075
 
2076
+ if ( conditionalsWrapper.length ) {
2077
 
2078
+ if ( conditionalsCollection.length >= 1 ) {
2079
+
2080
+ conditionalsCollection.each( function( model ) {
2081
+ var view = new wp.ccf.views.FieldConditional( { model: model, field: this.model, fieldCollection: this.collection } ).render();
2082
+ conditionalsWrapper[0].appendChild( view.el );
2083
+ }, this );
2084
+ } else {
2085
+ var conditional = new wp.ccf.models.FieldConditional();
2086
+ conditionalsCollection.add( conditional );
2087
+ }
2088
  }
2089
 
2090
  return this;
2165
  }
2166
  );
2167
 
2168
+ wp.ccf.views.Fields['simple-captcha'] = wp.ccf.views.Fields['simple-captcha'] || wp.ccf.views.FieldBase.extend(
2169
+ {
2170
+ template: wp.ccf.utils.template( 'ccf-simple-captcha-template' ),
2171
+
2172
+ saveField: function() {
2173
+ // @todo: fix this ie8 hack
2174
+ if ( this.el.innerHTML === '' ) {
2175
+ return;
2176
+ }
2177
+
2178
+ this.model.set( 'label', this.el.querySelectorAll( '.field-label' )[0].value );
2179
+ this.model.set( 'description', this.el.querySelectorAll( '.field-description' )[0].value );
2180
+ this.model.set( 'placeholder', this.el.querySelectorAll( '.field-placeholder' )[0].value );
2181
+ this.model.set( 'className', this.el.querySelectorAll( '.field-class-name' )[0].value );
2182
+
2183
+ this.constructor.__super__.saveField.apply( this, arguments );
2184
+
2185
+ return this;
2186
+ }
2187
+ }
2188
+ );
2189
+
2190
  wp.ccf.views.Fields['section-header'] = wp.ccf.views.Fields['section-header'] || wp.ccf.views.FieldBase.extend(
2191
  {
2192
  template: wp.ccf.utils.template( 'ccf-section-header-template' ),
2407
  this.model.set( 'slug', this.el.querySelectorAll( '.field-slug' )[0].value );
2408
  this.model.set( 'label', this.el.querySelectorAll( '.field-label' )[0].value );
2409
  this.model.set( 'description', this.el.querySelectorAll( '.field-description' )[0].value );
2410
+
2411
+ var oldType = this.model.get( 'addressType' );
2412
+
2413
  this.model.set( 'addressType', this.el.querySelectorAll( '.field-address-type' )[0].value );
2414
+
2415
+ var defaultCountry = this.el.querySelectorAll( '.field-default-country' );
2416
+ if ( defaultCountry.length ) {
2417
+ this.model.set( 'defaultCountry', defaultCountry[0].value );
2418
+ }
2419
+
2420
  this.model.set( 'className', this.el.querySelectorAll( '.field-class-name' )[0].value );
2421
  this.model.set( 'required', ( this.el.querySelectorAll( '.field-required' )[0].value == 1 ) ? true : false );
2422
 
2423
+ if ( oldType !== this.model.get( 'addressType' ) ) {
2424
+ this.render();
2425
+ }
2426
+
2427
  this.constructor.__super__.saveField.apply( this, arguments );
2428
 
2429
  return this;
3091
  var pause = this.el.querySelectorAll( '.form-pause' )[0].value;
3092
  this.model.set( 'pause', ( parseInt( pause ) ) ? true : false );
3093
 
3094
+ var requireLoggedIn = this.el.querySelectorAll( '.form-require-logged-in' )[0].value;
3095
+ this.model.set( 'requireLoggedIn', ( parseInt( requireLoggedIn ) ) ? true : false );
3096
+
3097
  var postCreation = this.el.querySelectorAll( '.form-post-creation' )[0].value;
3098
  this.model.set( 'postCreation', ( parseInt( postCreation ) ) ? true : false );
3099
 
3723
  },
3724
 
3725
  menuClick: function( event ) {
3726
+ var view = event.currentTarget.getAttribute( 'data-view' );
3727
 
3728
  if ( 'form-pane' === view ) {
3729
  wp.ccf.currentForm = null;
assets/build/js/form-manager.min.js CHANGED
@@ -1,3 +1,3 @@
1
- (function(e,t,i,l){"use strict";window.wp=window.wp||{},wp.ccf=wp.ccf||{},wp.ccf.utils=wp.ccf.utils||{},wp.ccf.utils.cleanDateFields=function(e){delete e.date,delete e.date_gmt,delete e.modified,delete e.modified_gmt,delete e.date_tz,delete e.modified_tz},wp.ccf.utils.template=i.memoize(function(e){var t={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g};return i.template(document.getElementById(e).innerHTML,null,t)}),wp.ccf.utils.insertFormShortcode=function(e){var t=wp.ccf.forms.findWhere({id:e.get("id")});t||wp.ccf.forms.add(e);var i=tinymce.get(wpActiveEditor),l='[ccf_form id="'+e.get("id")+'"]';i&&!i.isHidden()?tinymce.activeEditor.execCommand("mceInsertContent",!1,l):document.getElementById(wpActiveEditor).value+=l},wp.ccf.utils.getPrettyPostDate=function(e){return e=moment.utc(e),l.gmtOffset&&(e=e.utcOffset(60*parseInt(l.gmtOffset))),e.format("h:mm a M/D/YYYY")},wp.ccf.utils.wordChop=function(e,t){var i=e.substr(0,t);return i.substr(0,Math.min(i.length,i.lastIndexOf(" "))),i.length<e.length&&(i+="..."),i},wp.ccf.utils.isFieldDate=function(e){return e.date!==void 0||e.hour!==void 0&&e.minute!==void 0&&e["am-pm"]!==void 0?!0:!1},wp.ccf.utils.isFieldName=function(e){return e.name!==void 0||e.last!==void 0?!0:!1},wp.ccf.utils.isFieldEmailConfirm=function(e){return e.email!==void 0||e.confirm!==void 0?!0:!1},wp.ccf.utils.isFieldAddress=function(e){return e.street!==void 0&&e.city!==void 0&&e.zipcode!==void 0&&e.line_two!==void 0?!0:!1},wp.ccf.utils.isFieldFile=function(e){return e.id!==void 0&&e.url!==void 0&&e.file_name!==void 0?!0:!1},wp.ccf.utils.getPrettyFieldEmailConfirm=function(e){return e.email?e.email:e.confirm?e.confirm:"-"},wp.ccf.utils.getPrettyFieldDate=function(e,t){var i="",s="",o="HH:mm MM/DD/YY";if(t&&t.ccf_field_dateFormat&&"dd/mm/yyyy"===t.ccf_field_dateFormat&&(o="HH:mm DD/MM/YY"),e.hour&&e.minute&&e["am-pm"]&&(i+=e.hour+":"+e.minute+" "+e["am-pm"]),e.date&&(i+=" "+e.date),!i)return"-";var n=moment(i,o);return n.isValid()?(e.hour&&e.minute&&e["am-pm"]&&(s+=n.format("h:mm a")),e.date&&(s&&(s+=" "),s+=e.date),s):l.invalidDate},wp.ccf.utils.getPrettyFieldName=function(e){var t=e.first;return t.length>0&&(t+=" "),e.last&&(t+=e.last),t||(t="-"),t},wp.ccf.utils.getPrettyFieldAddress=function(e){if(!e.street||!e.city)return"-";var t=e.street;return e.line_two&&(t+=" "+e.line_two),t+=", "+e.city,e.state&&(t+=", "+e.state),e.zipcode&&(t+=" "+e.zipcode),e.country&&(t+=" "+e.country),t}})(jQuery,Backbone,_,ccfSettings),function(e,t,i){"use strict";wp.ccf.mixins=wp.ccf.mixins||{},wp.ccf.mixins.subViewable=wp.ccf.mixins.subViewable||{subViews:{},initRenderSubViews:function(e,t,l){this.renderedSubViews||(this.renderedSubViews={});for(var s in this.subViews){var o={el:this.$el.find(".ccf-"+s),parent:this};l&&i.extend(o,l),this.renderedSubViews[s]&&this.renderedSubViews[s].destroy&&this.renderedSubViews[s].destroy(),(t||!this.renderedSubViews[s])&&(this.renderedSubViews[s]=new this.subViews[s](o)),this.renderedSubViews[s].render(),e&&(this.renderedSubViews[s].el.style.display="block")}return this},showView:function(e,t,i){if(this.renderedSubViews!==void 0&&this.renderedSubViews[e]!==void 0){var l=this.renderedSubViews[e];i||l.render(t),l.el.style.display="block",this.currentView=e;for(var s in this.subViews)s!==e&&(this.renderedSubViews[s].el.style.display="none")}}}}(jQuery,Backbone,_,ccfSettings),function(e,t,i,l){"use strict";wp.ccf.models=wp.ccf.models||{},wp.ccf.models.Fields=wp.ccf.models.Fields||{};var s=function(e,i,l){return"object"!=typeof i&&""===i&&(i=""),t.Model.prototype.set.call(this,e,i,l)},o=function(e,t,i){return i=i||{},i.emulateHTTP=!0,this.constructor.__super__.sync.call(this,e,t,i)},n=function(e){for(var t in this.attributes)if(-1===i.indexOf(e,t)){var l=this.get(t);"string"==typeof l&&""!==l&&(l=(l+"").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#8220;/g,"”").replace(/&#8221;/g,"”").replace(/&#8216;/g,"‘").replace(/&#038;/g,"&").replace(/&#039;/g,"'"),this.set(t,l))}return this};wp.ccf.models.FieldConditional=wp.ccf.models.FieldConditional||t.Model.extend({defaults:{field:"",compare:"is",value:""},decode:function(){return n.call(this,[])},set:s}),wp.ccf.models.FieldChoice=wp.ccf.models.FieldChoice||t.Model.extend({defaults:{label:"",value:"",selected:!1},decode:function(){return n.call(this,[])},set:s}),wp.ccf.models.PostFieldMapping=wp.ccf.models.PostFieldMapping||t.Model.extend({defaults:{formField:"",postField:"",customFieldKey:""},decode:function(){return n.call(this,[])},set:s}),wp.ccf.models.FormNotificationAddress=wp.ccf.models.FormNotificationAddress||t.Model.extend({defaults:{type:"custom",field:"",email:""},decode:function(){return n.call(this,[])},set:s}),wp.ccf.models.FormNotification=wp.ccf.models.FormNotification||t.Model.extend({defaults:function(){return{title:"",content:"[all_fields]",active:!1,addresses:new wp.ccf.collections.FormNotificationAddresses,fromType:"default",fromAddress:"",fromField:"",subjectType:"default",subject:"",subjectField:"",fromNameType:"custom",fromName:"WordPress",fromNameField:""}},initialize:function(e){if("object"==typeof e&&e.addresses){var t=[];i.each(e.addresses,function(e){var i=new wp.ccf.models.FormNotificationAddress(e);i.decode(),t.push(i)}),this.set("addresses",new wp.ccf.collections.FormNotificationAddresses(t))}},decode:function(){return n.call(this,[])},toJSON:function(){var e=this.constructor.__super__.toJSON.call(this);return e.addresses&&(e.addresses=e.addresses.toJSON()),e},set:s}),wp.ccf.models.Form=wp.ccf.models.Form||wp.api.models.Post.extend({urlRoot:l.apiRoot.replace(/\/$/,"")+"/ccf/v1/forms",set:s,sync:o,idAttribute:"id",initialize:function(){this.on("sync",this.decode,this)},defaults:function(){var e={fields:new wp.ccf.collections.Fields,type:"ccf_form",status:"publish",description:"",buttonText:"Submit Form",buttonClass:"",completionActionType:"text",completionRedirectUrl:"",completionMessage:"",postCreation:!1,postCreationType:"post",postCreationStatus:"draft",postFieldMappings:new wp.ccf.collections.PostFieldMappings,notifications:new wp.ccf.collections.FormNotifications,pause:!1,pauseMessage:l.pauseMessage,theme:"none"};return e=i.defaults(e,this.constructor.__super__.defaults),wp.ccf.utils.cleanDateFields(e),e},decode:function(){var e=i.keys(wp.api.models.Post.prototype.defaults);return e=i.without(e,"title"),n.call(this,e)},getFieldSlugs:function(e){var t=wp.ccf.currentForm.get("fields"),i=[];return t.each(function(t){e&&t.isImmutable||i.push(t.get("slug"))}),i},parse:function(e){var t=this,l=0,s=0;if(e.fields){var o=t.get("fields");if(o&&o.length>0){for(l=0;e.fields.length>l;l++){var n=e.fields[l],c=o.findWhere({slug:n.slug});if(c){if(n.choices!==void 0){var r=t.get("choices");if(r&&r.length>0)for(s=0;n.choices>s;s++){var a=r.at(s);a.set(n.choices[s]),a.decode()}delete e.fields[l].choices}if(n.conditionals!==void 0){var d=t.get("conditionals");if(d&&d.length>0)for(s=0;n.conditionals>s;s++){var u=d.at(s);u.set(n.conditionals[s]),u.decode()}delete e.fields[l].conditionals}c.set(n),c.decode()}}delete e.fields}else{var f=[];i.each(e.fields,function(e){var t=new wp.ccf.models.Fields[e.type](e);t.decode(),f.push(t)}),e.fields=new wp.ccf.collections.Fields(f,{formId:e.id}),o?(o.add(f),delete e.fields):e.fields=new wp.ccf.collections.Fields(f,{formId:e.id})}}if(e.notifications){var p=t.get("notifications");if(p&&p.length>0){for(l=0;e.notifications.length>l;l++){var h=e.notifications[l],m=p.at(l);if(m){if(h.addresses!==void 0){var w=m.get("addresses");if(w&&w.length>0)for(s=0;h.addresses>s;s++){var g=w.at(s);g.set(h.addresses[s]),g.decode()}delete e.notifications[l].addresses}m.set(h),m.decode()}}delete e.notifications}else{var v=[];i.each(e.notifications,function(e){var t=new wp.ccf.models.FormNotification(e);t.decode(),v.push(t)}),p?(p.add(v),delete e.notifications):e.notifications=new wp.ccf.collections.FormNotifications(v)}}if(e.postFieldMappings){var y=t.get("postFieldMappings");if(y&&y.length>0){for(l=0;e.postFieldMappings.length>l;l++){var F=e.postFieldMappings[l],b=y.at(l);b&&(b.set(F),b.decode())}delete e.postFieldMappings}else{var S=[];i.each(e.postFieldMappings,function(e){var t=new wp.ccf.models.PostFieldMapping(e);t.decode(),S.push(t)}),y?(y.add(S),e.postFieldMappings=y):e.postFieldMappings=new wp.ccf.collections.PostFieldMappings(S)}}return this.constructor.__super__.parse.call(this,e)},toJSON:function(){var e=this.constructor.__super__.toJSON.call(this);return e.fields&&(e.fields=e.fields.toJSON()),e.notifications&&(e.notifications=e.notifications.toJSON()),e.postFieldMappings&&(e.postFieldMappings=e.postFieldMappings.toJSON()),e.author&&(e.author=e.author.toJSON()),e}}),wp.ccf.models.Submission=wp.api.models.Submission||wp.api.models.Post.extend({defaults:{id:null,data:{},fields:{}},sync:o,urlRoot:l.apiRoot.replace(/\/$/,"")+"/ccf/v1/submissions"}),wp.ccf.models.Field=wp.api.models.Field||wp.api.models.Post.extend({idAttribute:"id",defaults:function(){return{id:null,conditionalsEnabled:!1,conditionalType:"show",conditionalFieldsRequired:"all",conditionals:new wp.ccf.collections.FieldConditionals}},set:s,initialize:function(e){if("object"==typeof e&&e.conditionals){var t=[];i.each(e.conditionals,function(e){var i=new wp.ccf.models.FieldConditional(e);i.decode(),t.push(i)}),this.set("conditionals",new wp.ccf.collections.FieldConditionals(t))}},required:function(){return["slug"]},decode:function(){return n.call(this,i.keys(wp.api.models.Post.prototype.defaults))},hasRequiredAttributes:function(){var e=this,t=!0;return i.each(this.required(),function(i){(e.get(i)===void 0||""===e.get(i))&&(t=!1)}),t},sync:o}),wp.ccf.models.StandardField=wp.ccf.models.StandardField||wp.ccf.models.Field.extend({idAttribute:"id",defaults:function(){var e={label:l.fieldLabel,value:"",placeholder:"",slug:"",type:"",required:!1,className:"",description:""};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return wp.ccf.models.StandardField.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields["single-line-text"]=wp.ccf.models.Fields["single-line-text"]||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"single-line-text"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.file=wp.ccf.models.Fields.file||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"file",fileExtensions:"",maxFileSize:l.maxFileSize};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields["paragraph-text"]=wp.ccf.models.Fields["paragraph-text"]||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"paragraph-text"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.hidden=wp.ccf.models.Fields.hidden||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"hidden"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.email=wp.ccf.models.Fields.email||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"email",emailConfirmation:!1};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.website=wp.ccf.models.Fields.website||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"website",placeholder:"http://"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.phone=wp.ccf.models.Fields.phone||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"phone",phoneFormat:"us"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.date=wp.ccf.models.Fields.date||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"date",showDate:!0,showTime:!0,dateFormat:"mm/dd/yyyy"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.name=wp.ccf.models.Fields.name||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"name"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.recaptcha=wp.ccf.models.Fields.recaptcha||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"recaptcha",siteKey:"",secretKey:""};return i.defaults(e,this.constructor.__super__.defaults())},required:function(){return["siteKey","secretKey"]},isImmutable:!0,initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.address=wp.ccf.models.Fields.address||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"address",addressType:"us"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields["section-header"]=wp.ccf.models.Fields["section-header"]||wp.ccf.models.Field.extend({defaults:function(){var e={type:"section-header",slug:"",heading:"",subheading:"",className:""};return i.defaults(e,this.constructor.__super__.defaults())},required:function(){return[]},isImmutable:!0,initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.html=wp.ccf.models.Fields.html||wp.ccf.models.Field.extend({defaults:function(){var e={type:"html",slug:"",html:"",className:""};return i.defaults(e,this.constructor.__super__.defaults())},required:function(){return[]},isImmutable:!0,initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.ChoiceableField=wp.ccf.models.ChoiceableField||wp.ccf.models.StandardField.extend({defaults:function(){var e={choices:new wp.ccf.collections.FieldChoices};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(e){if("object"==typeof e&&e.choices){var t=[];i.each(e.choices,function(e){var i=new wp.ccf.models.FieldChoice(e);i.decode(),t.push(i)}),this.set("choices",new wp.ccf.collections.FieldChoices(t))}return wp.ccf.models.ChoiceableField.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.radio=wp.ccf.models.Fields.radio||wp.ccf.models.ChoiceableField.extend({defaults:function(){var e={type:"radio"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.checkboxes=wp.ccf.models.Fields.checkboxes||wp.ccf.models.ChoiceableField.extend({defaults:function(){var e={type:"checkboxes"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.dropdown=wp.ccf.models.Fields.dropdown||wp.ccf.models.ChoiceableField.extend({defaults:function(){var e={type:"dropdown"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}})}(jQuery,Backbone,_,ccfSettings),function(e,t,i,l){"use strict";var s=function(e,t,i){return i=i||{},i.emulateHTTP=!0,this.constructor.__super__.sync.call(this,e,t,i)};wp.ccf.collections=wp.ccf.collections||{},wp.ccf.collections.Forms=wp.ccf.collections.Forms||wp.api.collections.Posts.extend({model:wp.ccf.models.Form,url:l.apiRoot.replace(/\/$/,"")+"/ccf/v1/forms",formsFetching:{},initialize:function(){this.constructor.__super__.initialize(),this.formsFetching={}},sync:s,remove:function(e,t){t=t||{};var l=this.constructor.__super__.remove.call(this,e,t);return t.destroy&&(e instanceof Array?i.each(e,function(e){e.destroy()}):e.destroy()),l}}),wp.ccf.collections.Fields=wp.ccf.collections.Fields||wp.api.collections.Posts.extend({model:wp.ccf.models.Field,url:function(){return l.apiRoot+"/ccf/forms/"+this.formId+"/fields"},initialize:function(e,t){t&&t.formId&&(this.formId=t.formId)},sync:s}),wp.ccf.collections.PostFieldMappings=wp.ccf.collections.PostFieldMappings||t.Collection.extend({model:wp.ccf.models.PostFieldMapping}),wp.ccf.collections.FormNotificationAddresses=wp.ccf.collections.FormNotificationAddresses||t.Collection.extend({model:wp.ccf.models.FormNotificationAddress}),wp.ccf.collections.FormNotifications=wp.ccf.collections.FormNotifications||t.Collection.extend({model:wp.ccf.models.FormNotification}),wp.ccf.collections.Submissions=wp.ccf.collections.Submissions||wp.api.collections.Posts.extend({model:wp.ccf.models.Submission,url:function(){return l.apiRoot.replace(/\/$/,"")+"/ccf/v1/forms/"+this.formId+"/submissions"},initialize:function(e,t){this.constructor.__super__.initialize.apply(this,arguments),t&&t.formId&&(this.formId=t.formId)},sync:s}),wp.ccf.collections.FieldChoices=wp.ccf.collections.FieldChoices||t.Collection.extend({model:wp.ccf.models.FieldChoice}),wp.ccf.collections.FieldConditionals=wp.ccf.collections.FieldConditionals||t.Collection.extend({model:wp.ccf.models.FieldConditional})}(jQuery,Backbone,_,ccfSettings),function(e,t,i,l){"use strict";wp.ccf.views=wp.ccf.views||{},wp.ccf.views.Fields=wp.ccf.views.Fields||{},wp.ccf.views.FieldChoice=t.View.extend({template:wp.ccf.utils.template("ccf-field-choice-template"),className:"choice",events:{"click .add":"triggerAdd","click .delete":"triggerDelete",saveChoice:"saveChoice",sorted:"triggerUpdateSort"},initialize:function(e){this.field=e.field},destroy:function(){wp.ccf.dispatcher.off("mainViewChange",this.saveChoice),this.unbind()},triggerUpdateSort:function(e,t){this.field.get("choices").remove(this.model,{silent:!0}),this.field.get("choices").add(this.model,{at:t,silent:!0})},saveChoice:function(){if(""!==this.el.innerHTML){var e=this.el.querySelectorAll(".choice-label")[0].value,t=this.el.querySelectorAll(".choice-value")[0].value;this.model.set("label",e),this.model.set("value",t);var i=this.el.querySelectorAll(".choice-selected")[0],l=i.checked?!0:!1;return this.model.set("selected",l),this}},render:function(){var e={};return this.model&&(e.choice=this.model.toJSON()),this.el.innerHTML=this.template(e),wp.ccf.dispatcher.on("mainViewChange",this.saveChoice,this),this},triggerAdd:function(){this.field.get("choices").add(new wp.ccf.models.FieldChoice)},triggerDelete:function(){var e=this.field.get("choices");if(e.length>1)e.remove(this.model),this.destroy(),this.remove();else{for(var t=this.el.querySelectorAll(".choice-label, .choice-value"),i=this.el.querySelectorAll(".choice-selected"),l=0;t.length>l;l++)t[l].value="";i[0].checked=!1}}}),wp.ccf.views.FieldConditional=t.View.extend({template:wp.ccf.utils.template("ccf-field-conditional-template"),className:"conditional",events:{"click .add":"triggerAdd","click .delete":"triggerDelete",saveConditional:"saveConditional"},initialize:function(e){this.field=e.field,this.fieldCollection=e.fieldCollection},destroy:function(){wp.ccf.dispatcher.off("mainViewChange",this.saveConditional),this.unbind()},saveConditional:function(){if(""!==this.el.innerHTML){var e=this.el.querySelectorAll(".conditional-field")[0].value,t=this.el.querySelectorAll(".conditional-value")[0].value,i=this.el.querySelectorAll(".conditional-compare")[0].value;return this.model.set("field",e),this.model.set("value",t),this.model.set("compare",i),this}},updateFields:function(){var e=this.el.querySelectorAll(".conditional-field")[0];e.innerHTML="",e.disabled=!1;var t,i=0,s=this.model.get("field");this.fieldCollection.length>=1&&(t=document.createElement("option"),t.innerHTML=l.chooseFormField,t.value="",e.appendChild(t),this.fieldCollection.each(function(l){if(this.field.get("slug")!==l.get("slug")){var o=l.get("type");"address"!==o&&"checkboxes"!==o&&"date"!==o&&"name"!==o&&"file"!==o&&"recaptcha"!==o&&"section-header"!==o&&"html"!==o&&(t=document.createElement("option"),t.innerHTML=l.get("slug"),t.value=l.get("slug"),l.get("slug")===s&&(t.selected=!0),e.appendChild(t),i++)}},this)),0===i&&(e.innerHTML="",t=document.createElement("option"),t.innerHTML=l.noAvailableFields,t.value="",e.appendChild(t),e.disabled=!0)},render:function(){var e={};return this.model&&(e.conditional=this.model.toJSON()),this.el.innerHTML=this.template(e),wp.ccf.dispatcher.on("mainViewChange",this.saveConditional,this),this.listenTo(this.fieldCollection,"add",this.updateFields,this),this.listenTo(this.fieldCollection,"remove",this.updateFields,this),this.updateFields(),this},triggerAdd:function(){this.field.get("conditionals").add(new wp.ccf.models.FieldConditional)},triggerDelete:function(){var e=this.field.get("conditionals");if(e.length>1)e.remove(this.model),this.destroy(),this.remove();else{var t=this.el.querySelectorAll(".conditional-value")[0],i=this.el.querySelectorAll(".conditional-field")[0];t.value="";for(var l=0;i.childNodes.length>l;l++)i.childNodes[l].selected=!1}}}),wp.ccf.views.EmptyFormNotificationTableRow=wp.ccf.views.EmptyFormNotificationTableRow||t.View.extend({tagName:"tr",template:wp.ccf.utils.template("ccf-empty-form-notification-row-template"),events:{"click .add":"triggerAdd"},initialize:function(e){this.form=e.form},destroy:function(){this.unbind()},render:function(){return this.$el.html(this.template()),this},triggerAdd:function(){var e=this.form.get("notifications");this.destroy(),e.add(new wp.ccf.models.FormNotification)}}),wp.ccf.views.EmptyFormTableRow=wp.ccf.views.EmptyFormTableRow||t.View.extend({tagName:"tr",template:wp.ccf.utils.template("ccf-empty-form-table-row-template"),render:function(){return this.$el.html(this.template()),this}}),wp.ccf.views.FormNotificationAddress=t.View.extend({template:wp.ccf.utils.template("ccf-form-notification-address-template"),className:"address",events:{"click .add":"triggerAdd","click .delete":"triggerDelete","blur input":"save","change select":"save"},initialize:function(e){this.notification=e.notification,this.parent=e.parent,this.form=e.form},destroy:function(){this.unbind()},save:function(){if(""!==this.el.innerHTML){var e=this.el.querySelectorAll(".form-notification-address-type")[0].value,t=this.el.querySelectorAll(".form-notification-address-email"),i=this.el.querySelectorAll(".form-notification-address-field"),l=this.model.get("type");return t.length&&this.model.set("email",t[0].value),i.length&&this.model.set("field",i[0].value),this.model.set("type",e),l!==e&&this.render(),this}},updateFromFieldField:function(){if("edit"===this.parent.context&&"field"===this.model.get("type")){var e=this.el.querySelectorAll(".form-notification-address-field")[0];e.innerHTML="",e.disabled=!1;var t,i=this.form.get("fields"),s=0,o=this.model.get("field");i.length>=1&&i.each(function(i){("email"===i.get("type")||"dropdown"===i.get("type")||"radio"===i.get("type")||"single-line-text"===i.get("type"))&&(t=document.createElement("option"),t.innerHTML=i.get("slug"),t.value=i.get("slug"),i.get("slug")===o&&(t.selected=!0),e.appendChild(t),s++)}),0===s&&(t=document.createElement("option"),t.innerHTML=l.noApplicableFields,t.value="",e.appendChild(t),e.disabled=!0)}},render:function(){var e={};this.model&&(e.address=this.model.toJSON()),this.el.innerHTML=this.template(e);var t=this.form.get("fields");return this.listenTo(t,"add",this.updateFromFieldField,this),this.listenTo(t,"remove",this.updateFromFieldField,this),"field"===this.model.get("type")&&this.updateFromFieldField(),this},triggerAdd:function(){this.notification.get("addresses").add(new wp.ccf.models.FormNotificationAddress)},triggerDelete:function(){var e=this.notification.get("addresses");e.length>1?this.parent.deleteAddress(this):(this.model.clear().set(wp.ccf.models.FormNotificationAddress.prototype.defaults),this.destroy(),this.render())}}),wp.ccf.views.ExistingFormNotificationRow=t.View.extend({template:wp.ccf.utils.template("ccf-existing-form-notification-table-row-template"),tagName:"tr",events:{"change select.form-email-notification-from-type":"toggleNotificationFields","change select.form-email-notification-from-name-type":"toggleNotificationFields","change select.form-email-notification-subject-type":"toggleNotificationFields","click .close-notification":"changeContext","click .edit-notification":"changeContext","click .delete-notification":"triggerDelete","blur input":"save","change select":"save"},addressViews:[],initialize:function(e){this.form=e.form,this.addressViews=[],this.parent=e.parent,this.context=e.context!==void 0?e.context:"view";var t=this.model.get("addresses");this.listenTo(t,"add",this.addAddress)},deleteAddress:function(e){i.each(this.addressViews,function(t){if(e.cid===t.cid){var l=i.indexOf(this.addressViews,t);this.model.get("addresses").remove(e.model),this.addressViews[l].remove(),this.addressViews.splice(l,1)}},this)},addAddress:function(e){var t=this.el.querySelectorAll(".addresses")[0],i=new wp.ccf.views.FormNotificationAddress({model:e,parent:this,notification:this.model,form:this.form});this.addressViews.push(i),t.appendChild(i.render().el)},destroy:function(){this.unbind()},changeContext:function(e,t){"edit"===this.context&&this.save(),t?this.context=t:("view"===this.context&&this.parent.closeAllNotifications(),this.context="edit"===this.context?"view":"edit"),this.destroy(),this.render()},updateFieldVariables:function(){if("edit"===this.context){var e,t=this.el.querySelectorAll(".field-variables")[0],i="",l=this.form.get("fields");l.each(function(t){e=t.get("type"),"html"!==e&&"section-header"!==e&&"recaptcha"!==e&&(i+="["+t.get("slug")+"] ")}),t.innerText=i}},updateFromFieldField:function(){if("edit"===this.context){var e=this.el.querySelectorAll(".form-email-notification-from-field")[0];e.innerHTML="",e.disabled=!1;var t=this.el.querySelectorAll(".form-email-notification-subject-field")[0];t.innerHTML="",t.disabled=!1;var i=this.el.querySelectorAll(".form-email-notification-from-name-field")[0];i.innerHTML="",i.disabled=!1;var s,o=this.form.get("fields"),n=0,c=0,r=0,a=this.model.get("emailNotificationFromField"),d=this.model.get("emailNotificationSubjectField"),u=this.model.get("emailNotificationFromNameField");o.length>=1&&o.each(function(l){("email"===l.get("type")||"dropdown"===l.get("type")||"radio"===l.get("type")||"single-line-text"===l.get("type"))&&(s=document.createElement("option"),s.innerHTML=l.get("slug"),s.value=l.get("slug"),l.get("slug")===a&&(s.selected=!0),e.appendChild(s),n++),("name"===l.get("type")||"single-line-text"===l.get("type")||"radio"===l.get("type")||"dropdown"===l.get("type"))&&(s=document.createElement("option"),s.innerHTML=l.get("slug"),s.value=l.get("slug"),l.get("slug")===u&&(s.selected=!0),i.appendChild(s),c++),("single-line-text"===l.get("type")||"radio"===l.get("type")||"dropdown"===l.get("type"))&&(s=document.createElement("option"),s.innerHTML=l.get("slug"),s.value=l.get("slug"),l.get("slug")===d&&(s.selected=!0),t.appendChild(s),r++)}),0===n&&(s=document.createElement("option"),s.innerHTML=l.noEmailFields,s.value="",e.appendChild(s),e.disabled=!0),0===c&&(s=document.createElement("option"),s.innerHTML=l.noNameFields,s.value="",i.appendChild(s),i.disabled=!0),0===r&&(s=document.createElement("option"),s.innerHTML=l.noApplicableFields,s.value="",t.appendChild(s),t.disabled=!0)}},toggleNotificationFields:function(){var e=this.el.querySelectorAll(".email-notification-from-address")[0],t=this.el.querySelectorAll(".email-notification-from-field")[0],i=this.el.querySelectorAll(".form-email-notification-from-type")[0],l=this.el.querySelectorAll(".email-notification-subject")[0],s=this.el.querySelectorAll(".email-notification-subject-field")[0],o=this.el.querySelectorAll(".form-email-notification-subject-type")[0],n=this.el.querySelectorAll(".email-notification-from-name")[0],c=this.el.querySelectorAll(".email-notification-from-name-field")[0],r=this.el.querySelectorAll(".form-email-notification-from-name-type")[0];e.style.display="none",t.style.display="none","custom"===i.value?e.style.display="block":"field"===i.value&&(t.style.display="block"),l.style.display="none",s.style.display="none","custom"===o.value?l.style.display="block":"field"===o.value&&(s.style.display="block"),n.style.display="none",c.style.display="none","custom"===r.value?n.style.display="block":"field"===r.value&&(c.style.display="block")},save:function(){if(""!==this.el.innerHTML&&"edit"===this.context){var e=this.el.querySelectorAll(".form-email-notification-title")[0].value;this.model.set("title",e);var t=this.el.querySelectorAll(".form-email-notification-content")[0].value;this.model.set("content",t);var i=this.el.querySelectorAll(".form-email-notification-active")[0].value;this.model.set("active","1"===i?!0:!1);var l=this.el.querySelectorAll(".form-email-notification-from-type")[0].value;this.model.set("fromType",l);var s=this.el.querySelectorAll(".form-email-notification-from-address")[0].value;this.model.set("fromAddress",s);var o=this.el.querySelectorAll(".form-email-notification-from-field")[0].value;this.model.set("fromField",o);var n=this.el.querySelectorAll(".form-email-notification-from-name-type")[0].value;this.model.set("fromNameType",n);var c=this.el.querySelectorAll(".form-email-notification-from-name")[0].value;this.model.set("fromName",c);var r=this.el.querySelectorAll(".form-email-notification-from-name-field")[0].value;this.model.set("fromNameField",r);var a=this.el.querySelectorAll(".form-email-notification-subject-type")[0].value;this.model.set("subjectType",a);var d=this.el.querySelectorAll(".form-email-notification-subject")[0].value;this.model.set("subject",d);var u=this.el.querySelectorAll(".form-email-notification-subject-field")[0].value;this.model.set("subjectField",u);for(var f=0;this.addressViews.length>f;f++)this.addressViews[f].save();return this}},render:function(){var e={context:this.context,form:this.form.toJSON()};if(this.model&&(e.notification=this.model.toJSON()),this.el.innerHTML=this.template(e),"edit"===this.context){this.toggleNotificationFields(),this.updateFromFieldField(),this.updateFieldVariables();var t=this.el.querySelectorAll(".addresses")[0],i=this.model.get("addresses");if(i.length>=1)i.each(function(e){var i=new wp.ccf.views.FormNotificationAddress({model:e,parent:this,notification:this.model,form:this.form}).render();t.appendChild(i.el),this.addressViews.push(i)},this);else{var l=new wp.ccf.models.FormNotificationAddress;i.add(l)}}var s=this.form.get("fields");return this.listenTo(s,"add",this.updateFromFieldField,this),this.listenTo(s,"remove",this.updateFromFieldField,this),this.listenTo(s,"add",this.updateFieldVariables,this),this.listenTo(s,"remove",this.updateFieldVariables,this),this},triggerDelete:function(){this.parent.deleteNotification(this)}}),wp.ccf.views.FieldBase=wp.ccf.views.FieldBase||t.View.extend({events:{"blur input":"saveField","blur input.field-slug":"checkSlug","blur textarea":"saveField","change select":"saveField",'change input[type="checkbox"]':"saveField"},initialize:function(){var e=this.model.get("conditionals");this.listenTo(e,"add",this.addConditional)},addConditional:function(e){var t=new wp.ccf.views.FieldConditional({model:e,field:this.model,fieldCollection:this.collection}).render(),i=this.el.querySelectorAll(".conditionals")[0];i.appendChild(t.el)},checkSlug:function(){var e=this.el.querySelectorAll(".field-slug");if(e.length>0){var t=e[0],i=!1;t.parentNode.className=t.value&&!t.value.match(/^[a-zA-Z0-9\-_]+$/)?t.parentNode.className.replace(/ field-error/i,"")+" field-error":t.parentNode.className.replace(/ field-error/i,""),this.collection.length>0&&""!==t.value?(this.collection.each(function(e){e!==this.model&&t.value===e.get("slug")&&(i=!0)
2
- },this),t.parentNode.className=i?t.parentNode.className.replace(/ field-duplicate-slug/i,"")+" field-duplicate-slug":t.parentNode.className.replace(/ field-duplicate-slug/i,"")):t.parentNode.className=t.parentNode.className.replace(/ field-duplicate-slug/i,"")}},destroy:function(){this.unbind()},saveField:function(){var t=this.el.querySelectorAll(".conditionals")[0].querySelectorAll(".conditional");i.each(t,function(t){e(t).trigger("saveConditional")}),this.model.set("conditionalType",this.el.querySelectorAll(".field-conditional-type")[0].value),this.model.set("conditionalFieldsRequired",this.el.querySelectorAll(".field-conditional-fields-required")[0].value);var l=this.model.get("conditionalsEnabled");this.model.set("conditionalsEnabled",1==this.el.querySelectorAll(".field-conditionals-enabled")[0].value?!0:!1),l!==this.model.get("conditionalsEnabled")&&this.render("advanced")},render:function(e){e=e?e:"basic",this.el.innerHTML=this.template({field:this.model.toJSON(),startPanel:e}),this.checkSlug();var t=this.model.get("conditionals"),i=this.el.querySelectorAll(".conditionals")[0];if(t.length>=1)t.each(function(e){var t=new wp.ccf.views.FieldConditional({model:e,field:this.model,fieldCollection:this.collection}).render();i.appendChild(t.el)},this);else{var l=new wp.ccf.models.FieldConditional;t.add(l)}return this}}),wp.ccf.views.Fields["single-line-text"]=wp.ccf.views.Fields["single-line-text"]||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-single-line-text-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("value",this.el.querySelectorAll(".field-value")[0].value),this.model.set("placeholder",this.el.querySelectorAll(".field-placeholder")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this.constructor.__super__.saveField.apply(this,arguments),this):void 0}}),wp.ccf.views.Fields.file=wp.ccf.views.Fields.file||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-file-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this.model.set("fileExtensions",this.el.querySelectorAll(".field-file-extensions")[0].value),this.model.set("maxFileSize",this.el.querySelectorAll(".field-max-file-size")[0].value),this.constructor.__super__.saveField.apply(this,arguments),this):void 0}}),wp.ccf.views.Fields.recaptcha=wp.ccf.views.Fields.recaptcha||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-recaptcha-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("siteKey",this.el.querySelectorAll(".field-site-key")[0].value),this.model.set("secretKey",this.el.querySelectorAll(".field-secret-key")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.constructor.__super__.saveField.apply(this,arguments),this):void 0}}),wp.ccf.views.Fields["section-header"]=wp.ccf.views.Fields["section-header"]||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-section-header-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("heading",this.el.querySelectorAll(".field-heading")[0].value),this.model.set("subheading",this.el.querySelectorAll(".field-subheading")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.constructor.__super__.saveField.apply(this,arguments),this):void 0}}),wp.ccf.views.Fields.html=wp.ccf.views.Fields.html||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-html-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("html",this.el.querySelectorAll(".field-html")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.constructor.__super__.saveField.apply(this,arguments),this):void 0}}),wp.ccf.views.Fields["paragraph-text"]=wp.ccf.views.Fields["paragraph-text"]||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-paragraph-text-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("value",this.el.querySelectorAll(".field-value")[0].value),this.model.set("placeholder",this.el.querySelectorAll(".field-placeholder")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this.constructor.__super__.saveField.apply(this,arguments),this):void 0}}),wp.ccf.views.Fields.hidden=wp.ccf.views.Fields.hidden||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-hidden-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("value",this.el.querySelectorAll(".field-value")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.constructor.__super__.saveField.apply(this,arguments),this):void 0}}),wp.ccf.views.Fields.date=wp.ccf.views.Fields.date||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-date-template"),saveField:function(){if(""!==this.el.innerHTML){this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.constructor.__super__.saveField.apply(this,arguments);var e=this.el.querySelectorAll(".field-value");e.length>0&&this.model.set("value",e[0].value);var t=this.el.querySelectorAll(".field-date-format");t.length&&this.model.set("dateFormat",t[0].value);var i=this.model.get("showDate"),l=this.el.querySelectorAll(".field-show-date")[0].checked?!0:!1;this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("showDate",l);var s=this.model.get("showTime"),o=this.el.querySelectorAll(".field-show-time")[0].checked?!0:!1;return this.model.set("showTime",o),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),(o!=s||l!=i)&&this.render(),this}}}),wp.ccf.views.Fields.name=wp.ccf.views.Fields.name||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-name-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this.constructor.__super__.saveField.apply(this,arguments),this):void 0}}),wp.ccf.views.Fields.website=wp.ccf.views.Fields.website||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-website-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("value",this.el.querySelectorAll(".field-value")[0].value),this.model.set("placeholder",this.el.querySelectorAll(".field-placeholder")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this.constructor.__super__.saveField.apply(this,arguments),this):void 0}}),wp.ccf.views.Fields.phone=wp.ccf.views.Fields.phone||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-phone-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("value",this.el.querySelectorAll(".field-value")[0].value),this.model.set("placeholder",this.el.querySelectorAll(".field-placeholder")[0].value),this.model.set("phoneFormat",this.el.querySelectorAll(".field-phone-format")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this.constructor.__super__.saveField.apply(this,arguments),this):void 0}}),wp.ccf.views.Fields.address=wp.ccf.views.Fields.address||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-address-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("addressType",this.el.querySelectorAll(".field-address-type")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this.constructor.__super__.saveField.apply(this,arguments),this):void 0}}),wp.ccf.views.Fields.email=wp.ccf.views.Fields.email||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-email-template"),saveField:function(){if(""!==this.el.innerHTML){this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.constructor.__super__.saveField.apply(this,arguments);var e=this.el.querySelectorAll(".field-value");e.length&&this.model.set("value",e[0].value);var t=this.el.querySelectorAll(".field-placeholder");t.length&&this.model.set("placeholder",t[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1);var i=1==this.el.querySelectorAll(".field-email-confirmation")[0].value?!0:!1,l=this.model.get("emailConfirmation");return this.model.set("emailConfirmation",i),l!=i&&this.render(),this}}}),wp.ccf.views.ChoiceableField=wp.ccf.views.ChoiceableField||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-dropdown-template"),initialize:function(){var e=this.model.get("choices");this.listenTo(e,"add",this.addChoice)},addChoice:function(e){var t=new wp.ccf.views.FieldChoice({model:e,field:this.model}).render(),i=this.el.querySelectorAll(".repeatable-choices")[0];i.appendChild(t.el)},saveField:function(){if(""!==this.el.innerHTML){this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),wp.ccf.views.ChoiceableField.__super__.saveField.apply(this,arguments);var t=this.el.querySelectorAll(".repeatable-choices")[0].querySelectorAll(".choice");return i.each(t,function(t){e(t).trigger("saveChoice")}),this}},render:function(t){var i=this;t=t?t:"basic",i.el.innerHTML=i.template({field:i.model.toJSON(),startPanel:t}),i.checkSlug();var l=i.model.get("choices"),s=this.el.querySelectorAll(".repeatable-choices")[0];if(l.length>=1)l.each(function(e){var t=new wp.ccf.views.FieldChoice({model:e,field:i.model}).render();s.appendChild(t.el)});else{var o=new wp.ccf.models.FieldChoice;l.add(o)}s=this.el.querySelectorAll(".repeatable-choices")[0],e(s).sortable({handle:".move",axis:"y",stop:function(e,t){t.item.trigger("sorted",t.item.index())}});var n=this.model.get("conditionals"),c=this.el.querySelectorAll(".conditionals")[0];if(n.length>=1)n.each(function(e){var t=new wp.ccf.views.FieldConditional({model:e,field:this.model,fieldCollection:this.collection}).render();c.appendChild(t.el)},this);else{var r=new wp.ccf.models.FieldConditional;n.add(r)}return i}}),wp.ccf.views.Fields.dropdown=wp.ccf.views.Fields.dropdown||wp.ccf.views.ChoiceableField.extend({template:wp.ccf.utils.template("ccf-dropdown-template"),events:function(){return this.constructor.__super__.events}}),wp.ccf.views.Fields.radio=wp.ccf.views.Fields.radio||wp.ccf.views.ChoiceableField.extend({template:wp.ccf.utils.template("ccf-radio-template"),events:function(){return this.constructor.__super__.events}}),wp.ccf.views.Fields.checkboxes=wp.ccf.views.Fields.checkboxes||wp.ccf.views.ChoiceableField.extend({template:wp.ccf.utils.template("ccf-checkboxes-template"),events:function(){return this.constructor.__super__.events}}),wp.ccf.views.FieldSidebar=wp.ccf.views.FieldSidebar||t.View.extend({initialize:function(e){this.currentFieldView=null,this.form=e.form},save:function(e){this.currentFieldView&&""!==this.currentFieldView.el.innerHTML&&this.currentFieldView.saveField(),e&&e instanceof Object&&e.resolve()},fieldRemoved:function(){this.currentFieldView&&(this.form.get("fields").get(this.currentFieldView.model)||this.render())},destroy:function(){wp.ccf.dispatcher.off("saveField",this.save),wp.ccf.dispatcher.off("mainViewChange",this.save),this.unbind()},render:function(e){var t={};if(e){var i=e.get("type");this.currentFieldView&&(this.currentFieldView.saveField(),this.currentFieldView.destroy&&this.currentFieldView.destroy()),this.currentFieldView=new wp.ccf.views.Fields[i]({model:e,collection:this.form.get("fields")}),this.currentFieldView.render(),this.el.innerHTML="",this.el.appendChild(this.currentFieldView.el);var l=this.form.get("fields");this.listenTo(l,"remove",this.fieldRemoved)}else{var s=wp.ccf.utils.template("ccf-empty-field-template");this.el.innerHTML=s(t)}return wp.ccf.dispatcher.on("saveField",this.save,this),wp.ccf.dispatcher.on("mainViewChange",this.save,this),this}}),wp.ccf.views.FieldRowPlaceholder=wp.ccf.views.FieldRowPlaceholder||t.View.extend({template:wp.ccf.utils.template("ccf-field-row-template"),tagName:"div",className:"field",initialize:function(e){this.type=e.type},render:function(){return this.el.innerHTML=this.template({label:l.allLabels[this.type]}),this.el.setAttribute("data-field-type",this.type),this.el.className+=" "+this.type,this}}),wp.ccf.views.FieldRow=wp.ccf.views.FieldRow||t.View.extend({template:wp.ccf.utils.template("ccf-field-row-template"),tagName:"div",className:"field",events:{"click .delete":"triggerDelete","click h4":"triggerEdit",sorted:"triggerUpdateSort"},initialize:function(e){i.bindAll(this,"triggerDelete"),this.form=e.form,this.listenTo(this.model,"change",this.handleChange,this),this.listenTo(this.model,"requirementsNotMet",this.requirementsNotMet,this),this.listenTo(this.model,"requirementsMet",this.requirementsMet,this),this.listenTo(this.model,"duplicateSlug",this.duplicateSlug,this),this.model.attributes.choices&&this.listenTo(this.model.attributes.choices,"change",this.handleChange,this)},duplicateSlug:function(){this.requirementsMet(),this.el.className+=" field-duplicate-slug"},requirementsNotMet:function(){this.requirementsMet(),this.el.className+=" field-incomplete"},requirementsMet:function(){this.el.className=this.el.className.replace(/(field-incomplete|field-duplicate-slug)/i,"")},triggerUpdateSort:function(e,t){this.form.get("fields").remove(this.model),this.form.get("fields").add(this.model,{at:t})},handleChange:function(){this.render()},triggerDelete:function(e){e.stopPropagation(),this.form.get("fields").remove(this.model),this.undelegateEvents(),this.remove()},triggerEdit:function(){var e=this.el.parentNode.querySelectorAll(".ccf-editing");i.each(e,function(e){e.className=e.className.replace(/ccf-editing/i,"")}),this.el.className=this.el.className.replace(/ccf-editing/i,"")+" ccf-editing",wp.ccf.dispatcher.trigger("openEditField",this.model)},render:function(e){this.el.innerHTML=this.template({label:l.allLabels[this.model.get("type")]}),this.el.setAttribute("data-field-type",this.model.get("type"));var t=RegExp(" "+this.model.get("type"),"i");this.el.className=this.el.className.replace(t,"")+" "+this.model.get("type"),e&&(this.el.className=this.el.className.replace(/ instantiated/i,"")+" instantiated");var i=document.getElementById("ccf-"+this.model.get("type")+"-preview-template");if(i){var s=this.el.querySelectorAll(".preview")[0];s.style.display="block",s.innerHTML=wp.ccf.utils.template("ccf-"+this.model.get("type")+"-preview-template")({field:this.model.toJSON()})}return this}}),wp.ccf.views.PostFieldMapping=t.View.extend({template:wp.ccf.utils.template("ccf-post-field-mapping"),className:"field-mapping",events:{"click .add":"triggerAdd","click .delete":"triggerDelete","blur input":"save","change select":"save"},initialize:function(e){this.parent=e.parent,this.form=e.form},destroy:function(){this.unbind()},save:function(){if(""!==this.el.innerHTML){var e=this.el.querySelectorAll(".field-form-field")[0].value,t=this.el.querySelectorAll(".field-post-field")[0].value,i=this.el.querySelectorAll(".field-custom-field-key"),l=this.model.get("postField");return this.model.set("formField",e),this.model.set("postField",t),i.length&&this.model.set("customFieldKey",i[0].value),l!==t&&this.render(),this}},updateFormFieldField:function(){var e=this.el.querySelectorAll(".field-form-field")[0];e.innerHTML="",e.disabled=!1;var t,i=this.form.get("fields"),s=0,o=this.model.get("formField");i.length>=1&&(t=document.createElement("option"),t.innerHTML=l.chooseFormField,t.value="",e.appendChild(t),i.each(function(i){t=document.createElement("option"),t.innerHTML=i.get("slug"),t.value=i.get("slug"),i.get("slug")===o&&(t.selected=!0),e.appendChild(t),s++})),0===s&&(t=document.createElement("option"),t.innerHTML=l.noAvailableFields,t.value="",e.appendChild(t),e.disabled=!0)},updatePostFields:function(){var e,t=this.el.querySelectorAll(".field-post-field")[0];e=document.createElement("option"),e.value="",e.innerText=l.choosePostField,t.appendChild(e);var s=this.form.get("postFieldMappings"),o=[];s.each(function(e){e!==this.model&&o.push(e.get("postField"))},this),i.each(l.postFields.single,function(i,l){-1===o.indexOf(l)&&(e=document.createElement("option"),e.value=l,e.innerText=i,this.model.get("postField")===l&&(e.selected=!0),t.appendChild(e))},this),i.each(l.postFields.repeatable,function(i,l){e=document.createElement("option"),e.value=l,e.innerText=i,this.model.get("postField")===l&&(e.selected=!0),t.appendChild(e)},this)},render:function(){var e={};this.model&&(e.mapping=this.model.toJSON()),this.el.innerHTML=this.template(e);var t=this.form.get("fields");return this.listenTo(t,"add",this.updateFormFieldField,this),this.listenTo(t,"remove",this.updateFormFieldField,this),this.updateFormFieldField(),this.updatePostFields(),this},triggerAdd:function(){this.form.get("postFieldMappings").add(new wp.ccf.models.PostFieldMapping)},triggerDelete:function(){var e=this.form.get("postFieldMappings");e.length>1?this.parent.deletePostFieldMapping(this):(this.model.clear().set(wp.ccf.models.PostFieldMapping.prototype.defaults),this.destroy(),this.render())}}),wp.ccf.views.FormSettings=wp.ccf.views.FormSettings||t.View.extend({template:wp.ccf.utils.template("ccf-form-settings-template"),events:{"blur input":"save","change select":"save","change select.form-completion-action-type":"toggleCompletionFields","change select.form-pause":"togglePauseFields","change select.form-post-creation":"togglePostCreationFields","click .add-notification":"triggerAddNotification"},notificationViews:[],mappingViews:[],initialize:function(e){this.model=e.form,this.notificationViews=[],this.mappingViews=[];var t=this.model.get("notifications");this.listenTo(t,"add",this.addNotification);var i=this.model.get("postFieldMappings");this.listenTo(i,"add",this.addPostFieldMapping)},deletePostFieldMapping:function(e){i.each(this.mappingViews,function(t){if(e.cid===t.cid){var l=i.indexOf(this.mappingViews,t);this.model.get("postFieldMappings").remove(e.model),this.mappingViews[l].remove(),this.mappingViews.splice(l,1)}},this)},addPostFieldMapping:function(e){var t=this.el.querySelectorAll(".post-creation-mapping")[0],i=new wp.ccf.views.PostFieldMapping({model:e,parent:this,form:this.model});this.mappingViews.push(i),t.appendChild(i.render().el)},triggerAddNotification:function(){var e=this.model.get("notifications");e.add(new wp.ccf.models.FormNotification)},closeAllNotifications:function(){i.each(this.notificationViews,function(e){e.changeContext(null,"view")})},addNotification:function(e){var t=new wp.ccf.views.ExistingFormNotificationRow({model:e,form:this.model,context:"edit",parent:this}).render(),l=this.el.querySelectorAll(".ccf-form-notifications .rows")[0];l.querySelectorAll(".no-notifications").length>0&&l.removeChild(l.firstChild),i.each(this.notificationViews,function(e){e.changeContext(null,"view")}),this.notificationViews.push(t),l.appendChild(t.el)},toggleCompletionFields:function(){var e=this.el.querySelectorAll(".form-completion-action-type")[0].value,t=this.el.querySelectorAll(".completion-message")[0],i=this.el.querySelectorAll(".completion-redirect-url")[0];"text"===e?(t.style.display="block",i.style.display="none"):(t.style.display="none",i.style.display="block")},togglePauseFields:function(){var e=this.el.querySelectorAll(".form-pause")[0].value,t=this.el.querySelectorAll(".pause-message")[0];t.style.display=parseInt(e)?"block":"none"},togglePostCreationFields:function(){var t=this.el.querySelectorAll(".form-post-creation")[0].value,i=e(this.el.querySelectorAll(".post-creation-mapping-field"));parseInt(t)?i.show():i.hide()},save:function(){if(""!==this.el.innerHTML){var e=this.el.querySelectorAll(".form-title")[0].value;this.model.set("title",{raw:e});var t=this.el.querySelectorAll(".form-description")[0].value;this.model.set("description",t);var i=this.el.querySelectorAll(".form-button-text")[0].value;this.model.set("buttonText",i);var l=this.el.querySelectorAll(".form-button-class")[0].value;this.model.set("buttonClass",l);var s=this.el.querySelectorAll(".form-pause")[0].value;this.model.set("pause",parseInt(s)?!0:!1);var o=this.el.querySelectorAll(".form-post-creation")[0].value;this.model.set("postCreation",parseInt(o)?!0:!1);var n=this.el.querySelectorAll(".form-post-creation-type")[0].value;this.model.set("postCreationType",n);var c=this.el.querySelectorAll(".form-post-creation-status")[0].value;this.model.set("postCreationStatus",c);var r=this.el.querySelectorAll(".form-pause-message")[0].value;this.model.set("pauseMessage",r);var a=this.el.querySelectorAll(".form-completion-message")[0].value;this.model.set("completionMessage",a);var d=this.el.querySelectorAll(".form-completion-redirect-url")[0].value;this.model.set("completionRedirectUrl",d);var u=this.el.querySelectorAll(".form-completion-action-type")[0].value;this.model.set("completionActionType",u);var f=this.el.querySelectorAll(".form-theme")[0].value;this.model.set("theme",f)}},fullSave:function(e){""!==this.el.innerHTML&&(this.save(),i.each(this.notificationViews,function(e){e.save()}),i.each(this.mappingViews,function(e){e.save()}),e!==void 0&&e.promise!==void 0&&e.resolve())},destroy:function(){wp.ccf.dispatcher.off("saveFormSettings",this.fullSave),wp.ccf.dispatcher.off("mainViewChange",this.fullSave)},deleteNotification:function(e){if(i.each(this.notificationViews,function(t){if(e.cid===t.cid){var l=i.indexOf(this.notificationViews,t);this.model.get("notifications").remove(e.model),this.notificationViews[l].remove(),this.notificationViews.splice(l,1)}},this),!this.notificationViews.length){var t=this.el.querySelectorAll(".ccf-form-notifications .rows")[0];t.appendChild(new wp.ccf.views.EmptyFormNotificationTableRow({form:this.model}).render().el)}},render:function(){var e={form:this.model.toJSON()};this.model.get("fields");var t=this.model.get("notifications");this.el.innerHTML=this.template(e),this.toggleCompletionFields(),this.togglePostCreationFields(),this.togglePauseFields();var i=this.el.querySelectorAll(".ccf-form-notifications .rows")[0],l=document.createElement("tbody");l.className="rows",t.length>=1?t.each(function(e){var t=new wp.ccf.views.ExistingFormNotificationRow({model:e,form:this.model,parent:this}).render();l.appendChild(t.el),this.notificationViews.push(t)},this):l.appendChild(new wp.ccf.views.EmptyFormNotificationTableRow({form:this.model}).render().el),i.parentNode.replaceChild(l,i);var s=this.el.querySelectorAll(".post-creation-mapping")[0],o=this.model.get("postFieldMappings");if(o.length>=1)o.each(function(e){var t=new wp.ccf.views.PostFieldMapping({model:e,parent:this,form:this.model}).render();s.appendChild(t.el),this.mappingViews.push(t)},this);else{var n=new wp.ccf.models.PostFieldMapping;o.add(n)}return wp.ccf.dispatcher.on("mainViewChange",this.fullSave,this),wp.ccf.dispatcher.on("saveFormSettings",this.fullSave,this),this}}),wp.ccf.views.FormPane=wp.ccf.views.FormPane||t.View.extend(i.defaults({template:wp.ccf.utils.template("ccf-form-pane-template"),subViews:{"field-sidebar":wp.ccf.views.FieldSidebar,"form-settings":wp.ccf.views.FormSettings},events:{"click .save-button":"sync","click .signup-button":"signup","click .accordion-heading":"accordionClick","click .form-settings-heading":"accordionClick","click .insert-form-button":"insertForm"},initialize:function(){wp.ccf.dispatcher.on("openEditField",this.openEditField,this)},insertForm:function(){wp.ccf.utils.insertFormShortcode(this.model),wp.ccf.toggle()},signup:function(){var t=this.el.querySelectorAll(".email-signup-field")[0].value,i=this.el.querySelectorAll(".bottom .left.signup")[0];i.className="left signup",t?e.ajax({url:"//taylorlovett.us8.list-manage.com/subscribe/post-json?u=66118f9a5b0ab0414e83f043a&amp;id=b4ed816a24&c=?",method:"post",dataType:"jsonp",data:{EMAIL:t}}).done(function(){i.className="left signup signup-success"}):i.className="left signup signup-error"},accordionClick:function(t){var l=e(t.currentTarget).parents(".accordion-container")[0],s=l.querySelectorAll(".accordion-section");t.currentTarget.parentNode.className.match(/expanded/i)?t.currentTarget.parentNode.className=t.currentTarget.parentNode.className.replace(/expanded/i,""):t.currentTarget.parentNode.className+=" expanded",i.each(s,function(e){e!=t.currentTarget.parentNode&&e.className.match(/expanded/i)&&(e.className=e.className.replace(/expanded/i,""))}),t.currentTarget.className.match(/form-settings-heading/i)?this.el.className.match(/show-form-settings/i)?this.el.className=this.el.className.replace(/show-form-settings/i,""):this.el.className+=" show-form-settings":this.el.className=this.el.className.replace(/show-form-settings/i,"")},openEditField:function(e){this.renderedSubViews["field-sidebar"].render(e).el.style.display="block"},disable:function(){this.el.querySelectorAll(".save-button")[0].setAttribute("disabled","disabled"),this.el.querySelectorAll(".disabled-overlay")[0].style.display="block"},enable:function(){this.el.querySelectorAll(".save-button")[0].removeAttribute("disabled"),this.el.querySelectorAll(".disabled-overlay")[0].style.display="none"},sync:function(){var t=this,i=e(this.el.querySelectorAll(".spinner")[0]);i.fadeIn(),t.disable();var s=e.Deferred(),o=e.Deferred();wp.ccf.dispatcher.trigger("saveFormSettings",s),wp.ccf.dispatcher.trigger("saveField",o),e.when(s,o).then(function(){var e=t.model.get("fields"),s=!0,o={};e.each(function(e){var t=e.get("slug");e.hasRequiredAttributes()?t&&!t.match(/^[a-zA-Z0-9\-_]+$/)?(s=!1,e.trigger("requirementsNotMet")):o[e.get("slug")]!==void 0?(s=!1,e.trigger("duplicateSlug"),o[e.get("slug")].trigger("duplicateSlug")):e.trigger("requirementsMet"):(s=!1,e.trigger("requirementsNotMet")),e.get("slug")&&(o[e.get("slug")]=e)}),s?t.model.save({},{context:"edit"}).error(function(){var e="sync";wp.ccf.errorModal.render(e).show()}).done(function(){l.single&&!l.postId&&(window.location=l.adminUrl+"post.php?post="+t.model.get("id")+"&action=edit#ccf-form/"+t.model.get("id"))}).complete(function(){i.fadeOut(),t.enable(),wp.ccf.dispatcher.trigger("saveFormComplete",t.model)}):(t.enable(),i.fadeOut())})},enableDisableInsert:function(){var e=this.el.querySelectorAll(".insert-form-button")[0];this.model.get("id")?e.removeAttribute("disabled"):e.setAttribute("disabled","disabled")},getNextFieldOrd:function(){var e=this.model.get("fields"),t=e.length+1;return e.each(function(e){var i=e.get("slug"),l=/\-([0-9]+)$/g,s=l.exec(i);if(s&&s[1]){var o=parseInt(s[1]);o>=t&&(t=o+1)}}),t},render:function(t){var s=this;s.model=t?t:new wp.ccf.models.Form,this.listenTo(s.model,"change",this.enableDisableInsert,this);var o={labels:l.fieldLabels,form:s.model.toJSON()};window.form=s.model,s.el.innerHTML=this.template(o),s.el.className=s.el.className.replace(/show-form-settings/i,"");var n=s.el.querySelectorAll(".fields")[0];i.each(l.fieldLabels,function(e,t){n.appendChild(new wp.ccf.views.FieldRowPlaceholder({type:t}).render().el)});var c=s.el.querySelectorAll(".structure-fields")[0];i.each(l.structureFieldLabels,function(e,t){c.appendChild(new wp.ccf.views.FieldRowPlaceholder({type:t}).render().el)});var r=s.el.querySelectorAll(".special-fields")[0];i.each(l.specialFieldLabels,function(e,t){r.appendChild(new wp.ccf.views.FieldRowPlaceholder({type:t}).render().el)});var a=s.model.get("fields"),d=s.el.querySelectorAll(".form-content")[0],u=e(d);return e(s.el.querySelectorAll(".left-sidebar")[0].querySelectorAll(".field")).draggable({cursor:"move",distance:2,zIndex:160001,scroll:!1,containment:"document",appendTo:".ccf-main-modal",snap:!1,connectToSortable:".form-content",helper:function(t){var i=e(t.currentTarget),l=e('<div class="field" data-field-type="'+i.attr("data-field-type")+'"><h4>'+i.find(".label").html()+"</h4></div>");return l.css({width:u.width(),opacity:".75",height:i.height()})}}),a.length>=1&&(d.innerHTML="",a.each(function(e){var t=new wp.ccf.views.FieldRow({model:e,form:s.model}).render(!0).el;d.appendChild(t)})),e(d).sortable({axis:"y",distance:2,handle:"h4",placeholder:"field-placeholder",stop:function(e,t){if(!t.item.hasClass("instantiated")){var i=t.item.attr("data-field-type"),l={};wp.ccf.models.Fields[i].prototype.defaults().slug!==void 0&&(l.slug=i+"-"+s.getNextFieldOrd());var o=new wp.ccf.models.Fields[i](l),n=s.model.get("fields");n.add(o),new wp.ccf.views.FieldRow({model:o,el:t.item,form:s.model}).render(!0),t.item.attr("style","")}t.item.trigger("sorted",t.item.index())}}),s.initRenderSubViews(!1,!0,{form:s.model}),s.enableDisableInsert(),s}},wp.ccf.mixins.subViewable)),wp.ccf.views.ExistingFormTableRow=wp.ccf.views.ExistingFormTableRow||t.View.extend({tagName:"tr",template:wp.ccf.utils.template("ccf-existing-form-table-row-template"),events:{"click .edit":"triggerMainViewChange","click .delete":"triggerDelete","click .duplicate":"triggerDuplicate","click .insert-form-button":"insertForm"},initialize:function(e){this.parent=e.parent
3
- },insertForm:function(){wp.ccf.utils.insertFormShortcode(this.model),wp.ccf.toggle()},triggerMainViewChange:function(){wp.ccf.switchToForm(this.model)},triggerDelete:function(){var e,t=this,i=t.parent.collection.state.currentPage;t.model.destroy().done(function(){e=i,e===t.parent.collection.state.totalPages&&e-1===(t.parent.collection.state.totalObjects-1)/l.postsPerPage&&e--,t.parent.showPage(e).done(function(){t.parent.renderPagination()})})},triggerDuplicate:function(){var e=this,t=e.parent.collection.state.currentPage;e.model.clone().set("title",{raw:e.model.get("title").raw+" (Duplicate)"}).unset("id").save().done(function(){e.parent.showPage(t).done(function(){e.parent.renderPagination()})})},render:function(){return this.$el.html(this.template({form:this.model.toJSON(),utils:{getPrettyPostDate:wp.ccf.utils.getPrettyPostDate}})),this}}),wp.ccf.views.EmptyFormTableRow=wp.ccf.views.EmptyFormTableRow||t.View.extend({tagName:"tr",template:wp.ccf.utils.template("ccf-empty-form-table-row-template"),render:function(){return this.$el.html(this.template()),this}}),wp.ccf.views.ExistingFormTable=wp.ccf.views.ExistingFormTable||t.View.extend({template:wp.ccf.utils.template("ccf-existing-form-table-template"),initialize:function(){this.parent=arguments.parent,this.collection=new wp.ccf.collections.Forms,wp.ccf.dispatcher.on("changeFormTablePage",this.showPage,this),wp.ccf.dispatcher.on("saveFormComplete",this.render,this)},showPage:function(e){var t=this,i=this.collection.fetch({data:{page:e}});return i.error(function(){var e="sync";wp.ccf.errorModal.render(e).show()}),i.done(function(){var e=t.el.querySelectorAll(".rows")[0],i=document.createElement("tbody");i.className="rows",t.collection.length>=1?t.collection.each(function(e){var l=new wp.ccf.views.ExistingFormTableRow({model:e,parent:t}).render();i.appendChild(l.el)},t):i.appendChild((new wp.ccf.views.EmptyFormTableRow).render().el),e.parentNode.replaceChild(i,e)}),i},renderPagination:function(){var e=this.el.querySelectorAll(".ccf-pagination")[0];e.innerHTML="",this.collection.state.totalPages>1&&e.appendChild(new wp.ccf.views.Pagination({parent:this}).render(this.collection.state.totalPages,this.collection.state.currentPage).el)},render:function(){var e=this;return this.el.innerHTML=this.template(),this.el.querySelectorAll(".ccf-pagination")[0],this.showPage(1).done(function(){e.renderPagination()}),this}}),wp.ccf.views.ExistingFormPane=wp.ccf.views.ExistingFormPane||t.View.extend(i.defaults({template:wp.ccf.utils.template("ccf-existing-form-pane-template"),subViews:{"existing-form-table":wp.ccf.views.ExistingFormTable},render:function(){return this.rendered?this:(this.rendered=!0,this.el.innerHTML=this.template(),this.initRenderSubViews(!0),this)}},wp.ccf.mixins.subViewable)),wp.ccf.views.MainModal=wp.ccf.views.MainModal||t.View.extend(i.defaults({tagName:"div",className:"ccf-main-modal",template:wp.ccf.utils.template("ccf-main-modal-template"),events:{"click .close-icon":"hide","click .main-menu a":"menuClick"},subViews:{"form-pane":wp.ccf.views.FormPane},initialize:function(){l.single||(this.subViews["existing-form-pane"]=wp.ccf.views.ExistingFormPane),wp.ccf.dispatcher.on("mainViewChange",this.toggleView,this)},toggleView:function(e){this.showView(e,wp.ccf.currentForm);var t=e;"form-pane"===e&&wp.ccf.currentForm&&(t="existing-form-pane");var l=this.el.querySelectorAll(".menu-item");i.each(l,function(e){var i=e.getAttribute("data-view");e.className=i===t?e.className.replace("selected","")+" selected":e.className.replace("selected","")})},menuClick:function(e){var t=e.target.getAttribute("data-view");"form-pane"===t&&(wp.ccf.currentForm=null),wp.ccf.dispatcher.trigger("mainViewChange",t),e.preventDefault()},render:function(e){return e=e||!1,this.overlay(),this.el.innerHTML=this.template({single:e}),this.initRenderSubViews(),this.showView("form-pane",wp.ccf.currentForm,!0),this},overlay:function(){return this.overlayEl===void 0&&(this.overlayEl=document.createElement("div"),this.overlayEl.className="ccf-main-modal-overlay",document.body.appendChild(this.overlayEl)),this.overlayEl},remove:function(){return document.body.removeChild(this.overlay()),this},show:function(){e(this.overlay()).show(),this.$el.show()},hide:function(){e(this.overlay()).hide(),this.$el.hide()}},wp.ccf.mixins.subViewable)),wp.ccf.views.SubmissionRow=wp.ccf.views.SubmissionRow||t.View.extend({tagName:"tr",template:wp.ccf.utils.template("ccf-submission-row-template"),events:{"click .view":"view","click .delete":"delete"},initialize:function(e){this.parent=e.parent},"delete":function(){var e,t=this,i=t.parent.collection.state.currentPage;t.model.destroy().done(function(){e=i,e===t.parent.collection.state.totalPages&&e-1===(t.parent.collection.state.totalObjects-1)/l.postsPerPage&&e--,t.parent.showPage(e).done(function(){t.parent.renderPagination()})})},view:function(e){var t=e.currentTarget.getAttribute("data-submission-id"),i=e.currentTarget.getAttribute("data-submission-date");tb_show(l.thickboxTitle+" - "+wp.ccf.utils.getPrettyPostDate(i),"#TB_inline?height=500&amp;width=700&amp;inlineId=ccf-submission-content-"+parseInt(t),null)},render:function(){return this.$el.html(this.template({submission:this.model.toJSON(),currentColumns:this.parent.columns,columns:wp.ccf.currentForm.getFieldSlugs(!0),utils:{getPrettyPostDate:wp.ccf.utils.getPrettyPostDate,wordChop:wp.ccf.utils.wordChop,isFieldDate:wp.ccf.utils.isFieldDate,isFieldName:wp.ccf.utils.isFieldName,isFieldFile:wp.ccf.utils.isFieldFile,isFieldAddress:wp.ccf.utils.isFieldAddress,isFieldEmailConfirm:wp.ccf.utils.isFieldEmailConfirm,getPrettyFieldDate:wp.ccf.utils.getPrettyFieldDate,getPrettyFieldAddress:wp.ccf.utils.getPrettyFieldAddress,getPrettyFieldName:wp.ccf.utils.getPrettyFieldName,getPrettyFieldEmailConfirm:wp.ccf.utils.getPrettyFieldEmailConfirm}})),this}}),wp.ccf.views.SubmissionsTable=wp.ccf.views.SubmissionsTable||t.View.extend({template:wp.ccf.utils.template("ccf-submission-table-template"),events:{"click .prev:not(.disabled)":"previousPage","click .next:not(.disabled)":"nextPage","click .first:not(.disabled)":"firstPage","click .last:not(.disabled)":"lastPage"},initialize:function(){this.collection=new wp.ccf.collections.Submissions({},{formId:l.postId}),wp.ccf.dispatcher.on("submissionTableRebuild",this.render,this)},showPage:function(e){var t=this,i=this.collection.fetch({data:{page:e}});return i.error(function(){var e="sync";wp.ccf.errorModal.render(e).show()}),i.done(function(){var e=t.el.querySelectorAll(".submission-rows")[0],i=document.createElement("tbody");i.className="submission-rows",t.collection.length>=1?t.collection.each(function(e){var l=new wp.ccf.views.SubmissionRow({model:e,parent:t}).render();i.appendChild(l.el)},t):i.appendChild(new wp.ccf.views.EmptySubmissionTableRow({parent:t}).render(wp.ccf.currentForm.getFieldSlugs(!0).concat("date")).el),e.parentNode.replaceChild(i,e)}),i},renderPagination:function(){var e=this.el.querySelectorAll(".ccf-pagination")[0];e.innerHTML="",this.collection.state.totalPages>1&&e.appendChild(new wp.ccf.views.Pagination({parent:this}).render(this.collection.state.totalPages,this.collection.state.currentPage).el)},render:function(e){var t=this;return t.columns=e?e:wp.ccf.currentForm.getFieldSlugs(!0).slice(0,4).concat("date"),1>t.columns.length?t.el.innerHTML="":(t.el.innerHTML=t.template({columns:t.columns}),t.el.querySelectorAll(".ccf-pagination")[0],t.showPage(1).done(function(){t.renderPagination()})),t}}),wp.ccf.views.ErrorModal=wp.ccf.views.ErrorModal||t.View.extend({template:wp.ccf.utils.template("ccf-error-modal-template"),tagName:"div",className:"ccf-error-modal",events:{"click .close":"hide"},hide:function(){this.el.className=this.el.className.replace(" show","")},show:function(){this.el.className=this.el.className.replace(" show","")+" show"},toggle:function(){this.el.className.match(" show")?this.hide():this.show()},render:function(e){var t={messageType:""};return e&&(t.messageType=e),this.el.innerHTML=this.template(t),this}}),wp.ccf.views.Pagination=wp.ccf.views.Pagination||t.View.extend({template:wp.ccf.utils.template("ccf-pagination-template"),events:{"click .prev:not(.disabled)":"previousPage","click .next:not(.disabled)":"nextPage","click .first:not(.disabled)":"firstPage","click .last:not(.disabled)":"lastPage"},initialize:function(e){this.parent=e.parent},previousPage:function(){var e=this;e.parent.showPage(e.parent.collection.state.currentPage-1).done(function(){e.render()})},nextPage:function(){var e=this;e.parent.showPage(e.parent.collection.state.currentPage+1).done(function(){e.render()})},firstPage:function(){var e=this;e.parent.showPage(1).done(function(){e.render()})},lastPage:function(){var e=this;e.parent.showPage(e.parent.collection.state.totalPages).done(function(){e.render()})},render:function(){return this.el.innerHTML=this.template({totalPages:this.parent.collection.state.totalPages,currentPage:this.parent.collection.state.currentPage,totalObjects:this.parent.collection.state.totalObjects}),this}}),wp.ccf.views.EmptySubmissionTableRow=wp.ccf.views.EmptySubmissionTableRow||t.View.extend({tagName:"tr",template:wp.ccf.utils.template("ccf-no-submissions-row-template"),initialize:function(e){this.parent=e.parent},render:function(){return this.el.innerHTML=this.template({columns:this.parent.columns}),this}}),wp.ccf.views.SubmissionColumnController=wp.ccf.views.SubmissionColumnController||t.View.extend({template:wp.ccf.utils.template("ccf-submissions-controller-template"),events:{"click input[type=checkbox]":"triggerTableRebuild"},render:function(){this.el.innerHTML=this.template({columns:wp.ccf.currentForm.getFieldSlugs(!0).concat("date")})},triggerTableRebuild:function(){var e=[],t=document.querySelectorAll(".submission-column-checkbox");if(t.length>=1)for(var i=0;t.length>i;i++)t[i].checked&&e.push(t[i].value);wp.ccf.dispatcher.trigger("submissionTableRebuild",e)}})}(jQuery,Backbone,_,ccfSettings),function(e,t){"use strict";wp.ccf.router=wp.ccf.router||t.Router.extend({routes:{"ccf-form":"open","ccf-form/:formId":"open"},open:function(e){wp.ccf.show(e)}})}(jQuery,Backbone,_,ccfSettings),function(e,t,i,l){"use strict";wp.ccf=i.defaults(wp.ccf,{forms:new wp.ccf.collections.Forms,currentForm:null,errorModal:null,_currentFormDeferred:null,dispatcher:{},show:function(e){return this.switchToForm(e),this.instance.show(),this.instance},initErrorModal:function(){this.errorModal=(new wp.ccf.views.ErrorModal).render();var e=document.getElementsByTagName("body")[0];e.appendChild(this.errorModal.el)},switchToForm:function(e){var t=this;if(+e===parseInt(e)){var i=parseInt(e);if(e=t.forms.findWhere({id:parseInt(i)}),!e){var l;return t.forms.formsFetching[i]!==void 0?(l=t.forms.formsFetching[i],e=null):(e=new wp.ccf.models.Form({id:i}),l=e.fetch(),t.forms.formsFetching[i]=l),l.done(function(){e?(delete t.forms.formsFetching[i],t.forms.add(e)):e=t.forms.findWhere({id:i}),t.currentForm=e,wp.ccf.dispatcher.trigger("mainViewChange","form-pane")}),l}t.currentForm=e,wp.ccf.dispatcher.trigger("mainViewChange","form-pane")}else t.currentForm=e,wp.ccf.dispatcher.trigger("mainViewChange","form-pane");return!0},hide:function(){return this.instance.hide(),this.instance},toggle:function(e){return this.switchToForm(e),this.instance.$el.is(":visible")?this.instance.hide():this.instance.show(),this.instance},createSubmissionsTable:function(e){var t=document.querySelectorAll(".ccf-submission-column-controller"),i=new wp.ccf.views.SubmissionsTable({el:e});i.render(),t&&new wp.ccf.views.SubmissionColumnController({el:t}).render()},_setupMainModal:function(e){return this.instance=(new wp.ccf.views.MainModal).render(e),document.getElementsByTagName("body")[0].appendChild(this.instance.el),t.history.start(),this.instance},createManager:function(){var s=this,o=document.querySelectorAll(".ccf-open-form-manager")[0];if(!o)return!1;i.extend(this.dispatcher,t.Events),new wp.ccf.router,s.initErrorModal();var n=!1;if(l.single)if(n=!0,l.postId){var c=parseInt(l.postId);if(s.forms.formsFetching[c]===void 0){var r=new wp.ccf.models.Form({id:c}),a=r.fetch();s.forms.formsFetching[c]=a,s._currentFormDeferred=a,a.done(function(){delete s.forms.formsFetching[c],s.forms.add(r),s.currentForm=r})}else s._currentFormDeferred=s.forms.formsFetching[c],s._currentFormDeferred.done(function(){s.currentForm=s.forms.findWhere({id:c})});e.when(s._currentFormDeferred).then(function(){s._setupMainModal(!0),o.style.display="inline-block";var e=document.getElementById("ccf-submissions");if(e){var t=e.querySelectorAll(".inside")[0],i=document.createElement("div");i.className="ccf-submission-icon",i.setAttribute("data-icon","");var n=document.createElement("a");n.href="?action=edit&post="+parseInt(l.postId)+"&download_submissions=1&download_submissions_nonce="+l.downloadSubmissionsNonce,n.className="ccf-submission-icon",n.setAttribute("data-icon","");var c=document.getElementById("show-settings-link");i.onclick=function(){c.click()},e.insertBefore(i,e.firstChild.nextSibling.nextSibling),e.insertBefore(n,e.firstChild.nextSibling.nextSibling),wp.ccf.createSubmissionsTable(t);var r=document.querySelectorAll("#major-publishing-actions .duplicate")[0],a=function(e){e=e||window.event,e.preventDefault(),s.currentForm.clone().set("title",{raw:s.currentForm.get("title").raw+" (duplicate)"}).unset("id").save().done(function(e){document.location=l.adminUrl+"/post.php?action=edit&post="+e.id})};r.addEventListener?r.addEventListener("click",a,!1):r.attachEvent("onclick",a)}})}else s._setupMainModal(!0),o.style.display="inline-block";else s._setupMainModal();var d=function(e){e=e||window.event;var t=e.currentTarget?e.currentTarget:e.srcElement,i=t.getAttribute("data-form-id");wp.ccf.toggle(i)};o.addEventListener?o.addEventListener("click",d,!1):o.attachEvent("onclick",d)}}),wp.ccf.createManager()}(jQuery,Backbone,_,ccfSettings);
1
+ (function(e,t,i,l){"use strict";window.wp=window.wp||{},wp.ccf=wp.ccf||{},wp.ccf.utils=wp.ccf.utils||{},wp.ccf.utils.cleanDateFields=function(e){delete e.date,delete e.date_gmt,delete e.modified,delete e.modified_gmt,delete e.date_tz,delete e.modified_tz},wp.ccf.utils.template=i.memoize(function(e){var t={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g};return i.template(document.getElementById(e).innerHTML,null,t)}),wp.ccf.utils.insertFormShortcode=function(e){var t=wp.ccf.forms.findWhere({id:e.get("id")});t||wp.ccf.forms.add(e);var i=tinymce.get(wpActiveEditor),l='[ccf_form id="'+e.get("id")+'"]';i&&!i.isHidden()?tinymce.activeEditor.execCommand("mceInsertContent",!1,l):document.getElementById(wpActiveEditor).value+=l},wp.ccf.utils.getPrettyPostDate=function(e){return e=moment.utc(e),l.gmtOffset&&(e=e.utcOffset(60*parseInt(l.gmtOffset))),e.format("h:mm a M/D/YYYY")},wp.ccf.utils.wordChop=function(e,t){var i=e.substr(0,t);return i.substr(0,Math.min(i.length,i.lastIndexOf(" "))),i.length<e.length&&(i+="..."),i},wp.ccf.utils.isFieldDate=function(e){return e.date!==void 0||e.hour!==void 0&&e.minute!==void 0&&e["am-pm"]!==void 0?!0:!1},wp.ccf.utils.isFieldName=function(e){return e.name!==void 0||e.last!==void 0?!0:!1},wp.ccf.utils.isFieldEmailConfirm=function(e){return e.email!==void 0||e.confirm!==void 0?!0:!1},wp.ccf.utils.isFieldAddress=function(e){return e.street!==void 0&&e.city!==void 0&&e.zipcode!==void 0&&e.line_two!==void 0?!0:!1},wp.ccf.utils.isFieldFile=function(e){return e.id!==void 0&&e.url!==void 0&&e.file_name!==void 0?!0:!1},wp.ccf.utils.getPrettyFieldEmailConfirm=function(e){return e.email?e.email:e.confirm?e.confirm:"-"},wp.ccf.utils.getPrettyFieldDate=function(e,t){var i="",s="",o="HH:mm MM/DD/YY";if(t&&t.ccf_field_dateFormat&&"dd/mm/yyyy"===t.ccf_field_dateFormat&&(o="HH:mm DD/MM/YY"),e.hour&&e.minute&&e["am-pm"]&&(i+=e.hour+":"+e.minute+" "+e["am-pm"]),e.date&&(i+=" "+e.date),!i)return"-";var n=moment(i,o);return n.isValid()?(e.hour&&e.minute&&e["am-pm"]&&(s+=n.format("h:mm a")),e.date&&(s&&(s+=" "),s+=e.date),s):l.invalidDate},wp.ccf.utils.getPrettyFieldName=function(e){var t=e.first;return t.length>0&&(t+=" "),e.last&&(t+=e.last),t||(t="-"),t},wp.ccf.utils.getPrettyFieldAddress=function(e){if(!e.street||!e.city)return"-";var t=e.street;return e.line_two&&(t+=" "+e.line_two),t+=", "+e.city,e.state&&(t+=", "+e.state),e.zipcode&&(t+=" "+e.zipcode),e.country&&(t+=" "+e.country),t}})(jQuery,Backbone,_,ccfSettings),function(e,t,i){"use strict";wp.ccf.mixins=wp.ccf.mixins||{},wp.ccf.mixins.subViewable=wp.ccf.mixins.subViewable||{subViews:{},initRenderSubViews:function(e,t,l){this.renderedSubViews||(this.renderedSubViews={});for(var s in this.subViews){var o={el:this.$el.find(".ccf-"+s),parent:this};l&&i.extend(o,l),this.renderedSubViews[s]&&this.renderedSubViews[s].destroy&&this.renderedSubViews[s].destroy(),(t||!this.renderedSubViews[s])&&(this.renderedSubViews[s]=new this.subViews[s](o)),this.renderedSubViews[s].render(),e&&(this.renderedSubViews[s].el.style.display="block")}return this},showView:function(e,t,i){if(this.renderedSubViews!==void 0&&this.renderedSubViews[e]!==void 0){var l=this.renderedSubViews[e];i||l.render(t),l.el.style.display="block",this.currentView=e;for(var s in this.subViews)s!==e&&(this.renderedSubViews[s].el.style.display="none")}}}}(jQuery,Backbone,_,ccfSettings),function(e,t,i,l){"use strict";wp.ccf.models=wp.ccf.models||{},wp.ccf.models.Fields=wp.ccf.models.Fields||{};var s=function(e,i,l){return"object"!=typeof i&&""===i&&(i=""),t.Model.prototype.set.call(this,e,i,l)},o=function(e,t,i){return i=i||{},i.emulateHTTP=!0,this.constructor.__super__.sync.call(this,e,t,i)},n=function(e){for(var t in this.attributes)if(-1===i.indexOf(e,t)){var l=this.get(t);"string"==typeof l&&""!==l&&(l=(l+"").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#8220;/g,"”").replace(/&#8221;/g,"”").replace(/&#8216;/g,"‘").replace(/&#038;/g,"&").replace(/&#039;/g,"'"),this.set(t,l))}return this};wp.ccf.models.FieldConditional=wp.ccf.models.FieldConditional||t.Model.extend({defaults:{field:"",compare:"is",value:""},decode:function(){return n.call(this,[])},set:s}),wp.ccf.models.FieldChoice=wp.ccf.models.FieldChoice||t.Model.extend({defaults:{label:"",value:"",selected:!1},decode:function(){return n.call(this,[])},set:s}),wp.ccf.models.PostFieldMapping=wp.ccf.models.PostFieldMapping||t.Model.extend({defaults:{formField:"",postField:"",customFieldKey:""},decode:function(){return n.call(this,[])},set:s}),wp.ccf.models.FormNotificationAddress=wp.ccf.models.FormNotificationAddress||t.Model.extend({defaults:{type:"custom",field:"",email:""},decode:function(){return n.call(this,[])},set:s}),wp.ccf.models.FormNotification=wp.ccf.models.FormNotification||t.Model.extend({defaults:function(){return{title:"",content:"[all_fields]",active:!1,addresses:new wp.ccf.collections.FormNotificationAddresses,fromType:"default",fromAddress:"",fromField:"",subjectType:"default",subject:"",subjectField:"",fromNameType:"custom",fromName:"WordPress",fromNameField:""}},initialize:function(e){if("object"==typeof e&&e.addresses){var t=[];i.each(e.addresses,function(e){var i=new wp.ccf.models.FormNotificationAddress(e);i.decode(),t.push(i)}),this.set("addresses",new wp.ccf.collections.FormNotificationAddresses(t))}},decode:function(){return n.call(this,[])},toJSON:function(){var e=this.constructor.__super__.toJSON.call(this);return e.addresses&&(e.addresses=e.addresses.toJSON()),e},set:s}),wp.ccf.models.Form=wp.ccf.models.Form||wp.api.models.Post.extend({urlRoot:l.apiRoot.replace(/\/$/,"")+"/ccf/v1/forms",set:s,sync:o,idAttribute:"id",initialize:function(){this.on("sync",this.decode,this)},defaults:function(){var e={fields:new wp.ccf.collections.Fields,type:"ccf_form",status:"publish",description:"",buttonText:"Submit Form",buttonClass:"",completionActionType:"text",completionRedirectUrl:"",completionMessage:"",postCreation:!1,postCreationType:"post",postCreationStatus:"draft",postFieldMappings:new wp.ccf.collections.PostFieldMappings,notifications:new wp.ccf.collections.FormNotifications,pause:!1,requireLoggedIn:!1,pauseMessage:l.pauseMessage,theme:"none"};return e=i.defaults(e,this.constructor.__super__.defaults),wp.ccf.utils.cleanDateFields(e),e},decode:function(){var e=i.keys(wp.api.models.Post.prototype.defaults);return e=i.without(e,"title"),n.call(this,e)},getFieldSlugs:function(e){var t=wp.ccf.currentForm.get("fields"),i=[];return t.each(function(t){e&&t.isImmutable||i.push(t.get("slug"))}),i},parse:function(e){var t=this,l=0,s=0;if(e.fields){var o=t.get("fields");if(o&&o.length>0){for(l=0;e.fields.length>l;l++){var n=e.fields[l],c=o.findWhere({slug:n.slug});if(c){if(n.choices!==void 0){var r=t.get("choices");if(r&&r.length>0)for(s=0;n.choices>s;s++){var a=r.at(s);a.set(n.choices[s]),a.decode()}delete e.fields[l].choices}if(n.conditionals!==void 0){var d=t.get("conditionals");if(d&&d.length>0)for(s=0;n.conditionals>s;s++){var u=d.at(s);u.set(n.conditionals[s]),u.decode()}delete e.fields[l].conditionals}c.set(n),c.decode()}}delete e.fields}else{var f=[];i.each(e.fields,function(e){var t=new wp.ccf.models.Fields[e.type](e);t.decode(),f.push(t)}),e.fields=new wp.ccf.collections.Fields(f,{formId:e.id}),o?(o.add(f),delete e.fields):e.fields=new wp.ccf.collections.Fields(f,{formId:e.id})}}if(e.notifications){var p=t.get("notifications");if(p&&p.length>0){for(l=0;e.notifications.length>l;l++){var h=e.notifications[l],m=p.at(l);if(m){if(h.addresses!==void 0){var w=m.get("addresses");if(w&&w.length>0)for(s=0;h.addresses>s;s++){var v=w.at(s);v.set(h.addresses[s]),v.decode()}delete e.notifications[l].addresses}m.set(h),m.decode()}}delete e.notifications}else{var g=[];i.each(e.notifications,function(e){var t=new wp.ccf.models.FormNotification(e);t.decode(),g.push(t)}),p?(p.add(g),delete e.notifications):e.notifications=new wp.ccf.collections.FormNotifications(g)}}if(e.postFieldMappings){var y=t.get("postFieldMappings");if(y&&y.length>0){for(l=0;e.postFieldMappings.length>l;l++){var F=e.postFieldMappings[l],b=y.at(l);b&&(b.set(F),b.decode())}delete e.postFieldMappings}else{var S=[];i.each(e.postFieldMappings,function(e){var t=new wp.ccf.models.PostFieldMapping(e);t.decode(),S.push(t)}),y?(y.add(S),e.postFieldMappings=y):e.postFieldMappings=new wp.ccf.collections.PostFieldMappings(S)}}return this.constructor.__super__.parse.call(this,e)},toJSON:function(){var e=this.constructor.__super__.toJSON.call(this);return e.fields&&(e.fields=e.fields.toJSON()),e.notifications&&(e.notifications=e.notifications.toJSON()),e.postFieldMappings&&(e.postFieldMappings=e.postFieldMappings.toJSON()),e.author&&(e.author=e.author.toJSON()),e}}),wp.ccf.models.Submission=wp.api.models.Submission||wp.api.models.Post.extend({defaults:{id:null,data:{},fields:{}},sync:o,urlRoot:l.apiRoot.replace(/\/$/,"")+"/ccf/v1/submissions"}),wp.ccf.models.Field=wp.api.models.Field||wp.api.models.Post.extend({idAttribute:"id",defaults:function(){return{id:null,conditionalsEnabled:!1,conditionalType:"show",conditionalFieldsRequired:"all",conditionals:new wp.ccf.collections.FieldConditionals}},set:s,initialize:function(e){if("object"==typeof e&&e.conditionals){var t=[];i.each(e.conditionals,function(e){var i=new wp.ccf.models.FieldConditional(e);i.decode(),t.push(i)}),this.set("conditionals",new wp.ccf.collections.FieldConditionals(t))}},required:function(){return["slug"]},decode:function(){return n.call(this,i.keys(wp.api.models.Post.prototype.defaults))},hasRequiredAttributes:function(){var e=this,t=!0;return i.each(this.required(),function(i){(e.get(i)===void 0||""===e.get(i))&&(t=!1)}),t},sync:o}),wp.ccf.models.StandardField=wp.ccf.models.StandardField||wp.ccf.models.Field.extend({idAttribute:"id",defaults:function(){var e={label:l.fieldLabel,value:"",placeholder:"",slug:"",type:"",required:!1,className:"",description:""};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return wp.ccf.models.StandardField.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields["single-line-text"]=wp.ccf.models.Fields["single-line-text"]||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"single-line-text"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.file=wp.ccf.models.Fields.file||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"file",fileExtensions:"",maxFileSize:l.maxFileSize};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields["paragraph-text"]=wp.ccf.models.Fields["paragraph-text"]||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"paragraph-text"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.hidden=wp.ccf.models.Fields.hidden||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"hidden"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.email=wp.ccf.models.Fields.email||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"email",emailConfirmation:!1};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.website=wp.ccf.models.Fields.website||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"website",placeholder:"http://"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.phone=wp.ccf.models.Fields.phone||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"phone",phoneFormat:"us"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.date=wp.ccf.models.Fields.date||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"date",showDate:!0,showTime:!0,dateFormat:"mm/dd/yyyy"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.name=wp.ccf.models.Fields.name||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"name"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.recaptcha=wp.ccf.models.Fields.recaptcha||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"recaptcha",siteKey:"",secretKey:""};return i.defaults(e,this.constructor.__super__.defaults())},required:function(){return["siteKey","secretKey"]},isImmutable:!0,initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields["simple-captcha"]=wp.ccf.models.Fields["simple-captcha"]||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"simple-captcha",placeholder:l.defaultSimpleCaptchaPlaceholder};return i.defaults(e,this.constructor.__super__.defaults())},isImmutable:!0,initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.address=wp.ccf.models.Fields.address||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"address",addressType:"us"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields["section-header"]=wp.ccf.models.Fields["section-header"]||wp.ccf.models.Field.extend({defaults:function(){var e={type:"section-header",slug:"",heading:"",subheading:"",className:""};return i.defaults(e,this.constructor.__super__.defaults())},required:function(){return[]},isImmutable:!0,initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.html=wp.ccf.models.Fields.html||wp.ccf.models.Field.extend({defaults:function(){var e={type:"html",slug:"",html:"",className:""};return i.defaults(e,this.constructor.__super__.defaults())},required:function(){return[]},isImmutable:!0,initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.ChoiceableField=wp.ccf.models.ChoiceableField||wp.ccf.models.StandardField.extend({defaults:function(){var e={choices:new wp.ccf.collections.FieldChoices};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(e){if("object"==typeof e&&e.choices){var t=[];i.each(e.choices,function(e){var i=new wp.ccf.models.FieldChoice(e);i.decode(),t.push(i)}),this.set("choices",new wp.ccf.collections.FieldChoices(t))}return wp.ccf.models.ChoiceableField.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.radio=wp.ccf.models.Fields.radio||wp.ccf.models.ChoiceableField.extend({defaults:function(){var e={type:"radio"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.checkboxes=wp.ccf.models.Fields.checkboxes||wp.ccf.models.ChoiceableField.extend({defaults:function(){var e={type:"checkboxes"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.dropdown=wp.ccf.models.Fields.dropdown||wp.ccf.models.ChoiceableField.extend({defaults:function(){var e={type:"dropdown"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}})}(jQuery,Backbone,_,ccfSettings),function(e,t,i,l){"use strict";var s=function(e,t,i){return i=i||{},i.emulateHTTP=!0,this.constructor.__super__.sync.call(this,e,t,i)};wp.ccf.collections=wp.ccf.collections||{},wp.ccf.collections.Forms=wp.ccf.collections.Forms||wp.api.collections.Posts.extend({model:wp.ccf.models.Form,url:l.apiRoot.replace(/\/$/,"")+"/ccf/v1/forms",formsFetching:{},initialize:function(){this.constructor.__super__.initialize(),this.formsFetching={}},sync:s,remove:function(e,t){t=t||{};var l=this.constructor.__super__.remove.call(this,e,t);return t.destroy&&(e instanceof Array?i.each(e,function(e){e.destroy()}):e.destroy()),l}}),wp.ccf.collections.Fields=wp.ccf.collections.Fields||wp.api.collections.Posts.extend({model:wp.ccf.models.Field,url:function(){return l.apiRoot+"/ccf/forms/"+this.formId+"/fields"},initialize:function(e,t){t&&t.formId&&(this.formId=t.formId)},sync:s}),wp.ccf.collections.PostFieldMappings=wp.ccf.collections.PostFieldMappings||t.Collection.extend({model:wp.ccf.models.PostFieldMapping}),wp.ccf.collections.FormNotificationAddresses=wp.ccf.collections.FormNotificationAddresses||t.Collection.extend({model:wp.ccf.models.FormNotificationAddress}),wp.ccf.collections.FormNotifications=wp.ccf.collections.FormNotifications||t.Collection.extend({model:wp.ccf.models.FormNotification}),wp.ccf.collections.Submissions=wp.ccf.collections.Submissions||wp.api.collections.Posts.extend({model:wp.ccf.models.Submission,url:function(){return l.apiRoot.replace(/\/$/,"")+"/ccf/v1/forms/"+this.formId+"/submissions"},initialize:function(e,t){this.constructor.__super__.initialize.apply(this,arguments),t&&t.formId&&(this.formId=t.formId)},sync:s}),wp.ccf.collections.FieldChoices=wp.ccf.collections.FieldChoices||t.Collection.extend({model:wp.ccf.models.FieldChoice}),wp.ccf.collections.FieldConditionals=wp.ccf.collections.FieldConditionals||t.Collection.extend({model:wp.ccf.models.FieldConditional})}(jQuery,Backbone,_,ccfSettings),function(e,t,i,l){"use strict";wp.ccf.views=wp.ccf.views||{},wp.ccf.views.Fields=wp.ccf.views.Fields||{},wp.ccf.views.FieldChoice=t.View.extend({template:wp.ccf.utils.template("ccf-field-choice-template"),className:"choice",events:{"click .add":"triggerAdd","click .delete":"triggerDelete",saveChoice:"saveChoice",sorted:"triggerUpdateSort"},initialize:function(e){this.field=e.field},destroy:function(){wp.ccf.dispatcher.off("mainViewChange",this.saveChoice),this.unbind()},triggerUpdateSort:function(e,t){this.field.get("choices").remove(this.model,{silent:!0}),this.field.get("choices").add(this.model,{at:t,silent:!0})},saveChoice:function(){if(""!==this.el.innerHTML){var e=this.el.querySelectorAll(".choice-label")[0].value,t=this.el.querySelectorAll(".choice-value")[0].value;this.model.set("label",e),this.model.set("value",t);var i=this.el.querySelectorAll(".choice-selected")[0],l=i.checked?!0:!1;return this.model.set("selected",l),this}},render:function(){var e={};return this.model&&(e.choice=this.model.toJSON()),this.el.innerHTML=this.template(e),wp.ccf.dispatcher.on("mainViewChange",this.saveChoice,this),this},triggerAdd:function(){this.field.get("choices").add(new wp.ccf.models.FieldChoice)},triggerDelete:function(){var e=this.field.get("choices");if(e.length>1)e.remove(this.model),this.destroy(),this.remove();else{for(var t=this.el.querySelectorAll(".choice-label, .choice-value"),i=this.el.querySelectorAll(".choice-selected"),l=0;t.length>l;l++)t[l].value="";i[0].checked=!1}}}),wp.ccf.views.FieldConditional=t.View.extend({template:wp.ccf.utils.template("ccf-field-conditional-template"),className:"conditional",events:{"click .add":"triggerAdd","click .delete":"triggerDelete",saveConditional:"saveConditional"},initialize:function(e){this.field=e.field,this.fieldCollection=e.fieldCollection},destroy:function(){wp.ccf.dispatcher.off("mainViewChange",this.saveConditional),this.unbind()},saveConditional:function(){if(""!==this.el.innerHTML){var e=this.el.querySelectorAll(".conditional-field")[0].value,t=this.el.querySelectorAll(".conditional-value")[0].value,i=this.el.querySelectorAll(".conditional-compare")[0].value;return this.model.set("field",e),this.model.set("value",t),this.model.set("compare",i),this}},updateFields:function(){var e=this.el.querySelectorAll(".conditional-field")[0];e.innerHTML="",e.disabled=!1;var t,i=0,s=this.model.get("field");this.fieldCollection.length>=1&&(t=document.createElement("option"),t.innerHTML=l.chooseFormField,t.value="",e.appendChild(t),this.fieldCollection.each(function(l){if(this.field.get("slug")!==l.get("slug")){var o=l.get("type");"address"!==o&&"checkboxes"!==o&&"date"!==o&&"name"!==o&&"file"!==o&&"recaptcha"!==o&&"simple-captcha"!==o&&"section-header"!==o&&"html"!==o&&(t=document.createElement("option"),t.innerHTML=l.get("slug"),t.value=l.get("slug"),l.get("slug")===s&&(t.selected=!0),e.appendChild(t),i++)}},this)),0===i&&(e.innerHTML="",t=document.createElement("option"),t.innerHTML=l.noAvailableFields,t.value="",e.appendChild(t),e.disabled=!0)},render:function(){var e={};return this.model&&(e.conditional=this.model.toJSON()),this.el.innerHTML=this.template(e),wp.ccf.dispatcher.on("mainViewChange",this.saveConditional,this),this.listenTo(this.fieldCollection,"add",this.updateFields,this),this.listenTo(this.fieldCollection,"remove",this.updateFields,this),this.updateFields(),this},triggerAdd:function(){this.field.get("conditionals").add(new wp.ccf.models.FieldConditional)},triggerDelete:function(){var e=this.field.get("conditionals");if(e.length>1)e.remove(this.model),this.destroy(),this.remove();else{var t=this.el.querySelectorAll(".conditional-value")[0],i=this.el.querySelectorAll(".conditional-field")[0];t.value="";for(var l=0;i.childNodes.length>l;l++)i.childNodes[l].selected=!1}}}),wp.ccf.views.EmptyFormNotificationTableRow=wp.ccf.views.EmptyFormNotificationTableRow||t.View.extend({tagName:"tr",template:wp.ccf.utils.template("ccf-empty-form-notification-row-template"),events:{"click .add":"triggerAdd"},initialize:function(e){this.form=e.form},destroy:function(){this.unbind()},render:function(){return this.$el.html(this.template()),this},triggerAdd:function(){var e=this.form.get("notifications");this.destroy(),e.add(new wp.ccf.models.FormNotification)}}),wp.ccf.views.EmptyFormTableRow=wp.ccf.views.EmptyFormTableRow||t.View.extend({tagName:"tr",template:wp.ccf.utils.template("ccf-empty-form-table-row-template"),render:function(){return this.$el.html(this.template()),this}}),wp.ccf.views.FormNotificationAddress=t.View.extend({template:wp.ccf.utils.template("ccf-form-notification-address-template"),className:"address",events:{"click .add":"triggerAdd","click .delete":"triggerDelete","blur input":"save","change select":"save"},initialize:function(e){this.notification=e.notification,this.parent=e.parent,this.form=e.form},destroy:function(){this.unbind()},save:function(){if(""!==this.el.innerHTML){var e=this.el.querySelectorAll(".form-notification-address-type")[0].value,t=this.el.querySelectorAll(".form-notification-address-email"),i=this.el.querySelectorAll(".form-notification-address-field"),l=this.model.get("type");return t.length&&this.model.set("email",t[0].value),i.length&&this.model.set("field",i[0].value),this.model.set("type",e),l!==e&&this.render(),this}},updateFromFieldField:function(){if("edit"===this.parent.context&&"field"===this.model.get("type")){var e=this.el.querySelectorAll(".form-notification-address-field")[0];e.innerHTML="",e.disabled=!1;var t,i=this.form.get("fields"),s=0,o=this.model.get("field");i.length>=1&&i.each(function(i){("email"===i.get("type")||"dropdown"===i.get("type")||"radio"===i.get("type")||"single-line-text"===i.get("type"))&&(t=document.createElement("option"),t.innerHTML=i.get("slug"),t.value=i.get("slug"),i.get("slug")===o&&(t.selected=!0),e.appendChild(t),s++)}),0===s&&(t=document.createElement("option"),t.innerHTML=l.noApplicableFields,t.value="",e.appendChild(t),e.disabled=!0)}},render:function(){var e={};this.model&&(e.address=this.model.toJSON()),this.el.innerHTML=this.template(e);var t=this.form.get("fields");return this.listenTo(t,"add",this.updateFromFieldField,this),this.listenTo(t,"remove",this.updateFromFieldField,this),"field"===this.model.get("type")&&this.updateFromFieldField(),this},triggerAdd:function(){this.notification.get("addresses").add(new wp.ccf.models.FormNotificationAddress)},triggerDelete:function(){var e=this.notification.get("addresses");e.length>1?this.parent.deleteAddress(this):(this.model.clear().set(wp.ccf.models.FormNotificationAddress.prototype.defaults),this.destroy(),this.render())}}),wp.ccf.views.ExistingFormNotificationRow=t.View.extend({template:wp.ccf.utils.template("ccf-existing-form-notification-table-row-template"),tagName:"tr",events:{"change select.form-email-notification-from-type":"toggleNotificationFields","change select.form-email-notification-from-name-type":"toggleNotificationFields","change select.form-email-notification-subject-type":"toggleNotificationFields","click .close-notification":"changeContext","click .edit-notification":"changeContext","click .delete-notification":"triggerDelete","blur input":"save","change select":"save"},addressViews:[],initialize:function(e){this.form=e.form,this.addressViews=[],this.parent=e.parent,this.context=e.context!==void 0?e.context:"view";var t=this.model.get("addresses");this.listenTo(t,"add",this.addAddress)},deleteAddress:function(e){i.each(this.addressViews,function(t){if(e.cid===t.cid){var l=i.indexOf(this.addressViews,t);this.model.get("addresses").remove(e.model),this.addressViews[l].remove(),this.addressViews.splice(l,1)}},this)},addAddress:function(e){var t=this.el.querySelectorAll(".addresses")[0],i=new wp.ccf.views.FormNotificationAddress({model:e,parent:this,notification:this.model,form:this.form});this.addressViews.push(i),t.appendChild(i.render().el)},destroy:function(){this.unbind()},changeContext:function(e,t){"edit"===this.context&&this.save(),t?this.context=t:("view"===this.context&&this.parent.closeAllNotifications(),this.context="edit"===this.context?"view":"edit"),this.destroy(),this.render()},updateFieldVariables:function(){if("edit"===this.context){var e,t=this.el.querySelectorAll(".field-variables")[0],i="",l=this.form.get("fields");l.each(function(t){e=t.get("type"),"html"!==e&&"section-header"!==e&&"recaptcha"!==e&&"simple-captcha"!==e&&(i+="["+t.get("slug")+"] ")}),t.innerText=i}},updateFromFieldField:function(){if("edit"===this.context){var e=this.el.querySelectorAll(".form-email-notification-from-field")[0];e.innerHTML="",e.disabled=!1;var t=this.el.querySelectorAll(".form-email-notification-subject-field")[0];t.innerHTML="",t.disabled=!1;var i=this.el.querySelectorAll(".form-email-notification-from-name-field")[0];i.innerHTML="",i.disabled=!1;var s,o=this.form.get("fields"),n=0,c=0,r=0,a=this.model.get("emailNotificationFromField"),d=this.model.get("emailNotificationSubjectField"),u=this.model.get("emailNotificationFromNameField");o.length>=1&&o.each(function(l){("email"===l.get("type")||"dropdown"===l.get("type")||"radio"===l.get("type")||"single-line-text"===l.get("type"))&&(s=document.createElement("option"),s.innerHTML=l.get("slug"),s.value=l.get("slug"),l.get("slug")===a&&(s.selected=!0),e.appendChild(s),n++),("name"===l.get("type")||"single-line-text"===l.get("type")||"radio"===l.get("type")||"dropdown"===l.get("type"))&&(s=document.createElement("option"),s.innerHTML=l.get("slug"),s.value=l.get("slug"),l.get("slug")===u&&(s.selected=!0),i.appendChild(s),c++),("single-line-text"===l.get("type")||"radio"===l.get("type")||"dropdown"===l.get("type"))&&(s=document.createElement("option"),s.innerHTML=l.get("slug"),s.value=l.get("slug"),l.get("slug")===d&&(s.selected=!0),t.appendChild(s),r++)}),0===n&&(s=document.createElement("option"),s.innerHTML=l.noEmailFields,s.value="",e.appendChild(s),e.disabled=!0),0===c&&(s=document.createElement("option"),s.innerHTML=l.noNameFields,s.value="",i.appendChild(s),i.disabled=!0),0===r&&(s=document.createElement("option"),s.innerHTML=l.noApplicableFields,s.value="",t.appendChild(s),t.disabled=!0)}},toggleNotificationFields:function(){var e=this.el.querySelectorAll(".email-notification-from-address")[0],t=this.el.querySelectorAll(".email-notification-from-field")[0],i=this.el.querySelectorAll(".form-email-notification-from-type")[0],l=this.el.querySelectorAll(".email-notification-subject")[0],s=this.el.querySelectorAll(".email-notification-subject-field")[0],o=this.el.querySelectorAll(".form-email-notification-subject-type")[0],n=this.el.querySelectorAll(".email-notification-from-name")[0],c=this.el.querySelectorAll(".email-notification-from-name-field")[0],r=this.el.querySelectorAll(".form-email-notification-from-name-type")[0];e.style.display="none",t.style.display="none","custom"===i.value?e.style.display="block":"field"===i.value&&(t.style.display="block"),l.style.display="none",s.style.display="none","custom"===o.value?l.style.display="block":"field"===o.value&&(s.style.display="block"),n.style.display="none",c.style.display="none","custom"===r.value?n.style.display="block":"field"===r.value&&(c.style.display="block")},save:function(){if(""!==this.el.innerHTML&&"edit"===this.context){var e=this.el.querySelectorAll(".form-email-notification-title")[0].value;this.model.set("title",e);var t=this.el.querySelectorAll(".form-email-notification-content")[0].value;this.model.set("content",t);var i=this.el.querySelectorAll(".form-email-notification-active")[0].value;this.model.set("active","1"===i?!0:!1);var l=this.el.querySelectorAll(".form-email-notification-from-type")[0].value;this.model.set("fromType",l);var s=this.el.querySelectorAll(".form-email-notification-from-address")[0].value;this.model.set("fromAddress",s);var o=this.el.querySelectorAll(".form-email-notification-from-field")[0].value;this.model.set("fromField",o);var n=this.el.querySelectorAll(".form-email-notification-from-name-type")[0].value;this.model.set("fromNameType",n);var c=this.el.querySelectorAll(".form-email-notification-from-name")[0].value;this.model.set("fromName",c);var r=this.el.querySelectorAll(".form-email-notification-from-name-field")[0].value;this.model.set("fromNameField",r);var a=this.el.querySelectorAll(".form-email-notification-subject-type")[0].value;this.model.set("subjectType",a);var d=this.el.querySelectorAll(".form-email-notification-subject")[0].value;this.model.set("subject",d);var u=this.el.querySelectorAll(".form-email-notification-subject-field")[0].value;this.model.set("subjectField",u);for(var f=0;this.addressViews.length>f;f++)this.addressViews[f].save();return this}},render:function(){var e={context:this.context,form:this.form.toJSON()};if(this.model&&(e.notification=this.model.toJSON()),this.el.innerHTML=this.template(e),"edit"===this.context){this.toggleNotificationFields(),this.updateFromFieldField(),this.updateFieldVariables();var t=this.el.querySelectorAll(".addresses")[0],i=this.model.get("addresses");if(i.length>=1)i.each(function(e){var i=new wp.ccf.views.FormNotificationAddress({model:e,parent:this,notification:this.model,form:this.form}).render();t.appendChild(i.el),this.addressViews.push(i)},this);else{var l=new wp.ccf.models.FormNotificationAddress;i.add(l)}}var s=this.form.get("fields");return this.listenTo(s,"add",this.updateFromFieldField,this),this.listenTo(s,"remove",this.updateFromFieldField,this),this.listenTo(s,"add",this.updateFieldVariables,this),this.listenTo(s,"remove",this.updateFieldVariables,this),this},triggerDelete:function(){this.parent.deleteNotification(this)}}),wp.ccf.views.FieldBase=wp.ccf.views.FieldBase||t.View.extend({events:{"blur input":"saveField","blur input.field-slug":"checkSlug","blur textarea":"saveField","change select":"saveField",'change input[type="checkbox"]':"saveField"},initialize:function(){var e=this.model.get("conditionals");this.listenTo(e,"add",this.addConditional)
2
+ },addConditional:function(e){var t=new wp.ccf.views.FieldConditional({model:e,field:this.model,fieldCollection:this.collection}).render(),i=this.el.querySelectorAll(".conditionals")[0];i.appendChild(t.el)},checkSlug:function(){var e=this.el.querySelectorAll(".field-slug");if(e.length>0){var t=e[0],i=!1;t.parentNode.className=t.value&&!t.value.match(/^[a-zA-Z0-9\-_]+$/)?t.parentNode.className.replace(/ field-error/i,"")+" field-error":t.parentNode.className.replace(/ field-error/i,""),this.collection.length>0&&""!==t.value?(this.collection.each(function(e){e!==this.model&&t.value===e.get("slug")&&(i=!0)},this),t.parentNode.className=i?t.parentNode.className.replace(/ field-duplicate-slug/i,"")+" field-duplicate-slug":t.parentNode.className.replace(/ field-duplicate-slug/i,"")):t.parentNode.className=t.parentNode.className.replace(/ field-duplicate-slug/i,"")}},destroy:function(){this.unbind()},saveField:function(){var t=this.el.querySelectorAll(".conditionals");if(t.length){var l=t[0].querySelectorAll(".conditional");i.each(l,function(t){e(t).trigger("saveConditional")}),this.model.set("conditionalType",this.el.querySelectorAll(".field-conditional-type")[0].value),this.model.set("conditionalFieldsRequired",this.el.querySelectorAll(".field-conditional-fields-required")[0].value);var s=this.model.get("conditionalsEnabled");this.model.set("conditionalsEnabled",1==this.el.querySelectorAll(".field-conditionals-enabled")[0].value?!0:!1),s!==this.model.get("conditionalsEnabled")&&this.render("advanced")}},render:function(e){e=e?e:"basic",this.el.innerHTML=this.template({field:this.model.toJSON(),startPanel:e}),this.checkSlug();var t=this.model.get("conditionals"),i=this.el.querySelectorAll(".conditionals");if(i.length)if(t.length>=1)t.each(function(e){var t=new wp.ccf.views.FieldConditional({model:e,field:this.model,fieldCollection:this.collection}).render();i[0].appendChild(t.el)},this);else{var l=new wp.ccf.models.FieldConditional;t.add(l)}return this}}),wp.ccf.views.Fields["single-line-text"]=wp.ccf.views.Fields["single-line-text"]||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-single-line-text-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("value",this.el.querySelectorAll(".field-value")[0].value),this.model.set("placeholder",this.el.querySelectorAll(".field-placeholder")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this.constructor.__super__.saveField.apply(this,arguments),this):void 0}}),wp.ccf.views.Fields.file=wp.ccf.views.Fields.file||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-file-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this.model.set("fileExtensions",this.el.querySelectorAll(".field-file-extensions")[0].value),this.model.set("maxFileSize",this.el.querySelectorAll(".field-max-file-size")[0].value),this.constructor.__super__.saveField.apply(this,arguments),this):void 0}}),wp.ccf.views.Fields.recaptcha=wp.ccf.views.Fields.recaptcha||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-recaptcha-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("siteKey",this.el.querySelectorAll(".field-site-key")[0].value),this.model.set("secretKey",this.el.querySelectorAll(".field-secret-key")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.constructor.__super__.saveField.apply(this,arguments),this):void 0}}),wp.ccf.views.Fields["simple-captcha"]=wp.ccf.views.Fields["simple-captcha"]||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-simple-captcha-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("placeholder",this.el.querySelectorAll(".field-placeholder")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.constructor.__super__.saveField.apply(this,arguments),this):void 0}}),wp.ccf.views.Fields["section-header"]=wp.ccf.views.Fields["section-header"]||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-section-header-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("heading",this.el.querySelectorAll(".field-heading")[0].value),this.model.set("subheading",this.el.querySelectorAll(".field-subheading")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.constructor.__super__.saveField.apply(this,arguments),this):void 0}}),wp.ccf.views.Fields.html=wp.ccf.views.Fields.html||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-html-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("html",this.el.querySelectorAll(".field-html")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.constructor.__super__.saveField.apply(this,arguments),this):void 0}}),wp.ccf.views.Fields["paragraph-text"]=wp.ccf.views.Fields["paragraph-text"]||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-paragraph-text-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("value",this.el.querySelectorAll(".field-value")[0].value),this.model.set("placeholder",this.el.querySelectorAll(".field-placeholder")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this.constructor.__super__.saveField.apply(this,arguments),this):void 0}}),wp.ccf.views.Fields.hidden=wp.ccf.views.Fields.hidden||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-hidden-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("value",this.el.querySelectorAll(".field-value")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.constructor.__super__.saveField.apply(this,arguments),this):void 0}}),wp.ccf.views.Fields.date=wp.ccf.views.Fields.date||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-date-template"),saveField:function(){if(""!==this.el.innerHTML){this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.constructor.__super__.saveField.apply(this,arguments);var e=this.el.querySelectorAll(".field-value");e.length>0&&this.model.set("value",e[0].value);var t=this.el.querySelectorAll(".field-date-format");t.length&&this.model.set("dateFormat",t[0].value);var i=this.model.get("showDate"),l=this.el.querySelectorAll(".field-show-date")[0].checked?!0:!1;this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("showDate",l);var s=this.model.get("showTime"),o=this.el.querySelectorAll(".field-show-time")[0].checked?!0:!1;return this.model.set("showTime",o),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),(o!=s||l!=i)&&this.render(),this}}}),wp.ccf.views.Fields.name=wp.ccf.views.Fields.name||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-name-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this.constructor.__super__.saveField.apply(this,arguments),this):void 0}}),wp.ccf.views.Fields.website=wp.ccf.views.Fields.website||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-website-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("value",this.el.querySelectorAll(".field-value")[0].value),this.model.set("placeholder",this.el.querySelectorAll(".field-placeholder")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this.constructor.__super__.saveField.apply(this,arguments),this):void 0}}),wp.ccf.views.Fields.phone=wp.ccf.views.Fields.phone||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-phone-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("value",this.el.querySelectorAll(".field-value")[0].value),this.model.set("placeholder",this.el.querySelectorAll(".field-placeholder")[0].value),this.model.set("phoneFormat",this.el.querySelectorAll(".field-phone-format")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this.constructor.__super__.saveField.apply(this,arguments),this):void 0}}),wp.ccf.views.Fields.address=wp.ccf.views.Fields.address||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-address-template"),saveField:function(){if(""!==this.el.innerHTML){this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value);var e=this.model.get("addressType");this.model.set("addressType",this.el.querySelectorAll(".field-address-type")[0].value);var t=this.el.querySelectorAll(".field-default-country");return t.length&&this.model.set("defaultCountry",t[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),e!==this.model.get("addressType")&&this.render(),this.constructor.__super__.saveField.apply(this,arguments),this}}}),wp.ccf.views.Fields.email=wp.ccf.views.Fields.email||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-email-template"),saveField:function(){if(""!==this.el.innerHTML){this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.constructor.__super__.saveField.apply(this,arguments);var e=this.el.querySelectorAll(".field-value");e.length&&this.model.set("value",e[0].value);var t=this.el.querySelectorAll(".field-placeholder");t.length&&this.model.set("placeholder",t[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1);var i=1==this.el.querySelectorAll(".field-email-confirmation")[0].value?!0:!1,l=this.model.get("emailConfirmation");return this.model.set("emailConfirmation",i),l!=i&&this.render(),this}}}),wp.ccf.views.ChoiceableField=wp.ccf.views.ChoiceableField||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-dropdown-template"),initialize:function(){var e=this.model.get("choices");this.listenTo(e,"add",this.addChoice)},addChoice:function(e){var t=new wp.ccf.views.FieldChoice({model:e,field:this.model}).render(),i=this.el.querySelectorAll(".repeatable-choices")[0];i.appendChild(t.el)},saveField:function(){if(""!==this.el.innerHTML){this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),wp.ccf.views.ChoiceableField.__super__.saveField.apply(this,arguments);var t=this.el.querySelectorAll(".repeatable-choices")[0].querySelectorAll(".choice");return i.each(t,function(t){e(t).trigger("saveChoice")}),this}},render:function(t){var i=this;t=t?t:"basic",i.el.innerHTML=i.template({field:i.model.toJSON(),startPanel:t}),i.checkSlug();var l=i.model.get("choices"),s=this.el.querySelectorAll(".repeatable-choices")[0];if(l.length>=1)l.each(function(e){var t=new wp.ccf.views.FieldChoice({model:e,field:i.model}).render();s.appendChild(t.el)});else{var o=new wp.ccf.models.FieldChoice;l.add(o)}s=this.el.querySelectorAll(".repeatable-choices")[0],e(s).sortable({handle:".move",axis:"y",stop:function(e,t){t.item.trigger("sorted",t.item.index())}});var n=this.model.get("conditionals"),c=this.el.querySelectorAll(".conditionals")[0];if(n.length>=1)n.each(function(e){var t=new wp.ccf.views.FieldConditional({model:e,field:this.model,fieldCollection:this.collection}).render();c.appendChild(t.el)},this);else{var r=new wp.ccf.models.FieldConditional;n.add(r)}return i}}),wp.ccf.views.Fields.dropdown=wp.ccf.views.Fields.dropdown||wp.ccf.views.ChoiceableField.extend({template:wp.ccf.utils.template("ccf-dropdown-template"),events:function(){return this.constructor.__super__.events}}),wp.ccf.views.Fields.radio=wp.ccf.views.Fields.radio||wp.ccf.views.ChoiceableField.extend({template:wp.ccf.utils.template("ccf-radio-template"),events:function(){return this.constructor.__super__.events}}),wp.ccf.views.Fields.checkboxes=wp.ccf.views.Fields.checkboxes||wp.ccf.views.ChoiceableField.extend({template:wp.ccf.utils.template("ccf-checkboxes-template"),events:function(){return this.constructor.__super__.events}}),wp.ccf.views.FieldSidebar=wp.ccf.views.FieldSidebar||t.View.extend({initialize:function(e){this.currentFieldView=null,this.form=e.form},save:function(e){this.currentFieldView&&""!==this.currentFieldView.el.innerHTML&&this.currentFieldView.saveField(),e&&e instanceof Object&&e.resolve()},fieldRemoved:function(){this.currentFieldView&&(this.form.get("fields").get(this.currentFieldView.model)||this.render())},destroy:function(){wp.ccf.dispatcher.off("saveField",this.save),wp.ccf.dispatcher.off("mainViewChange",this.save),this.unbind()},render:function(e){var t={};if(e){var i=e.get("type");this.currentFieldView&&(this.currentFieldView.saveField(),this.currentFieldView.destroy&&this.currentFieldView.destroy()),this.currentFieldView=new wp.ccf.views.Fields[i]({model:e,collection:this.form.get("fields")}),this.currentFieldView.render(),this.el.innerHTML="",this.el.appendChild(this.currentFieldView.el);var l=this.form.get("fields");this.listenTo(l,"remove",this.fieldRemoved)}else{var s=wp.ccf.utils.template("ccf-empty-field-template");this.el.innerHTML=s(t)}return wp.ccf.dispatcher.on("saveField",this.save,this),wp.ccf.dispatcher.on("mainViewChange",this.save,this),this}}),wp.ccf.views.FieldRowPlaceholder=wp.ccf.views.FieldRowPlaceholder||t.View.extend({template:wp.ccf.utils.template("ccf-field-row-template"),tagName:"div",className:"field",initialize:function(e){this.type=e.type},render:function(){return this.el.innerHTML=this.template({label:l.allLabels[this.type]}),this.el.setAttribute("data-field-type",this.type),this.el.className+=" "+this.type,this}}),wp.ccf.views.FieldRow=wp.ccf.views.FieldRow||t.View.extend({template:wp.ccf.utils.template("ccf-field-row-template"),tagName:"div",className:"field",events:{"click .delete":"triggerDelete","click h4":"triggerEdit",sorted:"triggerUpdateSort"},initialize:function(e){i.bindAll(this,"triggerDelete"),this.form=e.form,this.listenTo(this.model,"change",this.handleChange,this),this.listenTo(this.model,"requirementsNotMet",this.requirementsNotMet,this),this.listenTo(this.model,"requirementsMet",this.requirementsMet,this),this.listenTo(this.model,"duplicateSlug",this.duplicateSlug,this),this.model.attributes.choices&&this.listenTo(this.model.attributes.choices,"change",this.handleChange,this)},duplicateSlug:function(){this.requirementsMet(),this.el.className+=" field-duplicate-slug"},requirementsNotMet:function(){this.requirementsMet(),this.el.className+=" field-incomplete"},requirementsMet:function(){this.el.className=this.el.className.replace(/(field-incomplete|field-duplicate-slug)/i,"")},triggerUpdateSort:function(e,t){this.form.get("fields").remove(this.model),this.form.get("fields").add(this.model,{at:t})},handleChange:function(){this.render()},triggerDelete:function(e){e.stopPropagation(),this.form.get("fields").remove(this.model),this.undelegateEvents(),this.remove()},triggerEdit:function(){var e=this.el.parentNode.querySelectorAll(".ccf-editing");i.each(e,function(e){e.className=e.className.replace(/ccf-editing/i,"")}),this.el.className=this.el.className.replace(/ccf-editing/i,"")+" ccf-editing",wp.ccf.dispatcher.trigger("openEditField",this.model)},render:function(e){this.el.innerHTML=this.template({label:l.allLabels[this.model.get("type")]}),this.el.setAttribute("data-field-type",this.model.get("type"));var t=RegExp(" "+this.model.get("type"),"i");this.el.className=this.el.className.replace(t,"")+" "+this.model.get("type"),e&&(this.el.className=this.el.className.replace(/ instantiated/i,"")+" instantiated");var i=document.getElementById("ccf-"+this.model.get("type")+"-preview-template");if(i){var s=this.el.querySelectorAll(".preview")[0];s.style.display="block",s.innerHTML=wp.ccf.utils.template("ccf-"+this.model.get("type")+"-preview-template")({field:this.model.toJSON()})}return this}}),wp.ccf.views.PostFieldMapping=t.View.extend({template:wp.ccf.utils.template("ccf-post-field-mapping"),className:"field-mapping",events:{"click .add":"triggerAdd","click .delete":"triggerDelete","blur input":"save","change select":"save"},initialize:function(e){this.parent=e.parent,this.form=e.form},destroy:function(){this.unbind()},save:function(){if(""!==this.el.innerHTML){var e=this.el.querySelectorAll(".field-form-field")[0].value,t=this.el.querySelectorAll(".field-post-field")[0].value,i=this.el.querySelectorAll(".field-custom-field-key"),l=this.model.get("postField");return this.model.set("formField",e),this.model.set("postField",t),i.length&&this.model.set("customFieldKey",i[0].value),l!==t&&this.render(),this}},updateFormFieldField:function(){var e=this.el.querySelectorAll(".field-form-field")[0];e.innerHTML="",e.disabled=!1;var t,i=this.form.get("fields"),s=0,o=this.model.get("formField");i.length>=1&&(t=document.createElement("option"),t.innerHTML=l.chooseFormField,t.value="",e.appendChild(t),i.each(function(i){t=document.createElement("option"),t.innerHTML=i.get("slug"),t.value=i.get("slug"),i.get("slug")===o&&(t.selected=!0),e.appendChild(t),s++})),0===s&&(t=document.createElement("option"),t.innerHTML=l.noAvailableFields,t.value="",e.appendChild(t),e.disabled=!0)},updatePostFields:function(){var e,t=this.el.querySelectorAll(".field-post-field")[0];e=document.createElement("option"),e.value="",e.innerText=l.choosePostField,t.appendChild(e);var s=this.form.get("postFieldMappings"),o=[];s.each(function(e){e!==this.model&&o.push(e.get("postField"))},this),i.each(l.postFields.single,function(i,l){-1===o.indexOf(l)&&(e=document.createElement("option"),e.value=l,e.innerText=i,this.model.get("postField")===l&&(e.selected=!0),t.appendChild(e))},this),i.each(l.postFields.repeatable,function(i,l){e=document.createElement("option"),e.value=l,e.innerText=i,this.model.get("postField")===l&&(e.selected=!0),t.appendChild(e)},this)},render:function(){var e={};this.model&&(e.mapping=this.model.toJSON()),this.el.innerHTML=this.template(e);var t=this.form.get("fields");return this.listenTo(t,"add",this.updateFormFieldField,this),this.listenTo(t,"remove",this.updateFormFieldField,this),this.updateFormFieldField(),this.updatePostFields(),this},triggerAdd:function(){this.form.get("postFieldMappings").add(new wp.ccf.models.PostFieldMapping)},triggerDelete:function(){var e=this.form.get("postFieldMappings");e.length>1?this.parent.deletePostFieldMapping(this):(this.model.clear().set(wp.ccf.models.PostFieldMapping.prototype.defaults),this.destroy(),this.render())}}),wp.ccf.views.FormSettings=wp.ccf.views.FormSettings||t.View.extend({template:wp.ccf.utils.template("ccf-form-settings-template"),events:{"blur input":"save","change select":"save","change select.form-completion-action-type":"toggleCompletionFields","change select.form-pause":"togglePauseFields","change select.form-post-creation":"togglePostCreationFields","click .add-notification":"triggerAddNotification"},notificationViews:[],mappingViews:[],initialize:function(e){this.model=e.form,this.notificationViews=[],this.mappingViews=[];var t=this.model.get("notifications");this.listenTo(t,"add",this.addNotification);var i=this.model.get("postFieldMappings");this.listenTo(i,"add",this.addPostFieldMapping)},deletePostFieldMapping:function(e){i.each(this.mappingViews,function(t){if(e.cid===t.cid){var l=i.indexOf(this.mappingViews,t);this.model.get("postFieldMappings").remove(e.model),this.mappingViews[l].remove(),this.mappingViews.splice(l,1)}},this)},addPostFieldMapping:function(e){var t=this.el.querySelectorAll(".post-creation-mapping")[0],i=new wp.ccf.views.PostFieldMapping({model:e,parent:this,form:this.model});this.mappingViews.push(i),t.appendChild(i.render().el)},triggerAddNotification:function(){var e=this.model.get("notifications");e.add(new wp.ccf.models.FormNotification)},closeAllNotifications:function(){i.each(this.notificationViews,function(e){e.changeContext(null,"view")})},addNotification:function(e){var t=new wp.ccf.views.ExistingFormNotificationRow({model:e,form:this.model,context:"edit",parent:this}).render(),l=this.el.querySelectorAll(".ccf-form-notifications .rows")[0];l.querySelectorAll(".no-notifications").length>0&&l.removeChild(l.firstChild),i.each(this.notificationViews,function(e){e.changeContext(null,"view")}),this.notificationViews.push(t),l.appendChild(t.el)},toggleCompletionFields:function(){var e=this.el.querySelectorAll(".form-completion-action-type")[0].value,t=this.el.querySelectorAll(".completion-message")[0],i=this.el.querySelectorAll(".completion-redirect-url")[0];"text"===e?(t.style.display="block",i.style.display="none"):(t.style.display="none",i.style.display="block")},togglePauseFields:function(){var e=this.el.querySelectorAll(".form-pause")[0].value,t=this.el.querySelectorAll(".pause-message")[0];t.style.display=parseInt(e)?"block":"none"},togglePostCreationFields:function(){var t=this.el.querySelectorAll(".form-post-creation")[0].value,i=e(this.el.querySelectorAll(".post-creation-mapping-field"));parseInt(t)?i.show():i.hide()},save:function(){if(""!==this.el.innerHTML){var e=this.el.querySelectorAll(".form-title")[0].value;this.model.set("title",{raw:e});var t=this.el.querySelectorAll(".form-description")[0].value;this.model.set("description",t);var i=this.el.querySelectorAll(".form-button-text")[0].value;this.model.set("buttonText",i);var l=this.el.querySelectorAll(".form-button-class")[0].value;this.model.set("buttonClass",l);var s=this.el.querySelectorAll(".form-pause")[0].value;this.model.set("pause",parseInt(s)?!0:!1);var o=this.el.querySelectorAll(".form-require-logged-in")[0].value;this.model.set("requireLoggedIn",parseInt(o)?!0:!1);var n=this.el.querySelectorAll(".form-post-creation")[0].value;this.model.set("postCreation",parseInt(n)?!0:!1);var c=this.el.querySelectorAll(".form-post-creation-type")[0].value;this.model.set("postCreationType",c);var r=this.el.querySelectorAll(".form-post-creation-status")[0].value;this.model.set("postCreationStatus",r);var a=this.el.querySelectorAll(".form-pause-message")[0].value;this.model.set("pauseMessage",a);var d=this.el.querySelectorAll(".form-completion-message")[0].value;this.model.set("completionMessage",d);var u=this.el.querySelectorAll(".form-completion-redirect-url")[0].value;this.model.set("completionRedirectUrl",u);var f=this.el.querySelectorAll(".form-completion-action-type")[0].value;this.model.set("completionActionType",f);var p=this.el.querySelectorAll(".form-theme")[0].value;this.model.set("theme",p)}},fullSave:function(e){""!==this.el.innerHTML&&(this.save(),i.each(this.notificationViews,function(e){e.save()}),i.each(this.mappingViews,function(e){e.save()}),e!==void 0&&e.promise!==void 0&&e.resolve())},destroy:function(){wp.ccf.dispatcher.off("saveFormSettings",this.fullSave),wp.ccf.dispatcher.off("mainViewChange",this.fullSave)},deleteNotification:function(e){if(i.each(this.notificationViews,function(t){if(e.cid===t.cid){var l=i.indexOf(this.notificationViews,t);this.model.get("notifications").remove(e.model),this.notificationViews[l].remove(),this.notificationViews.splice(l,1)}},this),!this.notificationViews.length){var t=this.el.querySelectorAll(".ccf-form-notifications .rows")[0];t.appendChild(new wp.ccf.views.EmptyFormNotificationTableRow({form:this.model}).render().el)}},render:function(){var e={form:this.model.toJSON()};this.model.get("fields");var t=this.model.get("notifications");this.el.innerHTML=this.template(e),this.toggleCompletionFields(),this.togglePostCreationFields(),this.togglePauseFields();var i=this.el.querySelectorAll(".ccf-form-notifications .rows")[0],l=document.createElement("tbody");l.className="rows",t.length>=1?t.each(function(e){var t=new wp.ccf.views.ExistingFormNotificationRow({model:e,form:this.model,parent:this}).render();l.appendChild(t.el),this.notificationViews.push(t)},this):l.appendChild(new wp.ccf.views.EmptyFormNotificationTableRow({form:this.model}).render().el),i.parentNode.replaceChild(l,i);var s=this.el.querySelectorAll(".post-creation-mapping")[0],o=this.model.get("postFieldMappings");if(o.length>=1)o.each(function(e){var t=new wp.ccf.views.PostFieldMapping({model:e,parent:this,form:this.model}).render();s.appendChild(t.el),this.mappingViews.push(t)},this);else{var n=new wp.ccf.models.PostFieldMapping;o.add(n)}return wp.ccf.dispatcher.on("mainViewChange",this.fullSave,this),wp.ccf.dispatcher.on("saveFormSettings",this.fullSave,this),this}}),wp.ccf.views.FormPane=wp.ccf.views.FormPane||t.View.extend(i.defaults({template:wp.ccf.utils.template("ccf-form-pane-template"),subViews:{"field-sidebar":wp.ccf.views.FieldSidebar,"form-settings":wp.ccf.views.FormSettings},events:{"click .save-button":"sync","click .signup-button":"signup","click .accordion-heading":"accordionClick","click .form-settings-heading":"accordionClick","click .insert-form-button":"insertForm"},initialize:function(){wp.ccf.dispatcher.on("openEditField",this.openEditField,this)},insertForm:function(){wp.ccf.utils.insertFormShortcode(this.model),wp.ccf.toggle()},signup:function(){var t=this.el.querySelectorAll(".email-signup-field")[0].value,i=this.el.querySelectorAll(".bottom .left.signup")[0];i.className="left signup",t?e.ajax({url:"//taylorlovett.us8.list-manage.com/subscribe/post-json?u=66118f9a5b0ab0414e83f043a&amp;id=b4ed816a24&c=?",method:"post",dataType:"jsonp",data:{EMAIL:t}}).done(function(){i.className="left signup signup-success"}):i.className="left signup signup-error"},accordionClick:function(t){var l=e(t.currentTarget).parents(".accordion-container")[0],s=l.querySelectorAll(".accordion-section");t.currentTarget.parentNode.className.match(/expanded/i)?t.currentTarget.parentNode.className=t.currentTarget.parentNode.className.replace(/expanded/i,""):t.currentTarget.parentNode.className+=" expanded",i.each(s,function(e){e!=t.currentTarget.parentNode&&e.className.match(/expanded/i)&&(e.className=e.className.replace(/expanded/i,""))}),t.currentTarget.className.match(/form-settings-heading/i)?this.el.className.match(/show-form-settings/i)?this.el.className=this.el.className.replace(/show-form-settings/i,""):this.el.className+=" show-form-settings":this.el.className=this.el.className.replace(/show-form-settings/i,"")},openEditField:function(e){this.renderedSubViews["field-sidebar"].render(e).el.style.display="block"},disable:function(){this.el.querySelectorAll(".save-button")[0].setAttribute("disabled","disabled"),this.el.querySelectorAll(".disabled-overlay")[0].style.display="block"},enable:function(){this.el.querySelectorAll(".save-button")[0].removeAttribute("disabled"),this.el.querySelectorAll(".disabled-overlay")[0].style.display="none"},sync:function(){var t=this,i=e(this.el.querySelectorAll(".spinner")[0]);i.fadeIn(),t.disable();var s=e.Deferred(),o=e.Deferred();wp.ccf.dispatcher.trigger("saveFormSettings",s),wp.ccf.dispatcher.trigger("saveField",o),e.when(s,o).then(function(){var e=t.model.get("fields"),s=!0,o={};e.each(function(e){var t=e.get("slug");e.hasRequiredAttributes()?t&&!t.match(/^[a-zA-Z0-9\-_]+$/)?(s=!1,e.trigger("requirementsNotMet")):o[e.get("slug")]!==void 0?(s=!1,e.trigger("duplicateSlug"),o[e.get("slug")].trigger("duplicateSlug")):e.trigger("requirementsMet"):(s=!1,e.trigger("requirementsNotMet")),e.get("slug")&&(o[e.get("slug")]=e)}),s?t.model.save({},{context:"edit"}).error(function(){var e="sync";wp.ccf.errorModal.render(e).show()}).done(function(){l.single&&!l.postId&&(window.location=l.adminUrl+"post.php?post="+t.model.get("id")+"&action=edit#ccf-form/"+t.model.get("id"))}).complete(function(){i.fadeOut(),t.enable(),wp.ccf.dispatcher.trigger("saveFormComplete",t.model)}):(t.enable(),i.fadeOut())})},enableDisableInsert:function(){var e=this.el.querySelectorAll(".insert-form-button")[0];this.model.get("id")?e.removeAttribute("disabled"):e.setAttribute("disabled","disabled")},getNextFieldOrd:function(){var e=this.model.get("fields"),t=e.length+1;return e.each(function(e){var i=e.get("slug"),l=/\-([0-9]+)$/g,s=l.exec(i);if(s&&s[1]){var o=parseInt(s[1]);o>=t&&(t=o+1)}}),t},render:function(t){var s=this;s.model=t?t:new wp.ccf.models.Form,this.listenTo(s.model,"change",this.enableDisableInsert,this);var o={labels:l.fieldLabels,form:s.model.toJSON()};window.form=s.model,s.el.innerHTML=this.template(o),s.el.className=s.el.className.replace(/show-form-settings/i,"");var n=s.el.querySelectorAll(".fields")[0];i.each(l.fieldLabels,function(e,t){n.appendChild(new wp.ccf.views.FieldRowPlaceholder({type:t}).render().el)});var c=s.el.querySelectorAll(".structure-fields")[0];i.each(l.structureFieldLabels,function(e,t){c.appendChild(new wp.ccf.views.FieldRowPlaceholder({type:t}).render().el)});var r=s.el.querySelectorAll(".special-fields")[0];i.each(l.specialFieldLabels,function(e,t){r.appendChild(new wp.ccf.views.FieldRowPlaceholder({type:t}).render().el)
3
+ });var a=s.model.get("fields"),d=s.el.querySelectorAll(".form-content")[0],u=e(d);return e(s.el.querySelectorAll(".left-sidebar")[0].querySelectorAll(".field")).draggable({cursor:"move",distance:2,zIndex:160001,scroll:!1,containment:"document",appendTo:".ccf-main-modal",snap:!1,connectToSortable:".form-content",helper:function(t){var i=e(t.currentTarget),l=e('<div class="field" data-field-type="'+i.attr("data-field-type")+'"><h4>'+i.find(".label").html()+"</h4></div>");return l.css({width:u.width(),opacity:".75",height:i.height()})}}),a.length>=1&&(d.innerHTML="",a.each(function(e){var t=new wp.ccf.views.FieldRow({model:e,form:s.model}).render(!0).el;d.appendChild(t)})),e(d).sortable({axis:"y",distance:2,handle:"h4",placeholder:"field-placeholder",stop:function(e,t){if(!t.item.hasClass("instantiated")){var i=t.item.attr("data-field-type"),l={};wp.ccf.models.Fields[i].prototype.defaults().slug!==void 0&&(l.slug=i+"-"+s.getNextFieldOrd());var o=new wp.ccf.models.Fields[i](l),n=s.model.get("fields");n.add(o),new wp.ccf.views.FieldRow({model:o,el:t.item,form:s.model}).render(!0),t.item.attr("style","")}t.item.trigger("sorted",t.item.index())}}),s.initRenderSubViews(!1,!0,{form:s.model}),s.enableDisableInsert(),s}},wp.ccf.mixins.subViewable)),wp.ccf.views.ExistingFormTableRow=wp.ccf.views.ExistingFormTableRow||t.View.extend({tagName:"tr",template:wp.ccf.utils.template("ccf-existing-form-table-row-template"),events:{"click .edit":"triggerMainViewChange","click .delete":"triggerDelete","click .duplicate":"triggerDuplicate","click .insert-form-button":"insertForm"},initialize:function(e){this.parent=e.parent},insertForm:function(){wp.ccf.utils.insertFormShortcode(this.model),wp.ccf.toggle()},triggerMainViewChange:function(){wp.ccf.switchToForm(this.model)},triggerDelete:function(){var e,t=this,i=t.parent.collection.state.currentPage;t.model.destroy().done(function(){e=i,e===t.parent.collection.state.totalPages&&e-1===(t.parent.collection.state.totalObjects-1)/l.postsPerPage&&e--,t.parent.showPage(e).done(function(){t.parent.renderPagination()})})},triggerDuplicate:function(){var e=this,t=e.parent.collection.state.currentPage;e.model.clone().set("title",{raw:e.model.get("title").raw+" (Duplicate)"}).unset("id").save().done(function(){e.parent.showPage(t).done(function(){e.parent.renderPagination()})})},render:function(){return this.$el.html(this.template({form:this.model.toJSON(),utils:{getPrettyPostDate:wp.ccf.utils.getPrettyPostDate}})),this}}),wp.ccf.views.EmptyFormTableRow=wp.ccf.views.EmptyFormTableRow||t.View.extend({tagName:"tr",template:wp.ccf.utils.template("ccf-empty-form-table-row-template"),render:function(){return this.$el.html(this.template()),this}}),wp.ccf.views.ExistingFormTable=wp.ccf.views.ExistingFormTable||t.View.extend({template:wp.ccf.utils.template("ccf-existing-form-table-template"),initialize:function(){this.parent=arguments.parent,this.collection=new wp.ccf.collections.Forms,wp.ccf.dispatcher.on("changeFormTablePage",this.showPage,this),wp.ccf.dispatcher.on("saveFormComplete",this.render,this)},showPage:function(e){var t=this,i=this.collection.fetch({data:{page:e}});return i.error(function(){var e="sync";wp.ccf.errorModal.render(e).show()}),i.done(function(){var e=t.el.querySelectorAll(".rows")[0],i=document.createElement("tbody");i.className="rows",t.collection.length>=1?t.collection.each(function(e){var l=new wp.ccf.views.ExistingFormTableRow({model:e,parent:t}).render();i.appendChild(l.el)},t):i.appendChild((new wp.ccf.views.EmptyFormTableRow).render().el),e.parentNode.replaceChild(i,e)}),i},renderPagination:function(){var e=this.el.querySelectorAll(".ccf-pagination")[0];e.innerHTML="",this.collection.state.totalPages>1&&e.appendChild(new wp.ccf.views.Pagination({parent:this}).render(this.collection.state.totalPages,this.collection.state.currentPage).el)},render:function(){var e=this;return this.el.innerHTML=this.template(),this.el.querySelectorAll(".ccf-pagination")[0],this.showPage(1).done(function(){e.renderPagination()}),this}}),wp.ccf.views.ExistingFormPane=wp.ccf.views.ExistingFormPane||t.View.extend(i.defaults({template:wp.ccf.utils.template("ccf-existing-form-pane-template"),subViews:{"existing-form-table":wp.ccf.views.ExistingFormTable},render:function(){return this.rendered?this:(this.rendered=!0,this.el.innerHTML=this.template(),this.initRenderSubViews(!0),this)}},wp.ccf.mixins.subViewable)),wp.ccf.views.MainModal=wp.ccf.views.MainModal||t.View.extend(i.defaults({tagName:"div",className:"ccf-main-modal",template:wp.ccf.utils.template("ccf-main-modal-template"),events:{"click .close-icon":"hide","click .main-menu a":"menuClick"},subViews:{"form-pane":wp.ccf.views.FormPane},initialize:function(){l.single||(this.subViews["existing-form-pane"]=wp.ccf.views.ExistingFormPane),wp.ccf.dispatcher.on("mainViewChange",this.toggleView,this)},toggleView:function(e){this.showView(e,wp.ccf.currentForm);var t=e;"form-pane"===e&&wp.ccf.currentForm&&(t="existing-form-pane");var l=this.el.querySelectorAll(".menu-item");i.each(l,function(e){var i=e.getAttribute("data-view");e.className=i===t?e.className.replace("selected","")+" selected":e.className.replace("selected","")})},menuClick:function(e){var t=e.currentTarget.getAttribute("data-view");"form-pane"===t&&(wp.ccf.currentForm=null),wp.ccf.dispatcher.trigger("mainViewChange",t),e.preventDefault()},render:function(e){return e=e||!1,this.overlay(),this.el.innerHTML=this.template({single:e}),this.initRenderSubViews(),this.showView("form-pane",wp.ccf.currentForm,!0),this},overlay:function(){return this.overlayEl===void 0&&(this.overlayEl=document.createElement("div"),this.overlayEl.className="ccf-main-modal-overlay",document.body.appendChild(this.overlayEl)),this.overlayEl},remove:function(){return document.body.removeChild(this.overlay()),this},show:function(){e(this.overlay()).show(),this.$el.show()},hide:function(){e(this.overlay()).hide(),this.$el.hide()}},wp.ccf.mixins.subViewable)),wp.ccf.views.SubmissionRow=wp.ccf.views.SubmissionRow||t.View.extend({tagName:"tr",template:wp.ccf.utils.template("ccf-submission-row-template"),events:{"click .view":"view","click .delete":"delete"},initialize:function(e){this.parent=e.parent},"delete":function(){var e,t=this,i=t.parent.collection.state.currentPage;t.model.destroy().done(function(){e=i,e===t.parent.collection.state.totalPages&&e-1===(t.parent.collection.state.totalObjects-1)/l.postsPerPage&&e--,t.parent.showPage(e).done(function(){t.parent.renderPagination()})})},view:function(e){var t=e.currentTarget.getAttribute("data-submission-id"),i=e.currentTarget.getAttribute("data-submission-date");tb_show(l.thickboxTitle+" - "+wp.ccf.utils.getPrettyPostDate(i),"#TB_inline?height=500&amp;width=700&amp;inlineId=ccf-submission-content-"+parseInt(t),null)},render:function(){return this.$el.html(this.template({submission:this.model.toJSON(),currentColumns:this.parent.columns,columns:wp.ccf.currentForm.getFieldSlugs(!0),utils:{getPrettyPostDate:wp.ccf.utils.getPrettyPostDate,wordChop:wp.ccf.utils.wordChop,isFieldDate:wp.ccf.utils.isFieldDate,isFieldName:wp.ccf.utils.isFieldName,isFieldFile:wp.ccf.utils.isFieldFile,isFieldAddress:wp.ccf.utils.isFieldAddress,isFieldEmailConfirm:wp.ccf.utils.isFieldEmailConfirm,getPrettyFieldDate:wp.ccf.utils.getPrettyFieldDate,getPrettyFieldAddress:wp.ccf.utils.getPrettyFieldAddress,getPrettyFieldName:wp.ccf.utils.getPrettyFieldName,getPrettyFieldEmailConfirm:wp.ccf.utils.getPrettyFieldEmailConfirm}})),this}}),wp.ccf.views.SubmissionsTable=wp.ccf.views.SubmissionsTable||t.View.extend({template:wp.ccf.utils.template("ccf-submission-table-template"),events:{"click .prev:not(.disabled)":"previousPage","click .next:not(.disabled)":"nextPage","click .first:not(.disabled)":"firstPage","click .last:not(.disabled)":"lastPage"},initialize:function(){this.collection=new wp.ccf.collections.Submissions({},{formId:l.postId}),wp.ccf.dispatcher.on("submissionTableRebuild",this.render,this)},showPage:function(e){var t=this,i=this.collection.fetch({data:{page:e}});return i.error(function(){var e="sync";wp.ccf.errorModal.render(e).show()}),i.done(function(){var e=t.el.querySelectorAll(".submission-rows")[0],i=document.createElement("tbody");i.className="submission-rows",t.collection.length>=1?t.collection.each(function(e){var l=new wp.ccf.views.SubmissionRow({model:e,parent:t}).render();i.appendChild(l.el)},t):i.appendChild(new wp.ccf.views.EmptySubmissionTableRow({parent:t}).render(wp.ccf.currentForm.getFieldSlugs(!0).concat("date")).el),e.parentNode.replaceChild(i,e)}),i},renderPagination:function(){var e=this.el.querySelectorAll(".ccf-pagination")[0];e.innerHTML="",this.collection.state.totalPages>1&&e.appendChild(new wp.ccf.views.Pagination({parent:this}).render(this.collection.state.totalPages,this.collection.state.currentPage).el)},render:function(e){var t=this;return t.columns=e?e:wp.ccf.currentForm.getFieldSlugs(!0).slice(0,4).concat("date"),1>t.columns.length?t.el.innerHTML="":(t.el.innerHTML=t.template({columns:t.columns}),t.el.querySelectorAll(".ccf-pagination")[0],t.showPage(1).done(function(){t.renderPagination()})),t}}),wp.ccf.views.ErrorModal=wp.ccf.views.ErrorModal||t.View.extend({template:wp.ccf.utils.template("ccf-error-modal-template"),tagName:"div",className:"ccf-error-modal",events:{"click .close":"hide"},hide:function(){this.el.className=this.el.className.replace(" show","")},show:function(){this.el.className=this.el.className.replace(" show","")+" show"},toggle:function(){this.el.className.match(" show")?this.hide():this.show()},render:function(e){var t={messageType:""};return e&&(t.messageType=e),this.el.innerHTML=this.template(t),this}}),wp.ccf.views.Pagination=wp.ccf.views.Pagination||t.View.extend({template:wp.ccf.utils.template("ccf-pagination-template"),events:{"click .prev:not(.disabled)":"previousPage","click .next:not(.disabled)":"nextPage","click .first:not(.disabled)":"firstPage","click .last:not(.disabled)":"lastPage"},initialize:function(e){this.parent=e.parent},previousPage:function(){var e=this;e.parent.showPage(e.parent.collection.state.currentPage-1).done(function(){e.render()})},nextPage:function(){var e=this;e.parent.showPage(e.parent.collection.state.currentPage+1).done(function(){e.render()})},firstPage:function(){var e=this;e.parent.showPage(1).done(function(){e.render()})},lastPage:function(){var e=this;e.parent.showPage(e.parent.collection.state.totalPages).done(function(){e.render()})},render:function(){return this.el.innerHTML=this.template({totalPages:this.parent.collection.state.totalPages,currentPage:this.parent.collection.state.currentPage,totalObjects:this.parent.collection.state.totalObjects}),this}}),wp.ccf.views.EmptySubmissionTableRow=wp.ccf.views.EmptySubmissionTableRow||t.View.extend({tagName:"tr",template:wp.ccf.utils.template("ccf-no-submissions-row-template"),initialize:function(e){this.parent=e.parent},render:function(){return this.el.innerHTML=this.template({columns:this.parent.columns}),this}}),wp.ccf.views.SubmissionColumnController=wp.ccf.views.SubmissionColumnController||t.View.extend({template:wp.ccf.utils.template("ccf-submissions-controller-template"),events:{"click input[type=checkbox]":"triggerTableRebuild"},render:function(){this.el.innerHTML=this.template({columns:wp.ccf.currentForm.getFieldSlugs(!0).concat("date")})},triggerTableRebuild:function(){var e=[],t=document.querySelectorAll(".submission-column-checkbox");if(t.length>=1)for(var i=0;t.length>i;i++)t[i].checked&&e.push(t[i].value);wp.ccf.dispatcher.trigger("submissionTableRebuild",e)}})}(jQuery,Backbone,_,ccfSettings),function(e,t){"use strict";wp.ccf.router=wp.ccf.router||t.Router.extend({routes:{"ccf-form":"open","ccf-form/:formId":"open"},open:function(e){wp.ccf.show(e)}})}(jQuery,Backbone,_,ccfSettings),function(e,t,i,l){"use strict";wp.ccf=i.defaults(wp.ccf,{forms:new wp.ccf.collections.Forms,currentForm:null,errorModal:null,_currentFormDeferred:null,dispatcher:{},show:function(e){return this.switchToForm(e),this.instance.show(),this.instance},initErrorModal:function(){this.errorModal=(new wp.ccf.views.ErrorModal).render();var e=document.getElementsByTagName("body")[0];e.appendChild(this.errorModal.el)},switchToForm:function(e){var t=this;if(+e===parseInt(e)){var i=parseInt(e);if(e=t.forms.findWhere({id:parseInt(i)}),!e){var l;return t.forms.formsFetching[i]!==void 0?(l=t.forms.formsFetching[i],e=null):(e=new wp.ccf.models.Form({id:i}),l=e.fetch(),t.forms.formsFetching[i]=l),l.done(function(){e?(delete t.forms.formsFetching[i],t.forms.add(e)):e=t.forms.findWhere({id:i}),t.currentForm=e,wp.ccf.dispatcher.trigger("mainViewChange","form-pane")}),l}t.currentForm=e,wp.ccf.dispatcher.trigger("mainViewChange","form-pane")}else t.currentForm=e,wp.ccf.dispatcher.trigger("mainViewChange","form-pane");return!0},hide:function(){return this.instance.hide(),this.instance},toggle:function(e){return this.switchToForm(e),this.instance.$el.is(":visible")?this.instance.hide():this.instance.show(),this.instance},createSubmissionsTable:function(e){var t=document.querySelectorAll(".ccf-submission-column-controller"),i=new wp.ccf.views.SubmissionsTable({el:e});i.render(),t&&new wp.ccf.views.SubmissionColumnController({el:t}).render()},_setupMainModal:function(e){return this.instance=(new wp.ccf.views.MainModal).render(e),document.getElementsByTagName("body")[0].appendChild(this.instance.el),t.history.start(),this.instance},createManager:function(){var s=this,o=document.querySelectorAll(".ccf-open-form-manager")[0];if(!o)return!1;i.extend(this.dispatcher,t.Events),new wp.ccf.router,s.initErrorModal();var n=!1;if(l.single)if(n=!0,l.postId){var c=parseInt(l.postId);if(s.forms.formsFetching[c]===void 0){var r=new wp.ccf.models.Form({id:c}),a=r.fetch();s.forms.formsFetching[c]=a,s._currentFormDeferred=a,a.done(function(){delete s.forms.formsFetching[c],s.forms.add(r),s.currentForm=r})}else s._currentFormDeferred=s.forms.formsFetching[c],s._currentFormDeferred.done(function(){s.currentForm=s.forms.findWhere({id:c})});e.when(s._currentFormDeferred).then(function(){s._setupMainModal(!0),o.style.display="inline-block";var e=document.getElementById("ccf-submissions");if(e){var t=e.querySelectorAll(".inside")[0],i=document.createElement("div");i.className="ccf-submission-icon",i.setAttribute("data-icon","");var n=document.createElement("a");n.href="?action=edit&post="+parseInt(l.postId)+"&download_submissions=1&download_submissions_nonce="+l.downloadSubmissionsNonce,n.className="ccf-submission-icon",n.setAttribute("data-icon","");var c=document.getElementById("show-settings-link");i.onclick=function(){c.click()},e.insertBefore(i,e.firstChild.nextSibling.nextSibling),e.insertBefore(n,e.firstChild.nextSibling.nextSibling),wp.ccf.createSubmissionsTable(t);var r=document.querySelectorAll("#major-publishing-actions .duplicate")[0],a=function(e){e=e||window.event,e.preventDefault(),s.currentForm.clone().set("title",{raw:s.currentForm.get("title").raw+" (duplicate)"}).unset("id").save().done(function(e){document.location=l.adminUrl+"/post.php?action=edit&post="+e.id})};r.addEventListener?r.addEventListener("click",a,!1):r.attachEvent("onclick",a)}})}else s._setupMainModal(!0),o.style.display="inline-block";else s._setupMainModal();var d=function(e){e=e||window.event;var t=e.currentTarget?e.currentTarget:e.srcElement,i=t.getAttribute("data-form-id");wp.ccf.toggle(i)};o.addEventListener?o.addEventListener("click",d,!1):o.attachEvent("onclick",d)}}),wp.ccf.createManager()}(jQuery,Backbone,_,ccfSettings);
assets/build/js/form.min.js CHANGED
@@ -1 +1 @@
1
- (function(e,t){"use strict";window.wp=window.wp||{},wp.ccf=wp.ccf||{},wp.ccf.validators=wp.ccf.validators||{};var i={};window.ccfRecaptchaOnload=function(){for(var e=document.querySelectorAll(".ccf-recaptcha-wrapper"),l=function(l){grecaptcha.render(e[s],{sitekey:e[s].getAttribute("data-sitekey"),theme:t.recaptcha_theme,callback:function(){i[l]=!0}})},s=0;e.length>s;s++){var r=e[s].getAttribute("data-form-id");l(r)}};var l=function(e){if(this.wrapper=e,this.errors={},e.className.match(" field-required")){this.inputs=this.wrapper.querySelectorAll(".field-input");var i=this.wrapper.querySelectorAll(".error");i.length&&i[0].parentNode.removeChild(i[0]);var l=!1;if(_.each(this.inputs,function(e){(e.checked&&e.value||e.selected)&&(l=!0)}),!l){this.errors[this.inputs[this.inputs.length-1].getAttribute("name")]={required:!0};var s=document.createElement("div");s.className="error required-error",s.innerHTML=t.required,e.appendChild(s)}}},s=function(e,i){return function(l){this.wrapper=l,this.inputs=this.wrapper.querySelectorAll(".field-input"),this.errors={};for(var s=this.wrapper.querySelectorAll(".error"),r=s.length-1;r>=0;r--)s[r].parentNode.removeChild(s[r]);_.each(this.inputs,function(t){var i=t.getAttribute("name");this.errors[i]={},t.getAttribute("aria-required")&&""===t.value&&(this.errors[i].required=t),e&&e.call(this,t)},this),i&&i.call(this);var o;for(var n in this.errors)if(this.errors.hasOwnProperty(n))for(var c in this.errors[n])o=document.createElement("div"),o.className="error "+c+"-error",o.setAttribute("data-field-name",n),o.innerHTML=t[c],this.errors[n][c].parentNode.insertBefore(o,this.errors[n][c].nextSibling)}};wp.ccf.validators["single-line-text"]=wp.ccf.validators["single-line-text"]||s(),wp.ccf.validators["paragraph-text"]=wp.ccf.validators["paragraph-text"]||s(),wp.ccf.validators.name=wp.ccf.validators.name||s(),wp.ccf.validators.email=wp.ccf.validators.email||s(!1,function(){var e=this.inputs[0].value;if(e){2===this.inputs.length&&e!==this.inputs[1].value&&(this.errors[this.inputs[0].getAttribute("name")].match=this.wrapper.lastChild);var t=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;t.test(e)||(this.errors[this.inputs[0].getAttribute("name")].email=this.wrapper.lastChild)}}),wp.ccf.validators.recaptcha=wp.ccf.validators.recaptcha||function(e,l){this.wrapper=e,this.inputs=this.wrapper.querySelectorAll(".g-recaptcha-response"),this.errors={};for(var s=this.wrapper.querySelectorAll(".error"),r=s.length-1;r>=0;r--)s[r].parentNode.removeChild(s[r]);i[l]||(this.errors["g-recaptcha-response"]={},this.errors["g-recaptcha-response"].recaptcha=this.wrapper.lastChild);var o;for(var n in this.errors)if(this.errors.hasOwnProperty(n))for(var c in this.errors[n])o=document.createElement("div"),o.className="error "+c+"-error",o.setAttribute("data-field-name",n),o.innerHTML=t[c],this.errors[n][c].parentNode.insertBefore(o,this.errors[n][c].nextSibling)},wp.ccf.validators.phone=wp.ccf.validators.phone||s(!1,function(){var e=this.inputs[0].value;if(e){var t=/^[0-9+.)(\- ]+$/;if(t.test(e)){if("us"===this.wrapper.getAttribute("data-phone-format")){var i=e.replace(/[^0-9]/gi,"");10!==i.length&&(this.errors[this.inputs[0].getAttribute("name")].digits=this.wrapper.lastChild)}}else this.errors[this.inputs[0].getAttribute("name")].phone=this.wrapper.lastChild}}),wp.ccf.validators.date=wp.ccf.validators.date||function(e){this.wrapper=e,this.errors={},this.inputs=this.wrapper.querySelectorAll(".field-input");for(var i=this.wrapper.querySelectorAll(".error"),l=i.length-1;l>=0;l--)i[l].parentNode.removeChild(i[l]);var s;_.each(this.inputs,function(i){var l=i.getAttribute("name");if(this.errors[l]={},i.getAttribute("aria-required")&&""===i.value&&(this.errors[l].required=!0,s=document.createElement("div"),s.className="error required-error",1===this.inputs.length?(s.innerHTML=t.required,s.className+=" right-error",i.parentNode.insertBefore(s,i.nextSibling)):(s.innerHTML=t[l.replace(/.*\[(.*?)\]/i,"$1")+"_required"],e.appendChild(s))),""!==i.value){var r=l.replace(/^.*\[(.*?)\]$/,"$1");"date"===r?i.value.match(/^([0-9]|\/)+$/)||(s=document.createElement("div"),s.className="error date-error",s.innerHTML=t.date,e.appendChild(s)):"hour"===r?i.value.match(/^[0-9]+$/)||(s=document.createElement("div"),s.className="error hour-error",s.innerHTML=t.hour,e.appendChild(s)):"minute"===r&&(i.value.match(/^[0-9]+$/)||(s=document.createElement("div"),s.className="error minute-error",s.innerHTML=t.minute,e.appendChild(s)))}},this)},wp.ccf.validators.address=wp.ccf.validators.address||s(),wp.ccf.validators.file=wp.ccf.validators.file||function(e){this.wrapper=e,this.inputs=this.wrapper.querySelectorAll(".field-input"),this.errors={};for(var i=this.wrapper.querySelectorAll(".error"),l=i.length-1;l>=0;l--)i[l].parentNode.removeChild(i[l]);_.each(this.inputs,function(e){var t=e.getAttribute("name");this.errors[t]={},e.getAttribute("aria-required")&&""===e.value&&(this.errors[t].required=e)},this);var s=this.inputs[0],r=this.wrapper.getAttribute("data-max-file-size"),o=this.wrapper.getAttribute("data-file-extensions");if(s.value){if(r){var n=1e3*1e3*parseInt(r);if(s.files)s.files[0].size>n&&(this.errors[this.inputs[0].getAttribute("name")].fileSize=this.wrapper.lastChild);else if("undefined"!=typeof ActiveXObject)try{var c=new ActiveXObject("Scripting.FileSystemObject"),a=c.getFile(s.value);a.size>n&&(this.errors[this.inputs[0].getAttribute("name")].fileSize=this.wrapper.lastChild)}catch(d){}}if(o){var f=o.replace(";",",").toLowerCase();if(f=f.replace(/\s+/g,""),f=f.split(","),f.length){var u=s.value.replace(/^.*\.(.+)$/g,"$1").toLowerCase();-1===_.indexOf(f,u)&&(this.errors[this.inputs[0].getAttribute("name")].fileExtension=this.wrapper.lastChild)}}}var p;for(var h in this.errors)if(this.errors.hasOwnProperty(h))for(var m in this.errors[h])p=document.createElement("div"),p.className="error "+m+"-error",p.setAttribute("data-field-name",h),p.innerHTML=t[m],"fileExtension"===m&&o?p.innerHTML+=" ("+o+")":"fileSize"===m&&r&&(p.innerHTML+=" "+r+" MB"),this.errors[h][m].parentNode.insertBefore(p,this.errors[h][m].nextSibling)},wp.ccf.validators.website=wp.ccf.validators.website||s(function(e){if(e.value){var t=/^http(s?)\:\/\/(([a-zA-Z0-9\-\._]+(\.[a-zA-Z0-9\-\._]+)+)|localhost)(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&amp;%\$#_]*)?([\d\w\.\/\%\+\-\=\&amp;\?\:\\\&quot;\'\,\|\~\;]*)$/;t.test(e.value)||(this.errors[e.getAttribute("name")].website=e)}}),wp.ccf.validators.checkboxes=wp.ccf.validators.checkboxes||l,wp.ccf.validators.dropdown=wp.ccf.validators.dropdown||s(),wp.ccf.validators.radio=wp.ccf.validators.radio||l,wp.ccf.setupDOM=wp.ccf.setupDOM||function(){for(var l,s,r=document.querySelectorAll(".ccf-datepicker"),o=0;r.length>o;o++)l={},s=r[o].getAttribute("data-date-format"),s&&(l.dateFormat=s.replace(/yyyy/i,"yy")),e(r[o]).datepicker(l);var n=document.querySelectorAll(".ccf-form-wrapper");n.length>=1&&_.each(n,function(l){function s(t){var i=[];if(_.each(p,function(e){if(!e.className.match(/ skip-field/i)){var t=e.getAttribute("data-field-type");e.getAttribute("data-field-slug");var l=new wp.ccf.validators[t](e,n);if(_.size(l.errors)){var s=0;for(var r in l.errors)l.errors.hasOwnProperty(r)&&_.size(l.errors[r])&&s++;s>0&&i.push(l)}}}),!i.length)return o.trigger("ccfFormSuccess"),l.className=l.className.replace(/ loading/i,"")+" loading",d.animate({opacity:100}),!0;t.returnFalse=!1,t.preventDefault&&t.preventDefault(),o.trigger("ccfFormError",i);var s=e(window).scrollTop(),r=s+e(window).height(),c=e(i[0].wrapper),a=c.offset(),f=a.top,u=f+c.height();return f>=s&&r>=u||e("html, body").animate({scrollTop:c.offset().top},500),!1}var r=l.querySelectorAll(".ccf-form")[0],o=e(r),n=parseInt(l.getAttribute("data-form-id")),c=r.querySelectorAll(".ccf-submit-button")[0],a=document.getElementById("ccf_form_frame_"+n),d=e(r.querySelectorAll(".loading-img")[0]),f=e(a),u=e(c),p={};f.on("load",function(){var l,s=f.contents().find("body").text();if(!s)return!1;r.className=r.className.replace(/ loading/i,""),d.animate({opacity:0}),i[n]=!1;try{l=e.parseJSON(s)}catch(o){var a=document.createElement("div");return a.className="error unknown-error",a.innerText=t.unknown,c.parentNode.appendChild(a),!1}var u=c.parentNode.querySelectorAll(".error");if(u.length&&u[0].parentNode.removeChild(u[0]),l.success)if("text"===l.action_type&&l.completion_message){r.innerHTML="";var h=document.createElement("div");h.innerHTML=l.completion_message,h.className="ccf-form-complete",r.appendChild(h),e("html, body").animate({scrollTop:e(r).offset().top},500)}else"redirect"===l.action_type&&l.completion_redirect_url&&(document.location=l.completion_redirect_url);else l.field_errors&&_.each(l.field_errors,function(e,t){var i=p[t].querySelectorAll(".field-input");for(var l in e)if(e.hasOwnProperty(l)){var s=document.createElement("div");s.className="error "+l+"-error",s.innerHTML=e[l],1===i.length?i[i.length-1].parentNode.insertBefore(s,i[i.length-1].nextSibling):p[t].appendChild(s)}})}),u.on("click",function(e){return e.preventDefault(),r.target="ccf_form_frame_"+n,r.action=t.ajaxurl,o.submit(),!1});var h=l.querySelectorAll(".field");_.each(h,function(e){var t=e.getAttribute("data-field-slug");p[t]=e}),_.each(h,function(t){var i=t.getAttribute("data-field-slug"),l=t.getAttribute("data-field-type");if(wp.ccf.conditionals[n][i]&&wp.ccf.conditionals[n][i].conditions.length){var s=wp.ccf.conditionals[n][i].conditionalType,r=wp.ccf.conditionals[n][i].conditionalFieldsRequired;wp.ccf.conditionals[n][i].trigger=function(){var o;"any"===r?(o=!1,_.each(wp.ccf.conditionals[n][i].conditions,function(e){e.state&&(o=!0)})):(o=!0,_.each(wp.ccf.conditionals[n][i].conditions,function(e){o=o&&e.state})),"hide"===s&&(o=!o),o?"section-header"===l?e(t).parents(".ccf-section").removeClass("field-hide"):t.className=t.className.replace(/field-hide/i,""):"section-header"===l?e(t).parents(".ccf-section").addClass("field-hide"):t.className=t.className.replace(/field-hide/i,"")+" field-hide"},_.each(wp.ccf.conditionals[n][i].conditions,function(t){function l(e){"is"===t.compare?t.state=e===t.value?!0:!1:"is-not"===t.compare?t.state=e!==t.value?!0:!1:"greater-than"===t.compare?t.state=parseInt(e)>parseInt(t.value)?!0:!1:"less-than"===t.compare?t.state=parseInt(e)<parseInt(t.value)?!0:!1:"contains"===t.compare&&(t.state=e.match(t.value)?!0:!1)}var s=p[t.field].querySelectorAll(".field-input");e(s).on("change keyup",_.debounce(function(e){l(e.currentTarget.value),wp.ccf.conditionals[n][i].trigger()},250)),l(s.value),wp.ccf.conditionals[n][i].trigger()})}}),o.on("submit",s)})},e(document).ready(wp.ccf.setupDOM)})(jQuery,ccfSettings);
1
+ (function(e,t){"use strict";window.wp=window.wp||{},wp.ccf=wp.ccf||{},wp.ccf.validators=wp.ccf.validators||{};var i={};window.ccfRecaptchaOnload=function(){for(var e=document.querySelectorAll(".ccf-recaptcha-wrapper"),l=function(l){grecaptcha.render(e[s],{sitekey:e[s].getAttribute("data-sitekey"),theme:t.recaptcha_theme,callback:function(){i[l]=!0}})},s=0;e.length>s;s++){var r=e[s].getAttribute("data-form-id");l(r)}};var l=function(e){if(this.wrapper=e,this.errors={},e.className.match(" field-required")){this.inputs=this.wrapper.querySelectorAll(".field-input");var i=this.wrapper.querySelectorAll(".error");i.length&&i[0].parentNode.removeChild(i[0]);var l=!1;if(_.each(this.inputs,function(e){(e.checked&&e.value||e.selected)&&(l=!0)}),!l){this.errors[this.inputs[this.inputs.length-1].getAttribute("name")]={required:!0};var s=document.createElement("div");s.className="error required-error",s.innerHTML=t.required,e.appendChild(s)}}},s=function(e,i){return function(l){this.wrapper=l,this.inputs=this.wrapper.querySelectorAll(".field-input"),this.errors={};for(var s=this.wrapper.querySelectorAll(".error"),r=s.length-1;r>=0;r--)s[r].parentNode.removeChild(s[r]);_.each(this.inputs,function(t){var i=t.getAttribute("name");this.errors[i]={},t.getAttribute("aria-required")&&""===t.value&&(this.errors[i].required=t),e&&e.call(this,t)},this),i&&i.call(this);var o;for(var n in this.errors)if(this.errors.hasOwnProperty(n))for(var c in this.errors[n])o=document.createElement("div"),o.className="error "+c+"-error",o.setAttribute("data-field-name",n),o.innerHTML=t[c],this.errors[n][c].parentNode.insertBefore(o,this.errors[n][c].nextSibling)}};wp.ccf.validators["single-line-text"]=wp.ccf.validators["single-line-text"]||s(),wp.ccf.validators["paragraph-text"]=wp.ccf.validators["paragraph-text"]||s(),wp.ccf.validators.name=wp.ccf.validators.name||s(),wp.ccf.validators.email=wp.ccf.validators.email||s(!1,function(){var e=this.inputs[0].value;if(e){2===this.inputs.length&&e!==this.inputs[1].value&&(this.errors[this.inputs[0].getAttribute("name")].match=this.wrapper.lastChild);var t=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;t.test(e)||(this.errors[this.inputs[0].getAttribute("name")].email=this.wrapper.lastChild)}}),wp.ccf.validators.recaptcha=wp.ccf.validators.recaptcha||function(e,l){this.wrapper=e,this.inputs=this.wrapper.querySelectorAll(".g-recaptcha-response"),this.errors={};for(var s=this.wrapper.querySelectorAll(".error"),r=s.length-1;r>=0;r--)s[r].parentNode.removeChild(s[r]);i[l]||(this.errors["g-recaptcha-response"]={},this.errors["g-recaptcha-response"].recaptcha=this.wrapper.lastChild);var o;for(var n in this.errors)if(this.errors.hasOwnProperty(n))for(var c in this.errors[n])o=document.createElement("div"),o.className="error "+c+"-error",o.setAttribute("data-field-name",n),o.innerHTML=t[c],this.errors[n][c].parentNode.insertBefore(o,this.errors[n][c].nextSibling)},wp.ccf.validators["simple-captcha"]=wp.ccf.validators["simple-captcha"]||s(function(){}),wp.ccf.validators.phone=wp.ccf.validators.phone||s(!1,function(){var e=this.inputs[0].value;if(e){var t=/^[0-9+.)(\- ]+$/;if(t.test(e)){if("us"===this.wrapper.getAttribute("data-phone-format")){var i=e.replace(/[^0-9]/gi,"");10!==i.length&&(this.errors[this.inputs[0].getAttribute("name")].digits=this.wrapper.lastChild)}}else this.errors[this.inputs[0].getAttribute("name")].phone=this.wrapper.lastChild}}),wp.ccf.validators.date=wp.ccf.validators.date||function(e){this.wrapper=e,this.errors={},this.inputs=this.wrapper.querySelectorAll(".field-input");for(var i=this.wrapper.querySelectorAll(".error"),l=i.length-1;l>=0;l--)i[l].parentNode.removeChild(i[l]);var s;_.each(this.inputs,function(i){var l=i.getAttribute("name");if(this.errors[l]={},i.getAttribute("aria-required")&&""===i.value&&(this.errors[l].required=!0,s=document.createElement("div"),s.className="error required-error",1===this.inputs.length?(s.innerHTML=t.required,s.className+=" right-error",i.parentNode.insertBefore(s,i.nextSibling)):(s.innerHTML=t[l.replace(/.*\[(.*?)\]/i,"$1")+"_required"],e.appendChild(s))),""!==i.value){var r=l.replace(/^.*\[(.*?)\]$/,"$1");"date"===r?i.value.match(/^([0-9]|\/)+$/)||(s=document.createElement("div"),s.className="error date-error",s.innerHTML=t.date,e.appendChild(s)):"hour"===r?i.value.match(/^[0-9]+$/)||(s=document.createElement("div"),s.className="error hour-error",s.innerHTML=t.hour,e.appendChild(s)):"minute"===r&&(i.value.match(/^[0-9]+$/)||(s=document.createElement("div"),s.className="error minute-error",s.innerHTML=t.minute,e.appendChild(s)))}},this)},wp.ccf.validators.address=wp.ccf.validators.address||s(),wp.ccf.validators.file=wp.ccf.validators.file||function(e){this.wrapper=e,this.inputs=this.wrapper.querySelectorAll(".field-input"),this.errors={};for(var i=this.wrapper.querySelectorAll(".error"),l=i.length-1;l>=0;l--)i[l].parentNode.removeChild(i[l]);_.each(this.inputs,function(e){var t=e.getAttribute("name");this.errors[t]={},e.getAttribute("aria-required")&&""===e.value&&(this.errors[t].required=e)},this);var s=this.inputs[0],r=this.wrapper.getAttribute("data-max-file-size"),o=this.wrapper.getAttribute("data-file-extensions");if(s.value){if(r){var n=1e3*1e3*parseInt(r);if(s.files)s.files[0].size>n&&(this.errors[this.inputs[0].getAttribute("name")].fileSize=this.wrapper.lastChild);else if("undefined"!=typeof ActiveXObject)try{var c=new ActiveXObject("Scripting.FileSystemObject"),a=c.getFile(s.value);a.size>n&&(this.errors[this.inputs[0].getAttribute("name")].fileSize=this.wrapper.lastChild)}catch(d){}}if(o){var u=o.replace(";",",").toLowerCase();if(u=u.replace(/\s+/g,""),u=u.split(","),u.length){var f=s.value.replace(/^.*\.(.+)$/g,"$1").toLowerCase();-1===_.indexOf(u,f)&&(this.errors[this.inputs[0].getAttribute("name")].fileExtension=this.wrapper.lastChild)}}}var p;for(var h in this.errors)if(this.errors.hasOwnProperty(h))for(var m in this.errors[h])p=document.createElement("div"),p.className="error "+m+"-error",p.setAttribute("data-field-name",h),p.innerHTML=t[m],"fileExtension"===m&&o?p.innerHTML+=" ("+o+")":"fileSize"===m&&r&&(p.innerHTML+=" "+r+" MB"),this.errors[h][m].parentNode.insertBefore(p,this.errors[h][m].nextSibling)},wp.ccf.validators.website=wp.ccf.validators.website||s(function(e){if(e.value){var t=/^http(s?)\:\/\/(([a-zA-Z0-9\-\._]+(\.[a-zA-Z0-9\-\._]+)+)|localhost)(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&amp;%\$#_]*)?([\d\w\.\/\%\+\-\=\&amp;\?\:\\\&quot;\'\,\|\~\;]*)$/;t.test(e.value)||(this.errors[e.getAttribute("name")].website=e)}}),wp.ccf.validators.checkboxes=wp.ccf.validators.checkboxes||l,wp.ccf.validators.dropdown=wp.ccf.validators.dropdown||s(),wp.ccf.validators.radio=wp.ccf.validators.radio||l,wp.ccf.setupDOM=wp.ccf.setupDOM||function(){for(var l,s,r=document.querySelectorAll(".ccf-datepicker"),o=0;r.length>o;o++)l={},s=r[o].getAttribute("data-date-format"),s&&(l.dateFormat=s.replace(/yyyy/i,"yy")),e(r[o]).datepicker(l);var n=document.querySelectorAll(".ccf-form-wrapper");n.length>=1&&_.each(n,function(l){function s(t){var i=[];if(_.each(p,function(e){if(!e.className.match(/ skip-field/i)){var t=e.getAttribute("data-field-type");e.getAttribute("data-field-slug");var l=new wp.ccf.validators[t](e,n);if(_.size(l.errors)){var s=0;for(var r in l.errors)l.errors.hasOwnProperty(r)&&_.size(l.errors[r])&&s++;s>0&&i.push(l)}}}),!i.length)return o.trigger("ccfFormSuccess"),l.className=l.className.replace(/ loading/i,"")+" loading",d.animate({opacity:100}),!0;t.returnFalse=!1,t.preventDefault&&t.preventDefault(),o.trigger("ccfFormError",i);var s=e(window).scrollTop(),r=s+e(window).height(),c=e(i[0].wrapper),a=c.offset(),u=a.top,f=u+c.height();return u>=s&&r>=f||e("html, body").animate({scrollTop:c.offset().top},500),!1}var r=l.querySelectorAll(".ccf-form")[0],o=e(r),n=parseInt(l.getAttribute("data-form-id")),c=r.querySelectorAll(".ccf-submit-button")[0],a=document.getElementById("ccf_form_frame_"+n),d=e(r.querySelectorAll(".loading-img")[0]),u=e(a),f=e(c),p={};u.on("load",function(){var l,s=u.contents().find("body").text();if(!s)return!1;r.className=r.className.replace(/ loading/i,""),d.animate({opacity:0}),i[n]=!1;try{l=e.parseJSON(s)}catch(o){var a=document.createElement("div");return a.className="error unknown-error",a.innerText=t.unknown,c.parentNode.appendChild(a),!1}var f=c.parentNode.querySelectorAll(".error");if(f.length&&f[0].parentNode.removeChild(f[0]),l.success)if("text"===l.action_type&&l.completion_message){r.innerHTML="";var h=document.createElement("div");h.innerHTML=l.completion_message,h.className="ccf-form-complete",r.appendChild(h),e("html, body").animate({scrollTop:e(r).offset().top},500)}else"redirect"===l.action_type&&l.completion_redirect_url&&(document.location=l.completion_redirect_url);else l.field_errors&&_.each(l.field_errors,function(e,t){var i=p[t].querySelectorAll(".field-input");for(var l in e)if(e.hasOwnProperty(l)){var s=document.createElement("div");s.className="error "+l+"-error",s.innerHTML=e[l],1===i.length?i[i.length-1].parentNode.insertBefore(s,i[i.length-1].nextSibling):p[t].appendChild(s)}})}),f.on("click",function(e){return e.preventDefault(),r.target="ccf_form_frame_"+n,r.action=t.ajaxurl,o.submit(),!1});var h=l.querySelectorAll(".field");_.each(h,function(e){var t=e.getAttribute("data-field-slug");p[t]=e}),_.each(h,function(t){var i=t.getAttribute("data-field-slug"),l=t.getAttribute("data-field-type");if(wp.ccf.conditionals[n][i]&&wp.ccf.conditionals[n][i].conditions.length){var s=wp.ccf.conditionals[n][i].conditionalType,r=wp.ccf.conditionals[n][i].conditionalFieldsRequired;wp.ccf.conditionals[n][i].trigger=function(){var o;"any"===r?(o=!1,_.each(wp.ccf.conditionals[n][i].conditions,function(e){e.state&&(o=!0)})):(o=!0,_.each(wp.ccf.conditionals[n][i].conditions,function(e){o=o&&e.state})),"hide"===s&&(o=!o),o?"section-header"===l?e(t).parents(".ccf-section").removeClass("field-hide"):t.className=t.className.replace(/field-hide/i,""):"section-header"===l?e(t).parents(".ccf-section").addClass("field-hide"):t.className=t.className.replace(/field-hide/i,"")+" field-hide"},_.each(wp.ccf.conditionals[n][i].conditions,function(t){function l(e){"is"===t.compare?t.state=e===t.value?!0:!1:"is-not"===t.compare?t.state=e!==t.value?!0:!1:"greater-than"===t.compare?t.state=parseInt(e)>parseInt(t.value)?!0:!1:"less-than"===t.compare?t.state=parseInt(e)<parseInt(t.value)?!0:!1:"contains"===t.compare&&(t.state=e.match(t.value)?!0:!1)}var s=p[t.field].querySelectorAll(".field-input");e(s).on("change keyup",_.debounce(function(e){l(e.currentTarget.value),wp.ccf.conditionals[n][i].trigger()},250)),l(s.value),wp.ccf.conditionals[n][i].trigger()})}}),o.on("submit",s)})},e(document).ready(wp.ccf.setupDOM)})(jQuery,ccfSettings);
assets/img/simple-captcha.png ADDED
Binary file
assets/js/form.js CHANGED
@@ -165,6 +165,16 @@
165
  }
166
  };
167
 
 
 
 
 
 
 
 
 
 
 
168
  wp.ccf.validators.phone = wp.ccf.validators.phone || validator( false, function() {
169
  var phone = this.inputs[0].value;
170
 
165
  }
166
  };
167
 
168
+ wp.ccf.validators['simple-captcha'] = wp.ccf.validators['simple-captcha'] || validator( function( input ) {
169
+ /*if ( input.value ) {
170
+ var re = /^http(s?)\:\/\/(([a-zA-Z0-9\-\._]+(\.[a-zA-Z0-9\-\._]+)+)|localhost)(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&amp;%\$#_]*)?([\d\w\.\/\%\+\-\=\&amp;\?\:\\\&quot;\'\,\|\~\;]*)$/;
171
+
172
+ if ( ! re.test( input.value ) ) {
173
+ this.errors[input.getAttribute( 'name' )].website = input;
174
+ }
175
+ }*/
176
+ });
177
+
178
  wp.ccf.validators.phone = wp.ccf.validators.phone || validator( false, function() {
179
  var phone = this.inputs[0].value;
180
 
assets/js/manager/models.js CHANGED
@@ -206,6 +206,7 @@
206
  postFieldMappings: new wp.ccf.collections.PostFieldMappings(),
207
  notifications: new wp.ccf.collections.FormNotifications(),
208
  pause: false,
 
209
  pauseMessage: ccfSettings.pauseMessage,
210
  theme: 'none'
211
  };
@@ -697,6 +698,25 @@
697
  }
698
  );
699
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
700
  wp.ccf.models.Fields.address = wp.ccf.models.Fields.address || wp.ccf.models.StandardField.extend(
701
  {
702
  defaults: function() {
206
  postFieldMappings: new wp.ccf.collections.PostFieldMappings(),
207
  notifications: new wp.ccf.collections.FormNotifications(),
208
  pause: false,
209
+ requireLoggedIn: false,
210
  pauseMessage: ccfSettings.pauseMessage,
211
  theme: 'none'
212
  };
698
  }
699
  );
700
 
701
+ wp.ccf.models.Fields['simple-captcha'] = wp.ccf.models.Fields['simple-captcha'] || wp.ccf.models.StandardField.extend(
702
+ {
703
+ defaults: function() {
704
+ var defaults = {
705
+ type: 'simple-captcha',
706
+ placeholder: ccfSettings.defaultSimpleCaptchaPlaceholder
707
+ };
708
+
709
+ return _.defaults( defaults, this.constructor.__super__.defaults() );
710
+ },
711
+
712
+ isImmutable: true,
713
+
714
+ initialize: function() {
715
+ return this.constructor.__super__.initialize.apply( this, arguments );
716
+ }
717
+ }
718
+ );
719
+
720
  wp.ccf.models.Fields.address = wp.ccf.models.Fields.address || wp.ccf.models.StandardField.extend(
721
  {
722
  defaults: function() {
assets/js/manager/views.js CHANGED
@@ -149,7 +149,7 @@
149
  if ( this.field.get( 'slug' ) !== field.get( 'slug' ) ) {
150
  var type = field.get( 'type' );
151
 
152
- if ( 'address' !== type && 'checkboxes' !== type && 'date' !== type && 'name' !== type && 'file' !== type && 'recaptcha' !== type && 'section-header' !== type && 'html' !== type ) {
153
  option = document.createElement( 'option' );
154
  option.innerHTML = field.get( 'slug' );
155
  option.value = field.get( 'slug' );
@@ -475,7 +475,7 @@
475
  fields.each( function( field ) {
476
  type = field.get( 'type' );
477
 
478
- if ( 'html' !== type && 'section-header' !== type && 'recaptcha' !== type ) {
479
  variablesText += '[' + field.get( 'slug' ) + '] ';
480
  }
481
  } );
@@ -789,20 +789,24 @@
789
  },
790
 
791
  saveField: function() {
792
- var conditionals = this.el.querySelectorAll( '.conditionals' )[0].querySelectorAll( '.conditional' );
793
 
794
- _.each( conditionals, function( conditional ) {
795
- $( conditional ).trigger( 'saveConditional' );
796
- });
 
 
 
797
 
798
- this.model.set( 'conditionalType', this.el.querySelectorAll( '.field-conditional-type' )[0].value );
799
- this.model.set( 'conditionalFieldsRequired', this.el.querySelectorAll( '.field-conditional-fields-required' )[0].value );
800
 
801
- var oldConditionals = this.model.get( 'conditionalsEnabled' );
802
- this.model.set( 'conditionalsEnabled', ( this.el.querySelectorAll( '.field-conditionals-enabled' )[0].value == 1 ) ? true : false );
803
 
804
- if ( oldConditionals !== this.model.get( 'conditionalsEnabled' ) ) {
805
- this.render( 'advanced' );
 
806
  }
807
  },
808
 
@@ -815,17 +819,20 @@
815
 
816
  var conditionalsCollection = this.model.get( 'conditionals' );
817
 
818
- var conditionals = this.el.querySelectorAll( '.conditionals' )[0];
819
 
820
- if ( conditionalsCollection.length >= 1 ) {
821
 
822
- conditionalsCollection.each( function( model ) {
823
- var view = new wp.ccf.views.FieldConditional( { model: model, field: this.model, fieldCollection: this.collection } ).render();
824
- conditionals.appendChild( view.el );
825
- }, this );
826
- } else {
827
- var conditional = new wp.ccf.models.FieldConditional();
828
- conditionalsCollection.add( conditional );
 
 
 
829
  }
830
 
831
  return this;
@@ -906,6 +913,28 @@
906
  }
907
  );
908
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
909
  wp.ccf.views.Fields['section-header'] = wp.ccf.views.Fields['section-header'] || wp.ccf.views.FieldBase.extend(
910
  {
911
  template: wp.ccf.utils.template( 'ccf-section-header-template' ),
@@ -1126,10 +1155,23 @@
1126
  this.model.set( 'slug', this.el.querySelectorAll( '.field-slug' )[0].value );
1127
  this.model.set( 'label', this.el.querySelectorAll( '.field-label' )[0].value );
1128
  this.model.set( 'description', this.el.querySelectorAll( '.field-description' )[0].value );
 
 
 
1129
  this.model.set( 'addressType', this.el.querySelectorAll( '.field-address-type' )[0].value );
 
 
 
 
 
 
1130
  this.model.set( 'className', this.el.querySelectorAll( '.field-class-name' )[0].value );
1131
  this.model.set( 'required', ( this.el.querySelectorAll( '.field-required' )[0].value == 1 ) ? true : false );
1132
 
 
 
 
 
1133
  this.constructor.__super__.saveField.apply( this, arguments );
1134
 
1135
  return this;
@@ -1797,6 +1839,9 @@
1797
  var pause = this.el.querySelectorAll( '.form-pause' )[0].value;
1798
  this.model.set( 'pause', ( parseInt( pause ) ) ? true : false );
1799
 
 
 
 
1800
  var postCreation = this.el.querySelectorAll( '.form-post-creation' )[0].value;
1801
  this.model.set( 'postCreation', ( parseInt( postCreation ) ) ? true : false );
1802
 
@@ -2426,7 +2471,7 @@
2426
  },
2427
 
2428
  menuClick: function( event ) {
2429
- var view = event.target.getAttribute( 'data-view' );
2430
 
2431
  if ( 'form-pane' === view ) {
2432
  wp.ccf.currentForm = null;
149
  if ( this.field.get( 'slug' ) !== field.get( 'slug' ) ) {
150
  var type = field.get( 'type' );
151
 
152
+ if ( 'address' !== type && 'checkboxes' !== type && 'date' !== type && 'name' !== type && 'file' !== type && 'recaptcha' !== type && 'simple-captcha' !== type && 'section-header' !== type && 'html' !== type ) {
153
  option = document.createElement( 'option' );
154
  option.innerHTML = field.get( 'slug' );
155
  option.value = field.get( 'slug' );
475
  fields.each( function( field ) {
476
  type = field.get( 'type' );
477
 
478
+ if ( 'html' !== type && 'section-header' !== type && 'recaptcha' !== type && 'simple-captcha' !== type ) {
479
  variablesText += '[' + field.get( 'slug' ) + '] ';
480
  }
481
  } );
789
  },
790
 
791
  saveField: function() {
792
+ var conditionalsWrapper = this.el.querySelectorAll( '.conditionals' );
793
 
794
+ if ( conditionalsWrapper.length ) {
795
+ var conditionals = conditionalsWrapper[0].querySelectorAll( '.conditional' );
796
+
797
+ _.each( conditionals, function( conditional ) {
798
+ $( conditional ).trigger( 'saveConditional' );
799
+ });
800
 
801
+ this.model.set( 'conditionalType', this.el.querySelectorAll( '.field-conditional-type' )[0].value );
802
+ this.model.set( 'conditionalFieldsRequired', this.el.querySelectorAll( '.field-conditional-fields-required' )[0].value );
803
 
804
+ var oldConditionals = this.model.get( 'conditionalsEnabled' );
805
+ this.model.set( 'conditionalsEnabled', ( this.el.querySelectorAll( '.field-conditionals-enabled' )[0].value == 1 ) ? true : false );
806
 
807
+ if ( oldConditionals !== this.model.get( 'conditionalsEnabled' ) ) {
808
+ this.render( 'advanced' );
809
+ }
810
  }
811
  },
812
 
819
 
820
  var conditionalsCollection = this.model.get( 'conditionals' );
821
 
822
+ var conditionalsWrapper = this.el.querySelectorAll( '.conditionals' );
823
 
824
+ if ( conditionalsWrapper.length ) {
825
 
826
+ if ( conditionalsCollection.length >= 1 ) {
827
+
828
+ conditionalsCollection.each( function( model ) {
829
+ var view = new wp.ccf.views.FieldConditional( { model: model, field: this.model, fieldCollection: this.collection } ).render();
830
+ conditionalsWrapper[0].appendChild( view.el );
831
+ }, this );
832
+ } else {
833
+ var conditional = new wp.ccf.models.FieldConditional();
834
+ conditionalsCollection.add( conditional );
835
+ }
836
  }
837
 
838
  return this;
913
  }
914
  );
915
 
916
+ wp.ccf.views.Fields['simple-captcha'] = wp.ccf.views.Fields['simple-captcha'] || wp.ccf.views.FieldBase.extend(
917
+ {
918
+ template: wp.ccf.utils.template( 'ccf-simple-captcha-template' ),
919
+
920
+ saveField: function() {
921
+ // @todo: fix this ie8 hack
922
+ if ( this.el.innerHTML === '' ) {
923
+ return;
924
+ }
925
+
926
+ this.model.set( 'label', this.el.querySelectorAll( '.field-label' )[0].value );
927
+ this.model.set( 'description', this.el.querySelectorAll( '.field-description' )[0].value );
928
+ this.model.set( 'placeholder', this.el.querySelectorAll( '.field-placeholder' )[0].value );
929
+ this.model.set( 'className', this.el.querySelectorAll( '.field-class-name' )[0].value );
930
+
931
+ this.constructor.__super__.saveField.apply( this, arguments );
932
+
933
+ return this;
934
+ }
935
+ }
936
+ );
937
+
938
  wp.ccf.views.Fields['section-header'] = wp.ccf.views.Fields['section-header'] || wp.ccf.views.FieldBase.extend(
939
  {
940
  template: wp.ccf.utils.template( 'ccf-section-header-template' ),
1155
  this.model.set( 'slug', this.el.querySelectorAll( '.field-slug' )[0].value );
1156
  this.model.set( 'label', this.el.querySelectorAll( '.field-label' )[0].value );
1157
  this.model.set( 'description', this.el.querySelectorAll( '.field-description' )[0].value );
1158
+
1159
+ var oldType = this.model.get( 'addressType' );
1160
+
1161
  this.model.set( 'addressType', this.el.querySelectorAll( '.field-address-type' )[0].value );
1162
+
1163
+ var defaultCountry = this.el.querySelectorAll( '.field-default-country' );
1164
+ if ( defaultCountry.length ) {
1165
+ this.model.set( 'defaultCountry', defaultCountry[0].value );
1166
+ }
1167
+
1168
  this.model.set( 'className', this.el.querySelectorAll( '.field-class-name' )[0].value );
1169
  this.model.set( 'required', ( this.el.querySelectorAll( '.field-required' )[0].value == 1 ) ? true : false );
1170
 
1171
+ if ( oldType !== this.model.get( 'addressType' ) ) {
1172
+ this.render();
1173
+ }
1174
+
1175
  this.constructor.__super__.saveField.apply( this, arguments );
1176
 
1177
  return this;
1839
  var pause = this.el.querySelectorAll( '.form-pause' )[0].value;
1840
  this.model.set( 'pause', ( parseInt( pause ) ) ? true : false );
1841
 
1842
+ var requireLoggedIn = this.el.querySelectorAll( '.form-require-logged-in' )[0].value;
1843
+ this.model.set( 'requireLoggedIn', ( parseInt( requireLoggedIn ) ) ? true : false );
1844
+
1845
  var postCreation = this.el.querySelectorAll( '.form-post-creation' )[0].value;
1846
  this.model.set( 'postCreation', ( parseInt( postCreation ) ) ? true : false );
1847
 
2471
  },
2472
 
2473
  menuClick: function( event ) {
2474
+ var view = event.currentTarget.getAttribute( 'data-view' );
2475
 
2476
  if ( 'form-pane' === view ) {
2477
  wp.ccf.currentForm = null;
assets/scss/form-manager.scss CHANGED
@@ -132,6 +132,10 @@
132
  margin-top: 7px;
133
  }
134
 
 
 
 
 
135
  .field-description {
136
  margin-top: 3px;
137
  clear: left;
132
  margin-top: 7px;
133
  }
134
 
135
+ .simple-captcha-preview-img {
136
+ margin-bottom: 7px;
137
+ }
138
+
139
  .field-description {
140
  margin-top: 3px;
141
  clear: left;
assets/scss/form-mce.scss CHANGED
@@ -57,6 +57,10 @@
57
  display: block;
58
  }
59
 
 
 
 
 
60
  label {
61
  display: block;
62
  }
57
  display: block;
58
  }
59
 
60
+ .simple-captcha-preview-img {
61
+ margin-bottom: 7px;
62
+ }
63
+
64
  label {
65
  display: block;
66
  }
assets/scss/form-table.scss CHANGED
@@ -1,3 +1,7 @@
1
  .view-switch {
2
  display: none;
 
 
 
 
3
  }
1
  .view-switch {
2
  display: none;
3
+ }
4
+
5
+ .column-ccf_form_id {
6
+ width: 7em;
7
  }
assets/scss/form.scss CHANGED
@@ -68,6 +68,10 @@
68
  }
69
  }
70
 
 
 
 
 
71
  .field-error-input {
72
  border: 1px solid #ff0000;
73
  }
68
  }
69
  }
70
 
71
+ .ccf-simple-captcha-wrapper {
72
+ margin-bottom: 12px;
73
+ }
74
+
75
  .field-error-input {
76
  border: 1px solid #ff0000;
77
  }
classes/class-ccf-api-form-controller.php CHANGED
@@ -65,6 +65,18 @@ class CCF_API_Form_Controller extends WP_REST_Controller {
65
  'sanitize' => 'esc_attr',
66
  'escape' => 'esc_attr',
67
  ),
 
 
 
 
 
 
 
 
 
 
 
 
68
  'siteKey' => array(
69
  'sanitize' => 'esc_attr',
70
  'escape' => 'esc_attr',
@@ -243,7 +255,7 @@ class CCF_API_Form_Controller extends WP_REST_Controller {
243
  $new_choices = array();
244
 
245
  foreach ( $choices as $choice ) {
246
- if ( ! empty( $choice['label'] ) ) {
247
  if ( empty( $choice['ID'] ) ) {
248
  $args = array(
249
  'post_title' => $choice['label'] . '-' . (int) $field_id,
@@ -385,8 +397,10 @@ class CCF_API_Form_Controller extends WP_REST_Controller {
385
  $clean_conditionals = array();
386
 
387
  for ( $index = 0; $index < count( $conditionals ); $index++ ) {
388
- foreach ( $conditionals[ $index ] as $conditional_key => $conditional_value ) {
389
- $clean_conditionals[ $index ][ $conditional_key ] = sanitize_text_field( $conditional_value );
 
 
390
  }
391
  }
392
 
@@ -476,6 +490,10 @@ class CCF_API_Form_Controller extends WP_REST_Controller {
476
  update_post_meta( $result, 'ccf_form_pause', (bool) $data['pause'] );
477
  }
478
 
 
 
 
 
479
  if ( isset( $data['theme'] ) ) {
480
  update_post_meta( $result, 'ccf_form_theme', sanitize_text_field( $data['theme'] ) );
481
  }
@@ -599,6 +617,7 @@ class CCF_API_Form_Controller extends WP_REST_Controller {
599
  $data['data'] = get_post_meta( $item->ID, 'ccf_submission_data', true );
600
  $data['fields'] = get_post_meta( $item->ID, 'ccf_submission_form_fields', true );
601
  $data['ip_address'] = esc_html( get_post_meta( $item->ID, 'ccf_submission_ip', true ) );
 
602
 
603
  return $data;
604
  }
@@ -1009,6 +1028,7 @@ class CCF_API_Form_Controller extends WP_REST_Controller {
1009
  $data['completionRedirectUrl'] = esc_url_raw( get_post_meta( $data['id'], 'ccf_form_completion_redirect_url', true ) );
1010
  $data['completionMessage'] = esc_html( get_post_meta( $data['id'], 'ccf_form_completion_message', true ) );
1011
  $data['pause'] = (bool) get_post_meta( $data['id'], 'ccf_form_pause', true );
 
1012
  $data['postCreation'] = (bool) get_post_meta( $data['id'], 'ccf_form_post_creation', true );
1013
  $data['postCreationType'] = esc_html( get_post_meta( $data['id'], 'ccf_form_post_creation_type', true ) );
1014
  $data['postCreationStatus'] = esc_html( get_post_meta( $data['id'], 'ccf_form_post_creation_status', true ) );
65
  'sanitize' => 'esc_attr',
66
  'escape' => 'esc_attr',
67
  ),
68
+ 'defaultCountry' => array(
69
+ 'sanitize' => 'esc_attr',
70
+ 'escape' => 'esc_attr',
71
+ ),
72
+ 'defaultState' => array(
73
+ 'sanitize' => 'esc_attr',
74
+ 'escape' => 'esc_attr',
75
+ ),
76
+ 'defaultCountry' => array(
77
+ 'sanitize' => 'esc_attr',
78
+ 'escape' => 'esc_attr',
79
+ ),
80
  'siteKey' => array(
81
  'sanitize' => 'esc_attr',
82
  'escape' => 'esc_attr',
255
  $new_choices = array();
256
 
257
  foreach ( $choices as $choice ) {
258
+ if ( ! empty( $choice['label'] ) || $choice['label'] === '0' ) {
259
  if ( empty( $choice['ID'] ) ) {
260
  $args = array(
261
  'post_title' => $choice['label'] . '-' . (int) $field_id,
397
  $clean_conditionals = array();
398
 
399
  for ( $index = 0; $index < count( $conditionals ); $index++ ) {
400
+ if ( ! empty( $conditionals[ $index ]['field'] ) && ! empty( $conditionals[ $index ]['compare'] ) ) {
401
+ foreach ( $conditionals[ $index ] as $conditional_key => $conditional_value ) {
402
+ $clean_conditionals[ $index ][ $conditional_key ] = sanitize_text_field( $conditional_value );
403
+ }
404
  }
405
  }
406
 
490
  update_post_meta( $result, 'ccf_form_pause', (bool) $data['pause'] );
491
  }
492
 
493
+ if ( isset( $data['requireLoggedIn'] ) ) {
494
+ update_post_meta( $result, 'ccf_form_require_logged_in', (bool) $data['requireLoggedIn'] );
495
+ }
496
+
497
  if ( isset( $data['theme'] ) ) {
498
  update_post_meta( $result, 'ccf_form_theme', sanitize_text_field( $data['theme'] ) );
499
  }
617
  $data['data'] = get_post_meta( $item->ID, 'ccf_submission_data', true );
618
  $data['fields'] = get_post_meta( $item->ID, 'ccf_submission_form_fields', true );
619
  $data['ip_address'] = esc_html( get_post_meta( $item->ID, 'ccf_submission_ip', true ) );
620
+ $data['form_page_url'] = esc_url_raw( get_post_meta( $item->ID, 'ccf_submission_form_page', true ) );
621
 
622
  return $data;
623
  }
1028
  $data['completionRedirectUrl'] = esc_url_raw( get_post_meta( $data['id'], 'ccf_form_completion_redirect_url', true ) );
1029
  $data['completionMessage'] = esc_html( get_post_meta( $data['id'], 'ccf_form_completion_message', true ) );
1030
  $data['pause'] = (bool) get_post_meta( $data['id'], 'ccf_form_pause', true );
1031
+ $data['requireLoggedIn'] = (bool) get_post_meta( $data['id'], 'ccf_form_require_logged_in', true );
1032
  $data['postCreation'] = (bool) get_post_meta( $data['id'], 'ccf_form_post_creation', true );
1033
  $data['postCreationType'] = esc_html( get_post_meta( $data['id'], 'ccf_form_post_creation_type', true ) );
1034
  $data['postCreationStatus'] = esc_html( get_post_meta( $data['id'], 'ccf_form_post_creation_status', true ) );
classes/class-ccf-field-renderer.php CHANGED
@@ -51,8 +51,7 @@ class CCF_Field_Renderer {
51
  <?php if ( ! empty( $required ) ) : ?><span class="required">*</span><?php endif; ?>
52
  <?php echo esc_html( $label ); ?>
53
  </label>
54
- <input class="form-control <?php if ( ! empty( $errors ) ) : ?>field-error-input<?php endif; ?> field-input" <?php if ( ! empty( $required ) ) : ?>required aria-required="true"<?php endif; ?> type="text" name="ccf_field_<?php echo esc_attr( $slug ); ?>" id="ccf_field_<?php echo esc_attr( $slug ); ?>" placeholder="<?php echo esc_attr( $placeholder ); ?>" value="<?php if ( ! empty( $post_value ) ) { echo esc_attr( $post_value );
55
- } else { echo esc_attr( $value ); } ?>">
56
 
57
  <?php if ( ! empty( $description ) ) : ?>
58
  <div class="field-description help-block text-muted">
@@ -184,6 +183,56 @@ class CCF_Field_Renderer {
184
  return ob_get_clean();
185
  }
186
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
187
  /**
188
  * Get section header layout field HTML
189
  *
@@ -527,6 +576,7 @@ class CCF_Field_Renderer {
527
  $required = get_post_meta( $field_id, 'ccf_field_required', true );
528
  $class_name = get_post_meta( $field_id, 'ccf_field_className', true );
529
  $description = get_post_meta( $field_id, 'ccf_field_description', true );
 
530
 
531
  $errors = CCF_Form_Handler::factory()->get_errors( $form_id, $slug );
532
  $all_errors = CCF_Form_Handler::factory()->get_errors( $form_id );
@@ -628,7 +678,7 @@ class CCF_Field_Renderer {
628
  <div class="right">
629
  <select class="<?php if ( ! empty( $errors['country_required'] ) ) : ?>field-error-input<?php endif; ?> field-input" <?php if ( ! empty( $required ) ) : ?>required aria-required="true"<?php endif; ?> name="ccf_field_<?php echo esc_attr( $slug ); ?>[country]" id="ccf_field_<?php echo esc_attr( $slug ); ?>-country">
630
  <?php foreach ( CCF_Constants::factory()->get_countries() as $country ) : ?>
631
- <option <?php if ( ! empty( $country_post_value ) ) { selected( $country_post_value, $country ); } ?>><?php echo $country; ?></option>
632
  <?php endforeach; ?>
633
  </select>
634
  <?php if ( ! empty( $errors['country_required'] ) ) : ?>
@@ -1141,6 +1191,9 @@ endif; ?>
1141
  case 'recaptcha':
1142
  $field_html = $this->recaptcha( $field_id, $form_id );
1143
  break;
 
 
 
1144
  case 'html':
1145
  $field_html = $this->html( $field_id, $form_id );
1146
  break;
51
  <?php if ( ! empty( $required ) ) : ?><span class="required">*</span><?php endif; ?>
52
  <?php echo esc_html( $label ); ?>
53
  </label>
54
+ <input class="form-control <?php if ( ! empty( $errors ) ) : ?>field-error-input<?php endif; ?> field-input" <?php if ( ! empty( $required ) ) : ?>required aria-required="true"<?php endif; ?> type="text" name="ccf_field_<?php echo esc_attr( $slug ); ?>" id="ccf_field_<?php echo esc_attr( $slug ); ?>" placeholder="<?php echo esc_attr( $placeholder ); ?>" value="<?php if ( ! empty( $post_value ) ) { echo esc_attr( $post_value ); } else { echo esc_attr( $value ); } ?>">
 
55
 
56
  <?php if ( ! empty( $description ) ) : ?>
57
  <div class="field-description help-block text-muted">
183
  return ob_get_clean();
184
  }
185
 
186
+ /**
187
+ * Get somple CAPTCHA field HTML, including any errors from the last form submission.
188
+ *
189
+ * @param int $field_id
190
+ * @param int $form_id
191
+ * @since 6..2
192
+ * @return string
193
+ */
194
+ public function simple_captcha( $field_id, $form_id ) {
195
+ $slug = get_post_meta( $field_id, 'ccf_field_slug', true );
196
+ $label = get_post_meta( $field_id, 'ccf_field_label', true );
197
+ $class_name = get_post_meta( $field_id, 'ccf_field_className', true );
198
+ $placeholder = get_post_meta( $field_id, 'ccf_field_placeholder', true );
199
+ $description = get_post_meta( $field_id, 'ccf_field_description', true );
200
+
201
+ $errors = CCF_Form_Handler::factory()->get_errors( $form_id, $slug );
202
+
203
+ require_once( dirname( __FILE__ ) . '/../vendor/abeautifulsite/simple-php-captcha/simple-php-captcha.php' );
204
+
205
+ $_SESSION['ccf_simple_captcha_' . $slug] = simple_php_captcha();
206
+
207
+ ob_start();
208
+ ?>
209
+
210
+ <div data-field-type="simple-captcha" data-field-slug="<?php echo esc_attr( $slug ); ?>" class="form-group <?php if ( ! empty( $errors ) ) : ?>field-error has-error<?php endif; ?> field <?php echo esc_attr( $slug ); ?> field-type-simple-captcha field-<?php echo (int) $field_id; ?> <?php echo esc_attr( $class_name ); ?> <?php if ( ! empty( $required ) ) : ?>field-required<?php endif; ?>">
211
+ <label class="main-label" for="ccf_field_<?php echo esc_attr( $slug ); ?>">
212
+ <span class="required">*</span>
213
+ <?php echo esc_html( $label ); ?>
214
+ </label>
215
+ <div class="ccf-simple-captcha-wrapper">
216
+ <img src="<?php echo esc_url( $_SESSION['ccf_simple_captcha_' . $slug]['image_src'] ); ?>">
217
+ </div>
218
+
219
+ <input class="form-control <?php if ( ! empty( $errors ) ) : ?>field-error-input<?php endif; ?> field-input" required aria-required="true" type="text" name="ccf_field_<?php echo esc_attr( $slug ); ?>" id="ccf_field_<?php echo esc_attr( $slug ); ?>" placeholder="<?php echo esc_attr( $placeholder ); ?>">
220
+
221
+ <?php if ( ! empty( $description ) ) : ?>
222
+ <div class="field-description help-block text-muted">
223
+ <?php echo esc_html( $description ); ?>
224
+ </div>
225
+ <?php endif; ?>
226
+
227
+ <?php if ( ! empty( $errors ) ) : ?>
228
+ <div class="error"><?php echo esc_html( $errors['simple_captcha'] ); ?></div>
229
+ <?php endif; ?>
230
+ </div>
231
+
232
+ <?php
233
+ return ob_get_clean();
234
+ }
235
+
236
  /**
237
  * Get section header layout field HTML
238
  *
576
  $required = get_post_meta( $field_id, 'ccf_field_required', true );
577
  $class_name = get_post_meta( $field_id, 'ccf_field_className', true );
578
  $description = get_post_meta( $field_id, 'ccf_field_description', true );
579
+ $default_country = get_post_meta( $field_id, 'ccf_field_defaultCountry', true );
580
 
581
  $errors = CCF_Form_Handler::factory()->get_errors( $form_id, $slug );
582
  $all_errors = CCF_Form_Handler::factory()->get_errors( $form_id );
678
  <div class="right">
679
  <select class="<?php if ( ! empty( $errors['country_required'] ) ) : ?>field-error-input<?php endif; ?> field-input" <?php if ( ! empty( $required ) ) : ?>required aria-required="true"<?php endif; ?> name="ccf_field_<?php echo esc_attr( $slug ); ?>[country]" id="ccf_field_<?php echo esc_attr( $slug ); ?>-country">
680
  <?php foreach ( CCF_Constants::factory()->get_countries() as $country ) : ?>
681
+ <option <?php if ( $country === $default_country ) : ?>selected<?php endif; ?> <?php if ( ! empty( $country_post_value ) ) { selected( $country_post_value, $country ); } ?>><?php echo $country; ?></option>
682
  <?php endforeach; ?>
683
  </select>
684
  <?php if ( ! empty( $errors['country_required'] ) ) : ?>
1191
  case 'recaptcha':
1192
  $field_html = $this->recaptcha( $field_id, $form_id );
1193
  break;
1194
+ case 'simple-captcha':
1195
+ $field_html = $this->simple_captcha( $field_id, $form_id );
1196
+ break;
1197
  case 'html':
1198
  $field_html = $this->html( $field_id, $form_id );
1199
  break;
classes/class-ccf-form-cpt.php CHANGED
@@ -506,6 +506,7 @@ class CCF_Form_CPT {
506
  'author' => esc_html__( 'Author', 'custom-contact-forms' ),
507
  'submissions' => esc_html__( 'Submissions', 'custom-contact-forms' ),
508
  'fields' => esc_html__( 'Number of Fields', 'custom-contact-forms' ),
 
509
  'ccf_date' => esc_html__( 'Date', 'custom-contact-forms' ),
510
  );
511
 
@@ -536,6 +537,10 @@ class CCF_Form_CPT {
536
  echo count( $fields );
537
  }
538
 
 
 
 
 
539
  break;
540
  case 'ccf_date':
541
  if ( '0000-00-00 00:00:00' == $post->post_date ) {
506
  'author' => esc_html__( 'Author', 'custom-contact-forms' ),
507
  'submissions' => esc_html__( 'Submissions', 'custom-contact-forms' ),
508
  'fields' => esc_html__( 'Number of Fields', 'custom-contact-forms' ),
509
+ 'ccf_form_id' => esc_html__( 'Form ID', 'custom-contact-forms' ),
510
  'ccf_date' => esc_html__( 'Date', 'custom-contact-forms' ),
511
  );
512
 
537
  echo count( $fields );
538
  }
539
 
540
+ break;
541
+ case 'ccf_form_id':
542
+ echo (int) $post->ID;
543
+
544
  break;
545
  case 'ccf_date':
546
  if ( '0000-00-00 00:00:00' == $post->post_date ) {
classes/class-ccf-form-handler.php CHANGED
@@ -32,6 +32,9 @@ class CCF_Form_Handler {
32
  'recaptcha' => array(
33
  'validator' => array( $this, 'valid_recaptcha' ),
34
  ),
 
 
 
35
  'paragraph-text' => array(
36
  'sanitizer' => 'sanitize_text_field',
37
  'validator' => array( $this, 'not_empty' ),
@@ -228,7 +231,7 @@ class CCF_Form_Handler {
228
 
229
  if ( $required ) {
230
  if ( ! is_array( $value ) ) {
231
- if ( empty( $value ) ) {
232
  $error = true;
233
  }
234
  } else {
@@ -267,6 +270,25 @@ class CCF_Form_Handler {
267
  return true;
268
  }
269
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
270
  /**
271
  * Simple callback to determine if a phone number is valid
272
  *
@@ -551,7 +573,19 @@ class CCF_Form_Handler {
551
  * @since 6.0
552
  */
553
  public function setup() {
554
- add_action( 'init', array( $this, 'submit_listen' ) );
 
 
 
 
 
 
 
 
 
 
 
 
555
  }
556
 
557
  /**
@@ -609,7 +643,7 @@ class CCF_Form_Handler {
609
  $submission = array();
610
 
611
  $skip_fields = apply_filters( 'ccf_skip_fields', array( 'html', 'section-header' ), $form->ID );
612
- $save_skip_fields = apply_filters( 'ccf_save_skip_fields', array( 'recaptcha' ), $form->ID );
613
  $file_ids = array();
614
  $all_form_fields = array();
615
 
@@ -691,6 +725,16 @@ class CCF_Form_Handler {
691
 
692
  update_post_meta( $submission_id, 'ccf_submission_ip', sanitize_text_field( $_SERVER['REMOTE_ADDR'] ) );
693
 
 
 
 
 
 
 
 
 
 
 
694
  foreach ( $file_ids as $file_id ) {
695
  wp_update_post( array(
696
  'ID' => $file_id,
@@ -791,8 +835,6 @@ class CCF_Form_Handler {
791
 
792
  $notifications = get_post_meta( $form_id, 'ccf_form_notifications', true );
793
 
794
- $form_page = ( ! empty( $_POST['form_page'] ) ) ? $_POST['form_page'] : null;
795
-
796
  if ( ! empty( $notifications ) ) {
797
  foreach ( $notifications as $notification ) {
798
  if ( ! empty( $notification['active'] ) && ! empty( $notification['addresses'] ) ) {
@@ -823,7 +865,7 @@ class CCF_Form_Handler {
823
  <?php endif; ?>
824
  </div>
825
  <div style="margin-bottom: 10px;">
826
- <?php if ( ! empty( $field ) ) : ?>
827
 
828
  <?php if ( 'date' === $type ) : ?>
829
 
@@ -911,6 +953,10 @@ class CCF_Form_Handler {
911
  $message = str_ireplace( '[current_date_time]', date( 'F j, Y, g:i a' ), $message );
912
  }
913
 
 
 
 
 
914
  foreach ( $fields as $field_id ) {
915
  $field_slug = get_post_meta( $field_id, 'ccf_field_slug', true );
916
 
@@ -1032,7 +1078,7 @@ class CCF_Form_Handler {
1032
  }
1033
 
1034
  if ( 'redirect' === $output['action_type'] ) {
1035
- $output['completion_redirect_url'] = get_post_meta( $form_id, 'ccf_form_completion_redirect_url', true );
1036
  } else {
1037
  $output['completion_message'] = get_post_meta( $form_id, 'ccf_form_completion_message', true );
1038
 
32
  'recaptcha' => array(
33
  'validator' => array( $this, 'valid_recaptcha' ),
34
  ),
35
+ 'simple-captcha' => array(
36
+ 'validator' => array( $this, 'valid_simple_captcha' ),
37
+ ),
38
  'paragraph-text' => array(
39
  'sanitizer' => 'sanitize_text_field',
40
  'validator' => array( $this, 'not_empty' ),
231
 
232
  if ( $required ) {
233
  if ( ! is_array( $value ) ) {
234
+ if ( empty( $value ) && $value !== '0' ) {
235
  $error = true;
236
  }
237
  } else {
270
  return true;
271
  }
272
 
273
+ /**
274
+ * Check if simple captcha response is valid
275
+ *
276
+ * @since 7.7
277
+ * @param string $value
278
+ * @param int $field_id
279
+ * @param boolean $required
280
+ * @return boolean|array
281
+ */
282
+ public function valid_simple_captcha( $value, $field_id, $required ) {
283
+ $slug = get_post_meta( $field_id, 'ccf_field_slug', true );
284
+
285
+ if ( empty( $value ) || empty( $_SESSION['ccf_simple_captcha_' . $slug] ) || empty( $_SESSION['ccf_simple_captcha_' . $slug]['code'] ) || strtolower( $_SESSION['ccf_simple_captcha_' . $slug]['code'] ) !== strtolower( trim( $value ) ) ) {
286
+ return array( 'simple-captcha' => esc_html__( 'Your CAPTCHA response was incorrect.', 'custom-contact-forms' ) );
287
+ }
288
+
289
+ return true;
290
+ }
291
+
292
  /**
293
  * Simple callback to determine if a phone number is valid
294
  *
573
  * @since 6.0
574
  */
575
  public function setup() {
576
+ add_action( 'init', array( $this, 'submit_listen' ), 11 );
577
+ add_action( 'init', array( $this, 'start_session' ) );
578
+ }
579
+
580
+ /**
581
+ * Start a session for captcha later
582
+ *
583
+ * @since 7.7
584
+ */
585
+ public function start_session() {
586
+ if ( session_id() === '' ) {
587
+ session_start();
588
+ }
589
  }
590
 
591
  /**
643
  $submission = array();
644
 
645
  $skip_fields = apply_filters( 'ccf_skip_fields', array( 'html', 'section-header' ), $form->ID );
646
+ $save_skip_fields = apply_filters( 'ccf_save_skip_fields', array( 'recaptcha', 'simple-captcha' ), $form->ID );
647
  $file_ids = array();
648
  $all_form_fields = array();
649
 
725
 
726
  update_post_meta( $submission_id, 'ccf_submission_ip', sanitize_text_field( $_SERVER['REMOTE_ADDR'] ) );
727
 
728
+ /**
729
+ * @since 7.7
730
+ */
731
+ if ( ! empty( $_POST['form_page'] ) ) {
732
+ $form_page = $_POST['form_page'];
733
+ update_post_meta( $submission_id, 'ccf_submission_form_page', esc_url_raw( $form_page ) );
734
+ } else {
735
+ $form_page = null;
736
+ }
737
+
738
  foreach ( $file_ids as $file_id ) {
739
  wp_update_post( array(
740
  'ID' => $file_id,
835
 
836
  $notifications = get_post_meta( $form_id, 'ccf_form_notifications', true );
837
 
 
 
838
  if ( ! empty( $notifications ) ) {
839
  foreach ( $notifications as $notification ) {
840
  if ( ! empty( $notification['active'] ) && ! empty( $notification['addresses'] ) ) {
865
  <?php endif; ?>
866
  </div>
867
  <div style="margin-bottom: 10px;">
868
+ <?php if ( ! empty( $field ) || $field === '0') : ?>
869
 
870
  <?php if ( 'date' === $type ) : ?>
871
 
953
  $message = str_ireplace( '[current_date_time]', date( 'F j, Y, g:i a' ), $message );
954
  }
955
 
956
+ if ( false !== stripos( $message, '[form_page_url]' ) ) {
957
+ $message = str_ireplace( '[form_page_url]', esc_url_raw( $form_page ), $message );
958
+ }
959
+
960
  foreach ( $fields as $field_id ) {
961
  $field_slug = get_post_meta( $field_id, 'ccf_field_slug', true );
962
 
1078
  }
1079
 
1080
  if ( 'redirect' === $output['action_type'] ) {
1081
+ $output['completion_redirect_url'] = apply_filters( 'ccf_form_completion_redirect_url', get_post_meta( $form_id, 'ccf_form_completion_redirect_url', true ), $form_id );
1082
  } else {
1083
  $output['completion_message'] = get_post_meta( $form_id, 'ccf_form_completion_message', true );
1084
 
classes/class-ccf-form-manager.php CHANGED
@@ -223,7 +223,7 @@ class CCF_Form_Manager {
223
  <label for="ccf_form_email_notification_content"><?php esc_html_e( 'Email Content (HTML):', 'custom-contact-forms' ); ?></label>
224
  <textarea id="ccf_form_email_notification_content" class="form-email-notification-content">{{ notification.content }}</textarea><br />
225
  <p class="variables">
226
- <strong><?php esc_html_e( 'Variables:', 'custom-contact-forms' ); ?></strong> [all_fields] [ip_address] [current_date_time]
227
  <span class="field-variables"></span>
228
 
229
  </p>
@@ -396,6 +396,14 @@ class CCF_Form_Manager {
396
  <label for="ccf_form_pause_message"><?php esc_html_e( 'Pause Message:', 'custom-contact-forms' ); ?></label>
397
  <textarea class="widefat form-pause-message" id="ccf_form_pause_message" name="pause-message">{{ form.pauseMessage }}</textarea>
398
  </p>
 
 
 
 
 
 
 
 
399
 
400
  <h3><?php esc_html_e( 'Email Notifications', 'custom-contact-forms' ); ?></h3>
401
 
@@ -626,7 +634,7 @@ class CCF_Form_Manager {
626
  </div>
627
  <div>
628
  <label for="ccf-field-file-extensions"><?php esc_html_e( 'Allowed File Extensions (comma separate):', 'custom-contact-forms' ); ?></label>
629
- <input id="ccf-field-file-extensions" class="field-file-extensions" type="text" value="{{ field.fileExtensions }}">
630
  <span class="explain"><?php _e( 'If left blank, will default to all extensions registered by WordPress. If you use a file extension or mime type not <a href="http://codex.wordpress.org/Function_Reference/get_allowed_mime_types">whitelisted by WordPress</a>, you will need to filter and manually whitelist the new extension.', 'custom-contact-forms' ); ?></span>
631
  </div>
632
  <div>
@@ -710,29 +718,34 @@ class CCF_Form_Manager {
710
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
711
  <input id="ccf-field-class-name" class="field-class-name" type="text" value="{{ field.className }}">
712
  </div>
 
 
 
 
 
 
 
 
713
  <div>
714
- <label for="ccf-field-conditionals-enabled"><?php esc_html_e( 'Enable Conditional Logic:', 'custom-contact-forms' ); ?></label>
715
- <select id="ccf-field-conditionals-enabled" class="field-conditionals-enabled">
716
- <option value="0"><?php esc_html_e( 'No', 'custom-contact-forms' ); ?></option>
717
- <option value="1" <# if ( field.conditionalsEnabled ) { #>selected="selected"<# } #>><?php esc_html_e( 'Yes', 'custom-contact-forms' ); ?></option>
718
- </select>
719
  </div>
720
- <div class="<# if ( ! field.conditionalsEnabled ) { #>hide<# } #>">
721
- <select class="field-conditional-type">
722
- <option value="hide"><?php esc_html_e( 'Hide', 'custom-contact-forms' ); ?></option>
723
- <option <# if ( 'show' === field.conditionalType ) { #>selected="selected"<# } #> value="show"><?php esc_html_e( 'Show', 'custom-contact-forms' ); ?></option>
724
- </select>
725
-
726
- <?php esc_html_e( 'this field if', 'custom-contact-forms' ); ?>
727
-
728
- <select class="field-conditional-fields-required">
729
- <option value="all"><?php esc_html_e( 'All', 'custom-contact-forms' ); ?></option>
730
- <option <# if ( 'any' === field.conditionalFieldsRequired ) { #>selected="selected"<# } #> value="any"><?php esc_html_e( 'Any', 'custom-contact-forms' ); ?></option>
731
- </select>
732
-
733
- <?php esc_html_e( 'of these conditions are true:', 'custom-contact-forms' ); ?>
734
  </div>
735
- <div class="conditionals <# if ( ! field.conditionalsEnabled ) { #>hide<# } #>">
 
 
 
 
 
 
 
 
 
 
 
736
  </div>
737
  </div>
738
  </div>
@@ -1264,6 +1277,16 @@ class CCF_Form_Manager {
1264
  <option value="international" <# if ( 'international' === field.addressType ) { #>selected="selected"<# } #>><?php esc_html_e( 'International', 'custom-contact-forms' ); ?></option>
1265
  </select>
1266
  </div>
 
 
 
 
 
 
 
 
 
 
1267
  <div>
1268
  <label for="ccf-field-required"><?php esc_html_e( 'Required:', 'custom-contact-forms' ); ?></label>
1269
  <select id="ccf-field-required" class="field-required">
@@ -1648,7 +1671,17 @@ class CCF_Form_Manager {
1648
 
1649
  <script type="text/html" id="ccf-recaptcha-preview-template">
1650
  <label>{{ field.label }} <# if ( field.required ) { #><span class="required">*</span><# } #> <# if ( field.conditionalsEnabled ) { #><span class="conditionals-enabled">if</span><# } #></label>
1651
- <img class="recaptcha-preview-img" src="<?php echo plugins_url( 'img/recaptcha.png', dirname( __FILE__ ) ); ?>">
 
 
 
 
 
 
 
 
 
 
1652
  <# if ( field.description ) { #>
1653
  <div class="field-description">{{ field.description }}</div>
1654
  <# } #>
@@ -1845,7 +1878,7 @@ class CCF_Form_Manager {
1845
  <div class="right">
1846
  <select>
1847
  <?php foreach ( CCF_Constants::factory()->get_countries() as $country ) : ?>
1848
- <option><?php echo $country; ?></option>
1849
  <?php endforeach; ?>
1850
  </select>
1851
  <label class="sub-label"><?php esc_html_e( 'Country', 'custom-contact-forms' ); ?></label>
@@ -2095,6 +2128,14 @@ class CCF_Form_Manager {
2095
  <div class="field-content">
2096
  {{ submission.ip_address }}
2097
  </div>
 
 
 
 
 
 
 
 
2098
  </div>
2099
  </div>
2100
  </td>
@@ -2176,6 +2217,7 @@ class CCF_Form_Manager {
2176
  'address' => __( 'Address', 'custom-contact-forms' ),
2177
  'phone' => __( 'Phone', 'custom-contact-forms' ),
2178
  'recaptcha' => __( 'reCAPTCHA', 'custom-contact-forms' ),
 
2179
  ));
2180
 
2181
  wp_register_script( 'moment', plugins_url( '/bower_components/moment/moment.js', dirname( __FILE__ ) ), array(), CCF_VERSION );
@@ -2207,6 +2249,7 @@ class CCF_Form_Manager {
2207
  'postsPerPage' => (int) get_option( 'posts_per_page' ),
2208
  'structureFieldLabels' => $structure_field_labels,
2209
  'specialFieldLabels' => $special_field_labels,
 
2210
  'maxFileSize' => floor( wp_max_upload_size() / 1000 / 1000 ),
2211
  'noEmailFields' => esc_html__( 'You have no email fields', 'custom-contact-forms' ),
2212
  'noAvailableFields' => esc_html__( 'No available fields', 'custom-contact-forms' ),
@@ -2218,7 +2261,7 @@ class CCF_Form_Manager {
2218
  'fieldLabel' => esc_html__( 'Field Label', 'custom-contact-forms' ),
2219
  'thickboxTitle' => esc_html__( 'Form Submission', 'custom-contact-forms' ),
2220
  'pauseMessage' => esc_html__( 'This form is paused right now. Check back later!', 'custom-contact-forms' ),
2221
- 'skipFields' => apply_filters( 'ccf_no_submission_display_fields', array( 'html', 'section-header', 'recaptcha' ) ),
2222
  'choosePostField' => esc_html__( 'Choose a Post Field', 'custom-contact-forms' ),
2223
  'postFields' => array(
2224
  'single' => array(
223
  <label for="ccf_form_email_notification_content"><?php esc_html_e( 'Email Content (HTML):', 'custom-contact-forms' ); ?></label>
224
  <textarea id="ccf_form_email_notification_content" class="form-email-notification-content">{{ notification.content }}</textarea><br />
225
  <p class="variables">
226
+ <strong><?php esc_html_e( 'Variables:', 'custom-contact-forms' ); ?></strong> [all_fields] [ip_address] [current_date_time] [form_page_url]
227
  <span class="field-variables"></span>
228
 
229
  </p>
396
  <label for="ccf_form_pause_message"><?php esc_html_e( 'Pause Message:', 'custom-contact-forms' ); ?></label>
397
  <textarea class="widefat form-pause-message" id="ccf_form_pause_message" name="pause-message">{{ form.pauseMessage }}</textarea>
398
  </p>
399
+ <p>
400
+ <label for="ccf_form_require_logged_in"><?php esc_html_e( 'Require User to Be Logged In:', 'custom-contact-forms' ); ?></label>
401
+
402
+ <select name="form_require_logged_in" class="form-require-logged-in" id="ccf_form_require_logged_in">
403
+ <option value="0"><?php esc_html_e( 'No', 'custom-contact-forms' ); ?></option>
404
+ <option value="1" <# if ( form.requireLoggedIn ) { #>selected<# } #>><?php esc_html_e( 'Yes', 'custom-contact-forms' ); ?></option>
405
+ </select>
406
+ </p>
407
 
408
  <h3><?php esc_html_e( 'Email Notifications', 'custom-contact-forms' ); ?></h3>
409
 
634
  </div>
635
  <div>
636
  <label for="ccf-field-file-extensions"><?php esc_html_e( 'Allowed File Extensions (comma separate):', 'custom-contact-forms' ); ?></label>
637
+ <input id="ccf-field-file-extensions" class="field-file-extensions" type="text" value="{{ field.fileExtensions }}" placeholder="jpg,gif,png">
638
  <span class="explain"><?php _e( 'If left blank, will default to all extensions registered by WordPress. If you use a file extension or mime type not <a href="http://codex.wordpress.org/Function_Reference/get_allowed_mime_types">whitelisted by WordPress</a>, you will need to filter and manually whitelist the new extension.', 'custom-contact-forms' ); ?></span>
639
  </div>
640
  <div>
718
  <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
719
  <input id="ccf-field-class-name" class="field-class-name" type="text" value="{{ field.className }}">
720
  </div>
721
+ </div>
722
+ </div>
723
+ </script>
724
+
725
+ <script type="text/html" id="ccf-simple-captcha-template">
726
+ <div class="accordion-section <# if ( 'basic' === startPanel ) { #>expanded<# } #>">
727
+ <a class="accordion-heading">Basic</a>
728
+ <div class="section-content">
729
  <div>
730
+ <label for="ccf-field-label"><?php esc_html_e( 'Label:', 'custom-contact-forms' ); ?></label>
731
+ <input id="ccf-field-label" class="field-label" type="text" value="{{ field.label }}">
 
 
 
732
  </div>
733
+ <div>
734
+ <label for="ccf-field-description"><?php esc_html_e( 'Description:', 'custom-contact-forms' ); ?></label>
735
+ <textarea id="ccf-field-description" class="field-description">{{ field.description }}</textarea>
 
 
 
 
 
 
 
 
 
 
 
736
  </div>
737
+ </div>
738
+ </div>
739
+ <div class="accordion-section <# if ( 'advanced' === startPanel ) { #>expanded<# } #>">
740
+ <a class="accordion-heading"><?php esc_html_e( 'Advanced', 'custom-contact-forms' ); ?></a>
741
+ <div class="section-content">
742
+ <div>
743
+ <label for="ccf-field-class-name"><?php esc_html_e( 'Class Name:', 'custom-contact-forms' ); ?></label>
744
+ <input id="ccf-field-class-name" class="field-class-name" type="text" value="{{ field.className }}">
745
+ </div>
746
+ <div>
747
+ <label for="ccf-field-placeholder"><?php esc_html_e( 'Placeholder Text:', 'custom-contact-forms' ); ?></label>
748
+ <input id="ccf-field-placeholder" class="field-placeholder" type="text" value="{{ field.placeholder }}">
749
  </div>
750
  </div>
751
  </div>
1277
  <option value="international" <# if ( 'international' === field.addressType ) { #>selected="selected"<# } #>><?php esc_html_e( 'International', 'custom-contact-forms' ); ?></option>
1278
  </select>
1279
  </div>
1280
+ <# if ( 'international' === field.addressType ) { #>
1281
+ <div>
1282
+ <label for="ccf-field-default-country"><?php esc_html_e( 'Default Country:', 'custom-contact-forms' ); ?></label>
1283
+ <select id="ccf-field-default-country" class="field-default-country">
1284
+ <?php foreach ( CCF_Constants::factory()->get_countries() as $country ) : ?>
1285
+ <option <# if ( "<?php echo $country; ?>" === field.defaultCountry ) { #>selected<# } #>><?php echo $country; ?></option>
1286
+ <?php endforeach; ?>
1287
+ </select>
1288
+ </div>
1289
+ <# } #>
1290
  <div>
1291
  <label for="ccf-field-required"><?php esc_html_e( 'Required:', 'custom-contact-forms' ); ?></label>
1292
  <select id="ccf-field-required" class="field-required">
1671
 
1672
  <script type="text/html" id="ccf-recaptcha-preview-template">
1673
  <label>{{ field.label }} <# if ( field.required ) { #><span class="required">*</span><# } #> <# if ( field.conditionalsEnabled ) { #><span class="conditionals-enabled">if</span><# } #></label>
1674
+ <img class="recaptcha-preview-img" src="<?php echo plugins_url( 'assets/img/recaptcha.png', dirname( __FILE__ ) ); ?>">
1675
+ <# if ( field.description ) { #>
1676
+ <div class="field-description">{{ field.description }}</div>
1677
+ <# } #>
1678
+ </script>
1679
+
1680
+ <script type="text/html" id="ccf-simple-captcha-preview-template">
1681
+ <label>{{ field.label }} <# if ( field.required ) { #><span class="required">*</span><# } #></label>
1682
+ <img class="simple-captcha-preview-img" src="<?php echo plugins_url( 'assets/img/simple-captcha.png', dirname( __FILE__ ) ); ?>">
1683
+
1684
+ <input disabled type="text" placeholder="{{ field.placeholder }}" value="{{ field.value }}">
1685
  <# if ( field.description ) { #>
1686
  <div class="field-description">{{ field.description }}</div>
1687
  <# } #>
1878
  <div class="right">
1879
  <select>
1880
  <?php foreach ( CCF_Constants::factory()->get_countries() as $country ) : ?>
1881
+ <option <# if ( "<?php echo $country; ?>" === field.defaultCountry ) { #>selected<# } #>><?php echo $country; ?></option>
1882
  <?php endforeach; ?>
1883
  </select>
1884
  <label class="sub-label"><?php esc_html_e( 'Country', 'custom-contact-forms' ); ?></label>
2128
  <div class="field-content">
2129
  {{ submission.ip_address }}
2130
  </div>
2131
+ <# if ( submission.form_page_url ) { #>
2132
+ <div class="field-slug">
2133
+ <?php esc_html_e( 'Form Page URL', 'custom-contact-forms' ); ?>
2134
+ </div>
2135
+ <div class="field-content">
2136
+ {{ submission.form_page_url }}
2137
+ </div>
2138
+ <# } #>
2139
  </div>
2140
  </div>
2141
  </td>
2217
  'address' => __( 'Address', 'custom-contact-forms' ),
2218
  'phone' => __( 'Phone', 'custom-contact-forms' ),
2219
  'recaptcha' => __( 'reCAPTCHA', 'custom-contact-forms' ),
2220
+ 'simple-captcha' => __( 'Simple CAPTCHA', 'custom-contact-forms' ),
2221
  ));
2222
 
2223
  wp_register_script( 'moment', plugins_url( '/bower_components/moment/moment.js', dirname( __FILE__ ) ), array(), CCF_VERSION );
2249
  'postsPerPage' => (int) get_option( 'posts_per_page' ),
2250
  'structureFieldLabels' => $structure_field_labels,
2251
  'specialFieldLabels' => $special_field_labels,
2252
+ 'defaultSimpleCaptchaPlaceholder' => esc_html__( 'Type the characters in the image', 'custom-contact-forms' ),
2253
  'maxFileSize' => floor( wp_max_upload_size() / 1000 / 1000 ),
2254
  'noEmailFields' => esc_html__( 'You have no email fields', 'custom-contact-forms' ),
2255
  'noAvailableFields' => esc_html__( 'No available fields', 'custom-contact-forms' ),
2261
  'fieldLabel' => esc_html__( 'Field Label', 'custom-contact-forms' ),
2262
  'thickboxTitle' => esc_html__( 'Form Submission', 'custom-contact-forms' ),
2263
  'pauseMessage' => esc_html__( 'This form is paused right now. Check back later!', 'custom-contact-forms' ),
2264
+ 'skipFields' => apply_filters( 'ccf_no_submission_display_fields', array( 'html', 'section-header', 'recaptcha', 'simple-captcha' ) ),
2265
  'choosePostField' => esc_html__( 'Choose a Post Field', 'custom-contact-forms' ),
2266
  'postFields' => array(
2267
  'single' => array(
classes/class-ccf-form-renderer.php CHANGED
@@ -159,13 +159,21 @@ class CCF_Form_Renderer {
159
 
160
  $pause = get_post_meta( $form_id, 'ccf_form_pause', true );
161
 
 
 
162
  if ( empty( $fields ) ) {
163
  return '';
164
  }
165
 
166
  ob_start();
167
 
168
- if ( ! empty( $pause ) ) {
 
 
 
 
 
 
169
  $pause_message = get_post_meta( $form_id, 'ccf_form_pause_message', true );
170
  ?>
171
 
159
 
160
  $pause = get_post_meta( $form_id, 'ccf_form_pause', true );
161
 
162
+ $require_logged_in = get_post_meta( $form_id, 'ccf_form_require_logged_in', true );
163
+
164
  if ( empty( $fields ) ) {
165
  return '';
166
  }
167
 
168
  ob_start();
169
 
170
+ if ( ! empty( $require_logged_in ) && ! is_user_logged_in() ) {
171
+ ?>
172
+ <div class="ccf-form-require-logged-in form-id-<?php echo (int) $form_id; ?>">
173
+ <?php esc_html_e( 'Log in to view this form.', 'custom-contact-forms' ); ?>
174
+ </div>
175
+ <?php
176
+ } elseif ( ! empty( $pause ) ) {
177
  $pause_message = get_post_meta( $form_id, 'ccf_form_pause_message', true );
178
  ?>
179
 
custom-contact-forms.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: http://www.taylorlovett.com
5
  * Description: Build beautiful custom forms and manage submissions the WordPress way. View live previews of your forms while you build them. Contact forms, subscription forms, payment forms, etc.
6
  * Author: Taylor Lovett
7
- * Version: 7.6
8
  * Text Domain: custom-contact-forms
9
  * Domain Path: /languages
10
  * Author URI: http://www.taylorlovett.com
@@ -14,7 +14,7 @@
14
  * Include plugin reqs
15
  */
16
 
17
- define( 'CCF_VERSION', '7.6' );
18
 
19
  require_once( dirname( __FILE__ ) . '/classes/class-ccf-constants.php' );
20
  require_once( dirname( __FILE__ ) . '/classes/class-ccf-custom-contact-forms.php' );
4
  * Plugin URI: http://www.taylorlovett.com
5
  * Description: Build beautiful custom forms and manage submissions the WordPress way. View live previews of your forms while you build them. Contact forms, subscription forms, payment forms, etc.
6
  * Author: Taylor Lovett
7
+ * Version: 7.7
8
  * Text Domain: custom-contact-forms
9
  * Domain Path: /languages
10
  * Author URI: http://www.taylorlovett.com
14
  * Include plugin reqs
15
  */
16
 
17
+ define( 'CCF_VERSION', '7.7' );
18
 
19
  require_once( dirname( __FILE__ ) . '/classes/class-ccf-constants.php' );
20
  require_once( dirname( __FILE__ ) . '/classes/class-ccf-custom-contact-forms.php' );
languages/custom-contact-forms.mo CHANGED
Binary file
languages/custom-contact-forms.po CHANGED
@@ -5,8 +5,8 @@ msgstr ""
5
  "Project-Id-Version: Custom Contact Forms\n"
6
  "Report-Msgid-Bugs-To: https://github.com/tlovett1/custom-contact-forms/"
7
  "issues\n"
8
- "POT-Creation-Date: 2016-02-18 00:29-0500\n"
9
- "PO-Revision-Date: 2016-02-18 00:29-0500\n"
10
  "Last-Translator: Taylor Lovett <tlovett88@gmail.com>\n"
11
  "Language-Team: \n"
12
  "Language: en\n"
@@ -23,23 +23,23 @@ msgstr ""
23
  "X-Textdomain-Support: yes\n"
24
  "X-Poedit-SearchPath-0: ..\n"
25
 
26
- #: ../classes/class-ccf-api-form-controller.php:657
27
  msgid "Form not found"
28
  msgstr ""
29
 
30
- #: ../classes/class-ccf-api-form-controller.php:683
31
  msgid "Could not create form"
32
  msgstr ""
33
 
34
- #: ../classes/class-ccf-api-form-controller.php:713
35
  msgid "Could not update form"
36
  msgstr ""
37
 
38
- #: ../classes/class-ccf-api-form-controller.php:741
39
  msgid "Could not delete form"
40
  msgstr ""
41
 
42
- #: ../classes/class-ccf-api-form-controller.php:770
43
  msgid "Could not delete submission"
44
  msgstr ""
45
 
@@ -59,7 +59,7 @@ msgstr ""
59
  msgid "<a href=\"%s\">Forms and Submissions</a>"
60
  msgstr ""
61
 
62
- #: ../classes/class-ccf-export.php:58 ../classes/class-ccf-form-cpt.php:574
63
  msgid "Forms and Submissions"
64
  msgstr ""
65
 
@@ -71,122 +71,122 @@ msgstr ""
71
  msgid "Form Fields"
72
  msgstr ""
73
 
74
- #: ../classes/class-ccf-field-renderer.php:128
75
  #, php-format
76
  msgid "Allowed file extensions are %s. "
77
  msgstr ""
78
 
79
- #: ../classes/class-ccf-field-renderer.php:130
80
  #, php-format
81
  msgid "Max file size is %d MB. "
82
  msgstr ""
83
 
84
- #: ../classes/class-ccf-field-renderer.php:575
85
- #: ../classes/class-ccf-form-manager.php:1802
86
- #: ../classes/class-ccf-form-manager.php:1827
87
  msgid "Street Address"
88
  msgstr ""
89
 
90
- #: ../classes/class-ccf-field-renderer.php:579
91
- #: ../classes/class-ccf-form-manager.php:1806
92
- #: ../classes/class-ccf-form-manager.php:1831
93
  msgid "Address Line 2"
94
  msgstr ""
95
 
96
- #: ../classes/class-ccf-field-renderer.php:586
97
- #: ../classes/class-ccf-form-manager.php:1810
98
- #: ../classes/class-ccf-form-manager.php:1835
99
  msgid "City"
100
  msgstr ""
101
 
102
- #: ../classes/class-ccf-field-renderer.php:599
103
- #: ../classes/class-ccf-form-manager.php:1818
104
  msgid "State"
105
  msgstr ""
106
 
107
- #: ../classes/class-ccf-field-renderer.php:607
108
- #: ../classes/class-ccf-form-manager.php:1822
109
  msgid "ZIP Code"
110
  msgstr ""
111
 
112
- #: ../classes/class-ccf-field-renderer.php:617
113
- #: ../classes/class-ccf-form-manager.php:1839
114
  msgid "State / Region / Province"
115
  msgstr ""
116
 
117
- #: ../classes/class-ccf-field-renderer.php:625
118
- #: ../classes/class-ccf-form-manager.php:1843
119
  msgid "ZIP / Postal Code"
120
  msgstr ""
121
 
122
- #: ../classes/class-ccf-field-renderer.php:637
123
- #: ../classes/class-ccf-form-manager.php:1851
124
  msgid "Country"
125
  msgstr ""
126
 
127
- #: ../classes/class-ccf-field-renderer.php:815
128
- #: ../classes/class-ccf-form-manager.php:1862
129
  msgid "email@example.com"
130
  msgstr ""
131
 
132
- #: ../classes/class-ccf-field-renderer.php:827
133
  #: ../classes/class-ccf-form-manager.php:327
134
- #: ../classes/class-ccf-form-manager.php:1866
135
- #: ../classes/class-ccf-form-manager.php:2172
136
  msgid "Email"
137
  msgstr ""
138
 
139
- #: ../classes/class-ccf-field-renderer.php:834
140
- #: ../classes/class-ccf-form-manager.php:1870
141
  msgid "Confirm Email"
142
  msgstr ""
143
 
144
- #: ../classes/class-ccf-field-renderer.php:900
145
- #: ../classes/class-ccf-form-manager.php:1738
146
  msgid "First"
147
  msgstr ""
148
 
149
- #: ../classes/class-ccf-field-renderer.php:907
150
- #: ../classes/class-ccf-form-manager.php:1742
151
  msgid "Last"
152
  msgstr ""
153
 
154
- #: ../classes/class-ccf-field-renderer.php:981
155
- #: ../classes/class-ccf-field-renderer.php:1002
156
- #: ../classes/class-ccf-form-manager.php:1757
157
- #: ../classes/class-ccf-form-manager.php:1778
158
  msgid "HH"
159
  msgstr ""
160
 
161
- #: ../classes/class-ccf-field-renderer.php:985
162
- #: ../classes/class-ccf-field-renderer.php:1006
163
- #: ../classes/class-ccf-form-manager.php:1761
164
- #: ../classes/class-ccf-form-manager.php:1782
165
  msgid "MM"
166
  msgstr ""
167
 
168
- #: ../classes/class-ccf-field-renderer.php:989
169
- #: ../classes/class-ccf-field-renderer.php:1010
170
- #: ../classes/class-ccf-form-manager.php:1765
171
- #: ../classes/class-ccf-form-manager.php:1786
172
  msgid "AM"
173
  msgstr ""
174
 
175
- #: ../classes/class-ccf-field-renderer.php:990
176
- #: ../classes/class-ccf-field-renderer.php:1011
177
- #: ../classes/class-ccf-form-manager.php:1766
178
- #: ../classes/class-ccf-form-manager.php:1787
179
  msgid "PM"
180
  msgstr ""
181
 
182
- #: ../classes/class-ccf-field-renderer.php:997
183
- #: ../classes/class-ccf-form-cpt.php:509
184
- #: ../classes/class-ccf-form-manager.php:513
185
- #: ../classes/class-ccf-form-manager.php:526
186
- #: ../classes/class-ccf-form-manager.php:1773
187
- #: ../classes/class-ccf-form-manager.php:1957
188
- #: ../classes/class-ccf-form-manager.php:1971
189
- #: ../classes/class-ccf-form-manager.php:2114
190
  msgid "Date"
191
  msgstr ""
192
 
@@ -196,8 +196,8 @@ msgstr ""
196
 
197
  #: ../classes/class-ccf-form-cpt.php:324 ../classes/class-ccf-form-cpt.php:342
198
  #: ../classes/class-ccf-form-cpt.php:507
199
- #: ../classes/class-ccf-form-manager.php:516
200
- #: ../classes/class-ccf-form-manager.php:529
201
  msgid "Submissions"
202
  msgstr ""
203
 
@@ -242,7 +242,7 @@ msgid "Export"
242
  msgstr ""
243
 
244
  #: ../classes/class-ccf-form-cpt.php:445
245
- #: ../classes/class-ccf-form-manager.php:1898
246
  msgid "(No title)"
247
  msgstr ""
248
 
@@ -255,218 +255,226 @@ msgid "Form Title"
255
  msgstr ""
256
 
257
  #: ../classes/class-ccf-form-cpt.php:506
258
- #: ../classes/class-ccf-form-manager.php:514
259
- #: ../classes/class-ccf-form-manager.php:527
260
  msgid "Author"
261
  msgstr ""
262
 
263
  #: ../classes/class-ccf-form-cpt.php:508
264
- #: ../classes/class-ccf-form-manager.php:515
265
- #: ../classes/class-ccf-form-manager.php:528
266
  msgid "Number of Fields"
267
  msgstr ""
268
 
269
- #: ../classes/class-ccf-form-cpt.php:542
 
 
 
 
270
  msgid "Unpublished"
271
  msgstr ""
272
 
273
- #: ../classes/class-ccf-form-cpt.php:544
274
  msgid "Y/m/d g:i:s A"
275
  msgstr ""
276
 
277
- #: ../classes/class-ccf-form-cpt.php:551
278
  #, php-format
279
  msgid "%s ago"
280
  msgstr ""
281
 
282
- #: ../classes/class-ccf-form-cpt.php:552
283
  msgid "Y/m/d"
284
  msgstr ""
285
 
286
- #: ../classes/class-ccf-form-cpt.php:568 ../classes/class-ccf-form-cpt.php:580
287
  msgid "Forms"
288
  msgstr ""
289
 
290
- #: ../classes/class-ccf-form-cpt.php:569
291
  msgid "Form"
292
  msgstr ""
293
 
294
- #: ../classes/class-ccf-form-cpt.php:570 ../classes/class-ccf-form-cpt.php:573
295
  #: ../classes/class-ccf-form-manager.php:88
296
  msgid "New Form"
297
  msgstr ""
298
 
299
- #: ../classes/class-ccf-form-cpt.php:571
300
  msgid "Add New Form"
301
  msgstr ""
302
 
303
- #: ../classes/class-ccf-form-cpt.php:572
304
  msgid "Edit Form"
305
  msgstr ""
306
 
307
- #: ../classes/class-ccf-form-cpt.php:575
308
  msgid "View Form"
309
  msgstr ""
310
 
311
- #: ../classes/class-ccf-form-cpt.php:576
312
  msgid "Search Forms"
313
  msgstr ""
314
 
315
- #: ../classes/class-ccf-form-cpt.php:577
316
  msgid "No forms found."
317
  msgstr ""
318
 
319
- #: ../classes/class-ccf-form-cpt.php:578
320
  msgid "No forms found in trash."
321
  msgstr ""
322
 
323
- #: ../classes/class-ccf-form-handler.php:130
324
- #: ../classes/class-ccf-form-handler.php:211
325
- #: ../classes/class-ccf-form-handler.php:248
326
- #: ../classes/class-ccf-form-handler.php:326
327
- #: ../classes/class-ccf-form-handler.php:330
328
- #: ../classes/class-ccf-form-handler.php:334
329
- #: ../classes/class-ccf-form-handler.php:338
330
- #: ../classes/class-ccf-form-handler.php:343
331
- #: ../classes/class-ccf-form-handler.php:368
332
- #: ../classes/class-ccf-form-handler.php:376
333
- #: ../classes/class-ccf-form-handler.php:384
334
- #: ../classes/class-ccf-form-handler.php:438
335
  #: ../classes/class-ccf-form-renderer.php:99
336
  msgid "This field is required."
337
  msgstr ""
338
 
339
- #: ../classes/class-ccf-form-handler.php:141
340
  #, php-format
341
  msgid "This file is too big (%d MB max)"
342
  msgstr ""
343
 
344
- #: ../classes/class-ccf-form-handler.php:145
345
  msgid "An upload error occurred."
346
  msgstr ""
347
 
348
- #: ../classes/class-ccf-form-handler.php:167
349
  msgid "File contains an invalid extension."
350
  msgstr ""
351
 
352
- #: ../classes/class-ccf-form-handler.php:264
353
  #: ../classes/class-ccf-form-renderer.php:106
354
  msgid "Your reCAPTCHA response was incorrect."
355
  msgstr ""
356
 
357
- #: ../classes/class-ccf-form-handler.php:283
 
 
 
 
358
  msgid "This field is required"
359
  msgstr ""
360
 
361
- #: ../classes/class-ccf-form-handler.php:288
362
  msgid "This phone number is too short"
363
  msgstr ""
364
 
365
- #: ../classes/class-ccf-form-handler.php:291
366
  msgid "ccf_field_phoneFormat"
367
  msgstr ""
368
 
369
- #: ../classes/class-ccf-form-handler.php:294
370
  msgid "This phone number contains invalid characters."
371
  msgstr ""
372
 
373
- #: ../classes/class-ccf-form-handler.php:300
374
  msgid "This phone number is not 10 digits."
375
  msgstr ""
376
 
377
- #: ../classes/class-ccf-form-handler.php:371
378
- #: ../classes/class-ccf-form-handler.php:387
379
  msgid "This is not a valid email"
380
  msgstr ""
381
 
382
- #: ../classes/class-ccf-form-handler.php:379
383
  #: ../classes/class-ccf-form-renderer.php:104
384
  msgid "Emails do not match."
385
  msgstr ""
386
 
387
- #: ../classes/class-ccf-form-handler.php:412
388
  msgid "First name is required."
389
  msgstr ""
390
 
391
- #: ../classes/class-ccf-form-handler.php:416
392
  msgid "Last name is required."
393
  msgstr ""
394
 
395
- #: ../classes/class-ccf-form-handler.php:441
396
  #: ../classes/class-ccf-form-renderer.php:116
397
  msgid "This is not a valid URL. URL's must start with http(s)://"
398
  msgstr ""
399
 
400
- #: ../classes/class-ccf-form-handler.php:469
401
- #: ../classes/class-ccf-form-handler.php:501
402
  #: ../classes/class-ccf-form-renderer.php:100
403
  msgid "Date is required."
404
  msgstr ""
405
 
406
- #: ../classes/class-ccf-form-handler.php:472
407
- #: ../classes/class-ccf-form-handler.php:504
408
  #: ../classes/class-ccf-form-renderer.php:111
409
  msgid "This date is not valid."
410
  msgstr ""
411
 
412
- #: ../classes/class-ccf-form-handler.php:477
413
- #: ../classes/class-ccf-form-handler.php:509
414
  #: ../classes/class-ccf-form-renderer.php:101
415
  msgid "Hour is required."
416
  msgstr ""
417
 
418
- #: ../classes/class-ccf-form-handler.php:480
419
- #: ../classes/class-ccf-form-handler.php:512
420
  #: ../classes/class-ccf-form-renderer.php:110
421
  msgid "This is not a valid hour."
422
  msgstr ""
423
 
424
- #: ../classes/class-ccf-form-handler.php:485
425
- #: ../classes/class-ccf-form-handler.php:517
426
  #: ../classes/class-ccf-form-renderer.php:102
427
  msgid "Minute is required."
428
  msgstr ""
429
 
430
- #: ../classes/class-ccf-form-handler.php:488
431
- #: ../classes/class-ccf-form-handler.php:520
432
  #: ../classes/class-ccf-form-renderer.php:112
433
  msgid "This is not a valid minute."
434
  msgstr ""
435
 
436
- #: ../classes/class-ccf-form-handler.php:493
437
- #: ../classes/class-ccf-form-handler.php:525
438
  #: ../classes/class-ccf-form-renderer.php:103
439
  msgid "AM/PM is required."
440
  msgstr ""
441
 
442
- #: ../classes/class-ccf-form-handler.php:763
443
  msgid "Post created by form"
444
  msgstr ""
445
 
446
- #: ../classes/class-ccf-form-handler.php:814
447
  msgid "*Hidden Field*"
448
  msgstr ""
449
 
450
- #: ../classes/class-ccf-form-handler.php:886
451
  msgid "Form submitted from"
452
  msgstr ""
453
 
454
- #: ../classes/class-ccf-form-handler.php:895
455
  msgid "Form submitter IP"
456
  msgstr ""
457
 
458
- #: ../classes/class-ccf-form-handler.php:980
459
  #, php-format
460
  msgid "%s: Form Submission"
461
  msgstr ""
462
 
463
- #: ../classes/class-ccf-form-handler.php:982
464
  #, php-format
465
  msgid " to \"%s\""
466
  msgstr ""
467
 
468
- #: ../classes/class-ccf-form-handler.php:1040
469
- #: ../classes/class-ccf-form-renderer.php:188
470
  msgid "Thank you for your submission."
471
  msgstr ""
472
 
@@ -532,7 +540,7 @@ msgid "&larr; Drag fields from the left here."
532
  msgstr ""
533
 
534
  #: ../classes/class-ccf-form-manager.php:152
535
- #: ../classes/class-ccf-form-manager.php:1901
536
  msgid "Insert into post"
537
  msgstr ""
538
 
@@ -553,7 +561,7 @@ msgid "(Untitled)"
553
  msgstr ""
554
 
555
  #: ../classes/class-ccf-form-manager.php:172
556
- #: ../classes/class-ccf-form-manager.php:1900
557
  msgid "Edit"
558
  msgstr ""
559
 
@@ -562,7 +570,7 @@ msgid "Delete"
562
  msgstr ""
563
 
564
  #: ../classes/class-ccf-form-manager.php:179
565
- #: ../classes/class-ccf-form-manager.php:2219
566
  msgid "Form Submission"
567
  msgstr ""
568
 
@@ -611,72 +619,72 @@ msgstr ""
611
 
612
  #: ../classes/class-ccf-form-manager.php:244
613
  #: ../classes/class-ccf-form-manager.php:391
614
- #: ../classes/class-ccf-form-manager.php:439
615
- #: ../classes/class-ccf-form-manager.php:567
616
- #: ../classes/class-ccf-form-manager.php:586
617
- #: ../classes/class-ccf-form-manager.php:641
618
- #: ../classes/class-ccf-form-manager.php:656
619
- #: ../classes/class-ccf-form-manager.php:716
620
- #: ../classes/class-ccf-form-manager.php:765
621
- #: ../classes/class-ccf-form-manager.php:784
622
- #: ../classes/class-ccf-form-manager.php:829
623
- #: ../classes/class-ccf-form-manager.php:878
624
- #: ../classes/class-ccf-form-manager.php:927
625
- #: ../classes/class-ccf-form-manager.php:946
626
- #: ../classes/class-ccf-form-manager.php:995
627
- #: ../classes/class-ccf-form-manager.php:1040
628
- #: ../classes/class-ccf-form-manager.php:1055
629
- #: ../classes/class-ccf-form-manager.php:1106
630
- #: ../classes/class-ccf-form-manager.php:1144
631
- #: ../classes/class-ccf-form-manager.php:1200
632
- #: ../classes/class-ccf-form-manager.php:1219
633
- #: ../classes/class-ccf-form-manager.php:1271
634
- #: ../classes/class-ccf-form-manager.php:1286
635
- #: ../classes/class-ccf-form-manager.php:1337
636
- #: ../classes/class-ccf-form-manager.php:1344
637
- #: ../classes/class-ccf-form-manager.php:1365
638
- #: ../classes/class-ccf-form-manager.php:1436
639
- #: ../classes/class-ccf-form-manager.php:1458
640
- #: ../classes/class-ccf-form-manager.php:1503
641
- #: ../classes/class-ccf-form-manager.php:1525
642
- #: ../classes/class-ccf-form-manager.php:1570
643
- #: ../classes/class-ccf-form-manager.php:1592
644
  #: ../classes/class-ccf-settings.php:103
645
  msgid "No"
646
  msgstr ""
647
 
648
  #: ../classes/class-ccf-form-manager.php:245
649
  #: ../classes/class-ccf-form-manager.php:392
650
- #: ../classes/class-ccf-form-manager.php:440
651
- #: ../classes/class-ccf-form-manager.php:566
652
- #: ../classes/class-ccf-form-manager.php:587
653
- #: ../classes/class-ccf-form-manager.php:640
654
- #: ../classes/class-ccf-form-manager.php:657
655
- #: ../classes/class-ccf-form-manager.php:717
656
- #: ../classes/class-ccf-form-manager.php:764
657
- #: ../classes/class-ccf-form-manager.php:785
658
- #: ../classes/class-ccf-form-manager.php:830
659
- #: ../classes/class-ccf-form-manager.php:879
660
- #: ../classes/class-ccf-form-manager.php:926
661
- #: ../classes/class-ccf-form-manager.php:947
662
- #: ../classes/class-ccf-form-manager.php:996
663
- #: ../classes/class-ccf-form-manager.php:1039
664
- #: ../classes/class-ccf-form-manager.php:1056
665
- #: ../classes/class-ccf-form-manager.php:1105
666
- #: ../classes/class-ccf-form-manager.php:1145
667
- #: ../classes/class-ccf-form-manager.php:1199
668
- #: ../classes/class-ccf-form-manager.php:1220
669
- #: ../classes/class-ccf-form-manager.php:1270
670
- #: ../classes/class-ccf-form-manager.php:1287
671
- #: ../classes/class-ccf-form-manager.php:1336
672
- #: ../classes/class-ccf-form-manager.php:1343
673
  #: ../classes/class-ccf-form-manager.php:1366
674
- #: ../classes/class-ccf-form-manager.php:1435
675
- #: ../classes/class-ccf-form-manager.php:1459
676
- #: ../classes/class-ccf-form-manager.php:1502
677
- #: ../classes/class-ccf-form-manager.php:1526
678
- #: ../classes/class-ccf-form-manager.php:1569
679
- #: ../classes/class-ccf-form-manager.php:1593
 
680
  #: ../classes/class-ccf-settings.php:104
681
  msgid "Yes"
682
  msgstr ""
@@ -836,340 +844,342 @@ msgid "Pause Message:"
836
  msgstr ""
837
 
838
  #: ../classes/class-ccf-form-manager.php:400
 
 
 
 
839
  msgid "Email Notifications"
840
  msgstr ""
841
 
842
- #: ../classes/class-ccf-form-manager.php:406
843
- #: ../classes/class-ccf-form-manager.php:417
844
- #: ../classes/class-ccf-form-manager.php:512
845
- #: ../classes/class-ccf-form-manager.php:525
846
  msgid "Title"
847
  msgstr ""
848
 
849
- #: ../classes/class-ccf-form-manager.php:407
850
- #: ../classes/class-ccf-form-manager.php:418
851
  msgid "Subject"
852
  msgstr ""
853
 
854
- #: ../classes/class-ccf-form-manager.php:408
855
- #: ../classes/class-ccf-form-manager.php:419
856
  msgid "To"
857
  msgstr ""
858
 
859
- #: ../classes/class-ccf-form-manager.php:409
860
- #: ../classes/class-ccf-form-manager.php:420
861
  msgid "Active"
862
  msgstr ""
863
 
864
- #: ../classes/class-ccf-form-manager.php:425
865
  msgid "New Notification"
866
  msgstr ""
867
 
868
- #: ../classes/class-ccf-form-manager.php:428
869
  msgid ""
870
  "For notification changes to take affect (updating, adding, deleting, etc.), "
871
  "you will need to save the form."
872
  msgstr ""
873
 
874
- #: ../classes/class-ccf-form-manager.php:432
875
  msgid "Post Creation"
876
  msgstr ""
877
 
878
- #: ../classes/class-ccf-form-manager.php:433
879
  msgid ""
880
  "You can have Custom Contact Forms create a post (or custom post type) "
881
  "whenever someone submits your form."
882
  msgstr ""
883
 
884
- #: ../classes/class-ccf-form-manager.php:436
885
  msgid "Enable Post Creation:"
886
  msgstr ""
887
 
888
- #: ../classes/class-ccf-form-manager.php:445
889
  msgid "Post Type:"
890
  msgstr ""
891
 
892
- #: ../classes/class-ccf-form-manager.php:455
893
  msgid "Post Status:"
894
  msgstr ""
895
 
896
- #: ../classes/class-ccf-form-manager.php:465
897
  msgid "Field Mappings:"
898
  msgstr ""
899
 
900
- #: ../classes/class-ccf-form-manager.php:470
901
  msgid ""
902
  "You can map as few or as many fields as you like. However, if no form fields "
903
  "are mapped, no post will be created. Mapping a field to post_title is "
904
  "required."
905
  msgstr ""
906
 
907
- #: ../classes/class-ccf-form-manager.php:482
908
  msgid "Custom Field Key"
909
  msgstr ""
910
 
911
- #: ../classes/class-ccf-form-manager.php:496
912
  msgid "items"
913
  msgstr ""
914
 
915
- #: ../classes/class-ccf-form-manager.php:511
916
- #: ../classes/class-ccf-form-manager.php:524
917
  msgid "ID"
918
  msgstr ""
919
 
920
- #: ../classes/class-ccf-form-manager.php:539
921
  msgid "<span>&larr;</span> Click on a field to edit it."
922
  msgstr ""
923
 
924
- #: ../classes/class-ccf-form-manager.php:548
925
- #: ../classes/class-ccf-form-manager.php:616
926
- #: ../classes/class-ccf-form-manager.php:746
927
- #: ../classes/class-ccf-form-manager.php:908
928
  msgid "Internal Unique Slug"
929
  msgstr ""
930
 
931
- #: ../classes/class-ccf-form-manager.php:552
932
- #: ../classes/class-ccf-form-manager.php:620
933
- #: ../classes/class-ccf-form-manager.php:687
934
- #: ../classes/class-ccf-form-manager.php:750
935
- #: ../classes/class-ccf-form-manager.php:912
936
- #: ../classes/class-ccf-form-manager.php:1029
937
- #: ../classes/class-ccf-form-manager.php:1089
938
- #: ../classes/class-ccf-form-manager.php:1178
939
- #: ../classes/class-ccf-form-manager.php:1253
940
- #: ../classes/class-ccf-form-manager.php:1320
941
- #: ../classes/class-ccf-form-manager.php:1425
942
- #: ../classes/class-ccf-form-manager.php:1492
943
- #: ../classes/class-ccf-form-manager.php:1559
 
944
  msgid "Label:"
945
  msgstr ""
946
 
947
- #: ../classes/class-ccf-form-manager.php:556
948
- #: ../classes/class-ccf-form-manager.php:624
949
- #: ../classes/class-ccf-form-manager.php:691
950
- #: ../classes/class-ccf-form-manager.php:754
951
- #: ../classes/class-ccf-form-manager.php:916
952
- #: ../classes/class-ccf-form-manager.php:1033
953
- #: ../classes/class-ccf-form-manager.php:1093
954
- #: ../classes/class-ccf-form-manager.php:1182
955
- #: ../classes/class-ccf-form-manager.php:1257
956
- #: ../classes/class-ccf-form-manager.php:1324
957
- #: ../classes/class-ccf-form-manager.php:1429
958
- #: ../classes/class-ccf-form-manager.php:1496
959
- #: ../classes/class-ccf-form-manager.php:1563
 
960
  msgid "Description:"
961
  msgstr ""
962
 
963
- #: ../classes/class-ccf-form-manager.php:560
964
- #: ../classes/class-ccf-form-manager.php:758
965
- #: ../classes/class-ccf-form-manager.php:920
966
- #: ../classes/class-ccf-form-manager.php:980
967
- #: ../classes/class-ccf-form-manager.php:1098
968
- #: ../classes/class-ccf-form-manager.php:1186
969
- #: ../classes/class-ccf-form-manager.php:1329
970
  msgid "Initial Value:"
971
  msgstr ""
972
 
973
- #: ../classes/class-ccf-form-manager.php:564
974
- #: ../classes/class-ccf-form-manager.php:638
975
- #: ../classes/class-ccf-form-manager.php:762
976
- #: ../classes/class-ccf-form-manager.php:924
977
- #: ../classes/class-ccf-form-manager.php:1037
978
- #: ../classes/class-ccf-form-manager.php:1103
979
- #: ../classes/class-ccf-form-manager.php:1197
980
- #: ../classes/class-ccf-form-manager.php:1268
981
- #: ../classes/class-ccf-form-manager.php:1334
982
- #: ../classes/class-ccf-form-manager.php:1433
983
- #: ../classes/class-ccf-form-manager.php:1500
984
- #: ../classes/class-ccf-form-manager.php:1567
985
  msgid "Required:"
986
  msgstr ""
987
 
988
- #: ../classes/class-ccf-form-manager.php:573
989
- #: ../classes/class-ccf-form-manager.php:647
990
- #: ../classes/class-ccf-form-manager.php:707
991
- #: ../classes/class-ccf-form-manager.php:771
992
- #: ../classes/class-ccf-form-manager.php:820
993
- #: ../classes/class-ccf-form-manager.php:869
994
- #: ../classes/class-ccf-form-manager.php:933
995
- #: ../classes/class-ccf-form-manager.php:986
996
- #: ../classes/class-ccf-form-manager.php:1046
997
- #: ../classes/class-ccf-form-manager.php:1129
998
- #: ../classes/class-ccf-form-manager.php:1206
999
- #: ../classes/class-ccf-form-manager.php:1277
1000
- #: ../classes/class-ccf-form-manager.php:1350
1001
- #: ../classes/class-ccf-form-manager.php:1449
1002
- #: ../classes/class-ccf-form-manager.php:1516
1003
- #: ../classes/class-ccf-form-manager.php:1583
 
1004
  msgid "Advanced"
1005
  msgstr ""
1006
 
1007
- #: ../classes/class-ccf-form-manager.php:576
1008
- #: ../classes/class-ccf-form-manager.php:650
1009
- #: ../classes/class-ccf-form-manager.php:710
1010
- #: ../classes/class-ccf-form-manager.php:774
1011
- #: ../classes/class-ccf-form-manager.php:823
1012
- #: ../classes/class-ccf-form-manager.php:872
1013
- #: ../classes/class-ccf-form-manager.php:936
1014
- #: ../classes/class-ccf-form-manager.php:989
1015
- #: ../classes/class-ccf-form-manager.php:1049
1016
- #: ../classes/class-ccf-form-manager.php:1132
1017
- #: ../classes/class-ccf-form-manager.php:1209
1018
- #: ../classes/class-ccf-form-manager.php:1280
1019
- #: ../classes/class-ccf-form-manager.php:1353
1020
- #: ../classes/class-ccf-form-manager.php:1452
1021
- #: ../classes/class-ccf-form-manager.php:1519
1022
- #: ../classes/class-ccf-form-manager.php:1586
 
1023
  msgid "Class Name:"
1024
  msgstr ""
1025
 
1026
- #: ../classes/class-ccf-form-manager.php:580
1027
- #: ../classes/class-ccf-form-manager.php:778
1028
- #: ../classes/class-ccf-form-manager.php:940
1029
- #: ../classes/class-ccf-form-manager.php:1137
1030
- #: ../classes/class-ccf-form-manager.php:1213
1031
- #: ../classes/class-ccf-form-manager.php:1358
 
1032
  msgid "Placeholder Text:"
1033
  msgstr ""
1034
 
1035
- #: ../classes/class-ccf-form-manager.php:584
1036
- #: ../classes/class-ccf-form-manager.php:654
1037
- #: ../classes/class-ccf-form-manager.php:714
1038
- #: ../classes/class-ccf-form-manager.php:782
1039
- #: ../classes/class-ccf-form-manager.php:827
1040
- #: ../classes/class-ccf-form-manager.php:876
1041
- #: ../classes/class-ccf-form-manager.php:944
1042
- #: ../classes/class-ccf-form-manager.php:993
1043
- #: ../classes/class-ccf-form-manager.php:1053
1044
- #: ../classes/class-ccf-form-manager.php:1142
1045
- #: ../classes/class-ccf-form-manager.php:1217
1046
- #: ../classes/class-ccf-form-manager.php:1284
1047
- #: ../classes/class-ccf-form-manager.php:1363
1048
- #: ../classes/class-ccf-form-manager.php:1456
1049
- #: ../classes/class-ccf-form-manager.php:1523
1050
- #: ../classes/class-ccf-form-manager.php:1590
1051
  msgid "Enable Conditional Logic:"
1052
  msgstr ""
1053
 
1054
- #: ../classes/class-ccf-form-manager.php:592
1055
- #: ../classes/class-ccf-form-manager.php:662
1056
- #: ../classes/class-ccf-form-manager.php:722
1057
- #: ../classes/class-ccf-form-manager.php:790
1058
- #: ../classes/class-ccf-form-manager.php:835
1059
- #: ../classes/class-ccf-form-manager.php:884
1060
- #: ../classes/class-ccf-form-manager.php:952
1061
- #: ../classes/class-ccf-form-manager.php:1001
1062
- #: ../classes/class-ccf-form-manager.php:1061
1063
- #: ../classes/class-ccf-form-manager.php:1150
1064
- #: ../classes/class-ccf-form-manager.php:1225
1065
- #: ../classes/class-ccf-form-manager.php:1292
1066
- #: ../classes/class-ccf-form-manager.php:1371
1067
- #: ../classes/class-ccf-form-manager.php:1464
1068
- #: ../classes/class-ccf-form-manager.php:1531
1069
- #: ../classes/class-ccf-form-manager.php:1598
1070
  msgid "Hide"
1071
  msgstr ""
1072
 
1073
- #: ../classes/class-ccf-form-manager.php:593
1074
- #: ../classes/class-ccf-form-manager.php:663
1075
- #: ../classes/class-ccf-form-manager.php:723
1076
- #: ../classes/class-ccf-form-manager.php:791
1077
- #: ../classes/class-ccf-form-manager.php:836
1078
- #: ../classes/class-ccf-form-manager.php:885
1079
- #: ../classes/class-ccf-form-manager.php:953
1080
- #: ../classes/class-ccf-form-manager.php:1002
1081
- #: ../classes/class-ccf-form-manager.php:1062
1082
- #: ../classes/class-ccf-form-manager.php:1151
1083
- #: ../classes/class-ccf-form-manager.php:1226
1084
- #: ../classes/class-ccf-form-manager.php:1293
1085
- #: ../classes/class-ccf-form-manager.php:1372
1086
- #: ../classes/class-ccf-form-manager.php:1465
1087
- #: ../classes/class-ccf-form-manager.php:1532
1088
- #: ../classes/class-ccf-form-manager.php:1599
1089
  msgid "Show"
1090
  msgstr ""
1091
 
1092
- #: ../classes/class-ccf-form-manager.php:596
1093
- #: ../classes/class-ccf-form-manager.php:666
1094
- #: ../classes/class-ccf-form-manager.php:726
1095
- #: ../classes/class-ccf-form-manager.php:794
1096
- #: ../classes/class-ccf-form-manager.php:839
1097
- #: ../classes/class-ccf-form-manager.php:888
1098
- #: ../classes/class-ccf-form-manager.php:956
1099
- #: ../classes/class-ccf-form-manager.php:1005
1100
- #: ../classes/class-ccf-form-manager.php:1065
1101
- #: ../classes/class-ccf-form-manager.php:1154
1102
- #: ../classes/class-ccf-form-manager.php:1229
1103
- #: ../classes/class-ccf-form-manager.php:1296
1104
- #: ../classes/class-ccf-form-manager.php:1375
1105
- #: ../classes/class-ccf-form-manager.php:1468
1106
- #: ../classes/class-ccf-form-manager.php:1535
1107
- #: ../classes/class-ccf-form-manager.php:1602
1108
  msgid "this field if"
1109
  msgstr ""
1110
 
1111
- #: ../classes/class-ccf-form-manager.php:599
1112
- #: ../classes/class-ccf-form-manager.php:669
1113
- #: ../classes/class-ccf-form-manager.php:729
1114
- #: ../classes/class-ccf-form-manager.php:797
1115
- #: ../classes/class-ccf-form-manager.php:842
1116
- #: ../classes/class-ccf-form-manager.php:891
1117
- #: ../classes/class-ccf-form-manager.php:959
1118
- #: ../classes/class-ccf-form-manager.php:1008
1119
- #: ../classes/class-ccf-form-manager.php:1068
1120
- #: ../classes/class-ccf-form-manager.php:1157
1121
- #: ../classes/class-ccf-form-manager.php:1232
1122
- #: ../classes/class-ccf-form-manager.php:1299
1123
- #: ../classes/class-ccf-form-manager.php:1378
1124
- #: ../classes/class-ccf-form-manager.php:1471
1125
- #: ../classes/class-ccf-form-manager.php:1538
1126
- #: ../classes/class-ccf-form-manager.php:1605
1127
  msgid "All"
1128
  msgstr ""
1129
 
1130
- #: ../classes/class-ccf-form-manager.php:600
1131
- #: ../classes/class-ccf-form-manager.php:670
1132
- #: ../classes/class-ccf-form-manager.php:730
1133
- #: ../classes/class-ccf-form-manager.php:798
1134
- #: ../classes/class-ccf-form-manager.php:843
1135
- #: ../classes/class-ccf-form-manager.php:892
1136
- #: ../classes/class-ccf-form-manager.php:960
1137
- #: ../classes/class-ccf-form-manager.php:1009
1138
- #: ../classes/class-ccf-form-manager.php:1069
1139
- #: ../classes/class-ccf-form-manager.php:1158
1140
- #: ../classes/class-ccf-form-manager.php:1233
1141
- #: ../classes/class-ccf-form-manager.php:1300
1142
- #: ../classes/class-ccf-form-manager.php:1379
1143
- #: ../classes/class-ccf-form-manager.php:1472
1144
- #: ../classes/class-ccf-form-manager.php:1539
1145
- #: ../classes/class-ccf-form-manager.php:1606
1146
  msgid "Any"
1147
  msgstr ""
1148
 
1149
- #: ../classes/class-ccf-form-manager.php:603
1150
- #: ../classes/class-ccf-form-manager.php:673
1151
- #: ../classes/class-ccf-form-manager.php:733
1152
- #: ../classes/class-ccf-form-manager.php:801
1153
- #: ../classes/class-ccf-form-manager.php:846
1154
- #: ../classes/class-ccf-form-manager.php:895
1155
- #: ../classes/class-ccf-form-manager.php:963
1156
- #: ../classes/class-ccf-form-manager.php:1012
1157
- #: ../classes/class-ccf-form-manager.php:1072
1158
- #: ../classes/class-ccf-form-manager.php:1161
1159
- #: ../classes/class-ccf-form-manager.php:1236
1160
- #: ../classes/class-ccf-form-manager.php:1303
1161
- #: ../classes/class-ccf-form-manager.php:1382
1162
- #: ../classes/class-ccf-form-manager.php:1475
1163
- #: ../classes/class-ccf-form-manager.php:1542
1164
- #: ../classes/class-ccf-form-manager.php:1609
1165
  msgid "of these conditions are true:"
1166
  msgstr ""
1167
 
1168
- #: ../classes/class-ccf-form-manager.php:628
1169
  msgid "Allowed File Extensions (comma separate):"
1170
  msgstr ""
1171
 
1172
- #: ../classes/class-ccf-form-manager.php:630
1173
  msgid ""
1174
  "If left blank, will default to all extensions registered by WordPress. If "
1175
  "you use a file extension or mime type not <a href=\"http://codex.wordpress."
@@ -1177,326 +1187,342 @@ msgid ""
1177
  "a>, you will need to filter and manually whitelist the new extension."
1178
  msgstr ""
1179
 
1180
- #: ../classes/class-ccf-form-manager.php:633
1181
  msgid "Max File Size (in MB):"
1182
  msgstr ""
1183
 
1184
- #: ../classes/class-ccf-form-manager.php:635
1185
  #, php-format
1186
  msgid ""
1187
  "If left blank, will default to %d MB. Maximum allowed by server is %d MB."
1188
  msgstr ""
1189
 
1190
- #: ../classes/class-ccf-form-manager.php:685
1191
  msgid ""
1192
  "reCAPTCHA is a simple captcha service provided by Google. <a target=\"_blank"
1193
  "\" href=\"https://www.google.com/recaptcha/intro/index.html\">Learn more</a>"
1194
  msgstr ""
1195
 
1196
- #: ../classes/class-ccf-form-manager.php:695
1197
  msgid "Site Key:"
1198
  msgstr ""
1199
 
1200
- #: ../classes/class-ccf-form-manager.php:697
1201
- #: ../classes/class-ccf-form-manager.php:702
1202
  msgid "Don't have one?"
1203
  msgstr ""
1204
 
1205
- #: ../classes/class-ccf-form-manager.php:700
1206
  msgid "Secret Key:"
1207
  msgstr ""
1208
 
1209
- #: ../classes/class-ccf-form-manager.php:811
1210
- #: ../classes/class-ccf-form-manager.php:856
1211
- #: ../classes/class-ccf-form-manager.php:905
1212
- #: ../classes/class-ccf-form-manager.php:973
1213
- #: ../classes/class-ccf-form-manager.php:1022
1214
- #: ../classes/class-ccf-form-manager.php:1082
1215
- #: ../classes/class-ccf-form-manager.php:1171
1216
- #: ../classes/class-ccf-form-manager.php:1246
1217
- #: ../classes/class-ccf-form-manager.php:1313
1218
- #: ../classes/class-ccf-form-manager.php:1418
1219
- #: ../classes/class-ccf-form-manager.php:1485
1220
- #: ../classes/class-ccf-form-manager.php:1552
1221
  msgid "Basic"
1222
  msgstr ""
1223
 
1224
- #: ../classes/class-ccf-form-manager.php:814
1225
  msgid "HTML Content:"
1226
  msgstr ""
1227
 
1228
- #: ../classes/class-ccf-form-manager.php:859
1229
  msgid "Heading:"
1230
  msgstr ""
1231
 
1232
- #: ../classes/class-ccf-form-manager.php:863
1233
  msgid "Sub Heading:"
1234
  msgstr ""
1235
 
1236
- #: ../classes/class-ccf-form-manager.php:976
1237
- #: ../classes/class-ccf-form-manager.php:1025
1238
- #: ../classes/class-ccf-form-manager.php:1085
1239
- #: ../classes/class-ccf-form-manager.php:1174
1240
- #: ../classes/class-ccf-form-manager.php:1249
1241
- #: ../classes/class-ccf-form-manager.php:1316
1242
- #: ../classes/class-ccf-form-manager.php:1421
1243
- #: ../classes/class-ccf-form-manager.php:1488
1244
- #: ../classes/class-ccf-form-manager.php:1555
1245
  msgid "Internal Unique Slug (a-z, 0-9, -, _):"
1246
  msgstr ""
1247
 
1248
- #: ../classes/class-ccf-form-manager.php:1111
1249
  msgid "Enable Date Select"
1250
  msgstr ""
1251
 
1252
- #: ../classes/class-ccf-form-manager.php:1115
1253
  msgid "Enable Time Select"
1254
  msgstr ""
1255
 
1256
- #: ../classes/class-ccf-form-manager.php:1119
1257
  msgid "Date Format:"
1258
  msgstr ""
1259
 
1260
- #: ../classes/class-ccf-form-manager.php:1190
1261
  msgid "Format:"
1262
  msgstr ""
1263
 
1264
- #: ../classes/class-ccf-form-manager.php:1193
1265
- #: ../classes/class-ccf-form-manager.php:1264
1266
  msgid "International"
1267
  msgstr ""
1268
 
1269
- #: ../classes/class-ccf-form-manager.php:1261
1270
  msgid "Type:"
1271
  msgstr ""
1272
 
1273
- #: ../classes/class-ccf-form-manager.php:1263
1274
  msgid "United States"
1275
  msgstr ""
1276
 
1277
- #: ../classes/class-ccf-form-manager.php:1341
 
 
 
 
1278
  msgid "Require Confirmation:"
1279
  msgstr ""
1280
 
1281
- #: ../classes/class-ccf-form-manager.php:1393
1282
  msgid "Label"
1283
  msgstr ""
1284
 
1285
- #: ../classes/class-ccf-form-manager.php:1394
1286
  msgid "Value"
1287
  msgstr ""
1288
 
1289
- #: ../classes/class-ccf-form-manager.php:1407
1290
  msgid "is"
1291
  msgstr ""
1292
 
1293
- #: ../classes/class-ccf-form-manager.php:1408
1294
  msgid "is not"
1295
  msgstr ""
1296
 
1297
- #: ../classes/class-ccf-form-manager.php:1409
1298
  msgid ">"
1299
  msgstr ""
1300
 
1301
- #: ../classes/class-ccf-form-manager.php:1410
1302
  msgid "<"
1303
  msgstr ""
1304
 
1305
- #: ../classes/class-ccf-form-manager.php:1411
1306
  msgid "contains"
1307
  msgstr ""
1308
 
1309
- #: ../classes/class-ccf-form-manager.php:1413
1310
  msgid "Field value"
1311
  msgstr ""
1312
 
1313
- #: ../classes/class-ccf-form-manager.php:1440
1314
- #: ../classes/class-ccf-form-manager.php:1507
1315
- #: ../classes/class-ccf-form-manager.php:1574
1316
  msgid "Manage field choices:"
1317
  msgstr ""
1318
 
1319
- #: ../classes/class-ccf-form-manager.php:1444
1320
- #: ../classes/class-ccf-form-manager.php:1511
1321
- #: ../classes/class-ccf-form-manager.php:1578
1322
  msgid ""
1323
  "Note: If an option does not have a \"value\", it will not be considered a "
1324
  "valid selection if the field is required. The \"value\" is what's read, "
1325
  "stored, and displayed in the submission."
1326
  msgstr ""
1327
 
1328
- #: ../classes/class-ccf-form-manager.php:1619
1329
  msgid "You currently have no forms. Add some!"
1330
  msgstr ""
1331
 
1332
- #: ../classes/class-ccf-form-manager.php:1642
1333
  msgid "Allowed file extensions are {{ extensions }}. "
1334
  msgstr ""
1335
 
1336
- #: ../classes/class-ccf-form-manager.php:1644
1337
  msgid "Max file size is {{ file_size }} MB. "
1338
  msgstr ""
1339
 
1340
- #: ../classes/class-ccf-form-manager.php:1669
1341
- #: ../classes/class-ccf-form-manager.php:1685
1342
- #: ../classes/class-ccf-form-manager.php:1703
1343
  msgid "An example choice"
1344
  msgstr ""
1345
 
1346
- #: ../classes/class-ccf-form-manager.php:1722
1347
  msgid "Arbitrary block of HTML."
1348
  msgstr ""
1349
 
1350
- #: ../classes/class-ccf-form-manager.php:1729
1351
  msgid "Section Heading"
1352
  msgstr ""
1353
 
1354
- #: ../classes/class-ccf-form-manager.php:1731
1355
  msgid "This is the sub-heading text."
1356
  msgstr ""
1357
 
1358
- #: ../classes/class-ccf-form-manager.php:1902
1359
  msgid "Duplicate form"
1360
  msgstr ""
1361
 
1362
- #: ../classes/class-ccf-form-manager.php:1903
1363
  msgid "Trash"
1364
  msgstr ""
1365
 
1366
- #: ../classes/class-ccf-form-manager.php:1946
1367
  msgid "There is a problem with this form. Is it trashed or deleted?"
1368
  msgstr ""
1369
 
1370
- #: ../classes/class-ccf-form-manager.php:2093
1371
  msgid "IP Address"
1372
  msgstr ""
1373
 
1374
- #: ../classes/class-ccf-form-manager.php:2105
 
 
 
 
1375
  msgid "There are no submissions."
1376
  msgstr ""
1377
 
1378
- #: ../classes/class-ccf-form-manager.php:2134
1379
  msgid "Add Form"
1380
  msgstr ""
1381
 
1382
- #: ../classes/class-ccf-form-manager.php:2157
1383
  msgid "Single Line Text"
1384
  msgstr ""
1385
 
1386
- #: ../classes/class-ccf-form-manager.php:2158
1387
  msgid "Dropdown"
1388
  msgstr ""
1389
 
1390
- #: ../classes/class-ccf-form-manager.php:2159
1391
  msgid "Checkboxes"
1392
  msgstr ""
1393
 
1394
- #: ../classes/class-ccf-form-manager.php:2160
1395
  msgid "Radio Buttons"
1396
  msgstr ""
1397
 
1398
- #: ../classes/class-ccf-form-manager.php:2161
1399
  msgid "Paragraph Text"
1400
  msgstr ""
1401
 
1402
- #: ../classes/class-ccf-form-manager.php:2162
1403
  msgid "Hidden"
1404
  msgstr ""
1405
 
1406
- #: ../classes/class-ccf-form-manager.php:2163
1407
  msgid "File Upload"
1408
  msgstr ""
1409
 
1410
- #: ../classes/class-ccf-form-manager.php:2167
1411
  msgid "HTML"
1412
  msgstr ""
1413
 
1414
- #: ../classes/class-ccf-form-manager.php:2168
1415
  msgid "Section"
1416
  msgstr ""
1417
 
1418
- #: ../classes/class-ccf-form-manager.php:2173
1419
  msgid "Name"
1420
  msgstr ""
1421
 
1422
- #: ../classes/class-ccf-form-manager.php:2174
1423
  msgid "Date/Time"
1424
  msgstr ""
1425
 
1426
- #: ../classes/class-ccf-form-manager.php:2175
1427
  msgid "Website"
1428
  msgstr ""
1429
 
1430
- #: ../classes/class-ccf-form-manager.php:2176
1431
  msgid "Address"
1432
  msgstr ""
1433
 
1434
- #: ../classes/class-ccf-form-manager.php:2177
1435
  msgid "Phone"
1436
  msgstr ""
1437
 
1438
- #: ../classes/class-ccf-form-manager.php:2178
1439
  msgid "reCAPTCHA"
1440
  msgstr ""
1441
 
1442
- #: ../classes/class-ccf-form-manager.php:2211
 
 
 
 
 
 
 
 
1443
  msgid "You have no email fields"
1444
  msgstr ""
1445
 
1446
- #: ../classes/class-ccf-form-manager.php:2212
1447
  msgid "No available fields"
1448
  msgstr ""
1449
 
1450
- #: ../classes/class-ccf-form-manager.php:2213
1451
  msgid "You have no name fields"
1452
  msgstr ""
1453
 
1454
- #: ../classes/class-ccf-form-manager.php:2214
1455
  msgid "You have no applicable fields"
1456
  msgstr ""
1457
 
1458
- #: ../classes/class-ccf-form-manager.php:2215
1459
  msgid "Choose a Form Field"
1460
  msgstr ""
1461
 
1462
- #: ../classes/class-ccf-form-manager.php:2216
1463
  msgid "Invalid date"
1464
  msgstr ""
1465
 
1466
- #: ../classes/class-ccf-form-manager.php:2218
1467
  msgid "Field Label"
1468
  msgstr ""
1469
 
1470
- #: ../classes/class-ccf-form-manager.php:2220
1471
- #: ../classes/class-ccf-form-renderer.php:174
1472
  msgid "This form is paused right now. Check back later!"
1473
  msgstr ""
1474
 
1475
- #: ../classes/class-ccf-form-manager.php:2222
1476
  msgid "Choose a Post Field"
1477
  msgstr ""
1478
 
1479
- #: ../classes/class-ccf-form-manager.php:2225
1480
  msgid "Post Title"
1481
  msgstr ""
1482
 
1483
- #: ../classes/class-ccf-form-manager.php:2226
1484
  msgid "Post Content"
1485
  msgstr ""
1486
 
1487
- #: ../classes/class-ccf-form-manager.php:2227
1488
  msgid "Post Excerpt"
1489
  msgstr ""
1490
 
1491
- #: ../classes/class-ccf-form-manager.php:2228
1492
  msgid "Post Date"
1493
  msgstr ""
1494
 
1495
- #: ../classes/class-ccf-form-manager.php:2231
1496
  msgid "Post Tags"
1497
  msgstr ""
1498
 
1499
- #: ../classes/class-ccf-form-manager.php:2232
1500
  msgid "Custom Field"
1501
  msgstr ""
1502
 
@@ -1524,6 +1550,10 @@ msgstr ""
1524
  msgid "An unknown error occured."
1525
  msgstr ""
1526
 
 
 
 
 
1527
  #: ../classes/class-ccf-settings.php:76
1528
  msgid "Enable Asset Loading Restrictions"
1529
  msgstr ""
5
  "Project-Id-Version: Custom Contact Forms\n"
6
  "Report-Msgid-Bugs-To: https://github.com/tlovett1/custom-contact-forms/"
7
  "issues\n"
8
+ "POT-Creation-Date: 2016-03-02 23:55-0500\n"
9
+ "PO-Revision-Date: 2016-03-02 23:55-0500\n"
10
  "Last-Translator: Taylor Lovett <tlovett88@gmail.com>\n"
11
  "Language-Team: \n"
12
  "Language: en\n"
23
  "X-Textdomain-Support: yes\n"
24
  "X-Poedit-SearchPath-0: ..\n"
25
 
26
+ #: ../classes/class-ccf-api-form-controller.php:676
27
  msgid "Form not found"
28
  msgstr ""
29
 
30
+ #: ../classes/class-ccf-api-form-controller.php:702
31
  msgid "Could not create form"
32
  msgstr ""
33
 
34
+ #: ../classes/class-ccf-api-form-controller.php:732
35
  msgid "Could not update form"
36
  msgstr ""
37
 
38
+ #: ../classes/class-ccf-api-form-controller.php:760
39
  msgid "Could not delete form"
40
  msgstr ""
41
 
42
+ #: ../classes/class-ccf-api-form-controller.php:789
43
  msgid "Could not delete submission"
44
  msgstr ""
45
 
59
  msgid "<a href=\"%s\">Forms and Submissions</a>"
60
  msgstr ""
61
 
62
+ #: ../classes/class-ccf-export.php:58 ../classes/class-ccf-form-cpt.php:579
63
  msgid "Forms and Submissions"
64
  msgstr ""
65
 
71
  msgid "Form Fields"
72
  msgstr ""
73
 
74
+ #: ../classes/class-ccf-field-renderer.php:127
75
  #, php-format
76
  msgid "Allowed file extensions are %s. "
77
  msgstr ""
78
 
79
+ #: ../classes/class-ccf-field-renderer.php:129
80
  #, php-format
81
  msgid "Max file size is %d MB. "
82
  msgstr ""
83
 
84
+ #: ../classes/class-ccf-field-renderer.php:625
85
+ #: ../classes/class-ccf-form-manager.php:1835
86
+ #: ../classes/class-ccf-form-manager.php:1860
87
  msgid "Street Address"
88
  msgstr ""
89
 
90
+ #: ../classes/class-ccf-field-renderer.php:629
91
+ #: ../classes/class-ccf-form-manager.php:1839
92
+ #: ../classes/class-ccf-form-manager.php:1864
93
  msgid "Address Line 2"
94
  msgstr ""
95
 
96
+ #: ../classes/class-ccf-field-renderer.php:636
97
+ #: ../classes/class-ccf-form-manager.php:1843
98
+ #: ../classes/class-ccf-form-manager.php:1868
99
  msgid "City"
100
  msgstr ""
101
 
102
+ #: ../classes/class-ccf-field-renderer.php:649
103
+ #: ../classes/class-ccf-form-manager.php:1851
104
  msgid "State"
105
  msgstr ""
106
 
107
+ #: ../classes/class-ccf-field-renderer.php:657
108
+ #: ../classes/class-ccf-form-manager.php:1855
109
  msgid "ZIP Code"
110
  msgstr ""
111
 
112
+ #: ../classes/class-ccf-field-renderer.php:667
113
+ #: ../classes/class-ccf-form-manager.php:1872
114
  msgid "State / Region / Province"
115
  msgstr ""
116
 
117
+ #: ../classes/class-ccf-field-renderer.php:675
118
+ #: ../classes/class-ccf-form-manager.php:1876
119
  msgid "ZIP / Postal Code"
120
  msgstr ""
121
 
122
+ #: ../classes/class-ccf-field-renderer.php:687
123
+ #: ../classes/class-ccf-form-manager.php:1884
124
  msgid "Country"
125
  msgstr ""
126
 
127
+ #: ../classes/class-ccf-field-renderer.php:865
128
+ #: ../classes/class-ccf-form-manager.php:1895
129
  msgid "email@example.com"
130
  msgstr ""
131
 
132
+ #: ../classes/class-ccf-field-renderer.php:877
133
  #: ../classes/class-ccf-form-manager.php:327
134
+ #: ../classes/class-ccf-form-manager.php:1899
135
+ #: ../classes/class-ccf-form-manager.php:2213
136
  msgid "Email"
137
  msgstr ""
138
 
139
+ #: ../classes/class-ccf-field-renderer.php:884
140
+ #: ../classes/class-ccf-form-manager.php:1903
141
  msgid "Confirm Email"
142
  msgstr ""
143
 
144
+ #: ../classes/class-ccf-field-renderer.php:950
145
+ #: ../classes/class-ccf-form-manager.php:1771
146
  msgid "First"
147
  msgstr ""
148
 
149
+ #: ../classes/class-ccf-field-renderer.php:957
150
+ #: ../classes/class-ccf-form-manager.php:1775
151
  msgid "Last"
152
  msgstr ""
153
 
154
+ #: ../classes/class-ccf-field-renderer.php:1031
155
+ #: ../classes/class-ccf-field-renderer.php:1052
156
+ #: ../classes/class-ccf-form-manager.php:1790
157
+ #: ../classes/class-ccf-form-manager.php:1811
158
  msgid "HH"
159
  msgstr ""
160
 
161
+ #: ../classes/class-ccf-field-renderer.php:1035
162
+ #: ../classes/class-ccf-field-renderer.php:1056
163
+ #: ../classes/class-ccf-form-manager.php:1794
164
+ #: ../classes/class-ccf-form-manager.php:1815
165
  msgid "MM"
166
  msgstr ""
167
 
168
+ #: ../classes/class-ccf-field-renderer.php:1039
169
+ #: ../classes/class-ccf-field-renderer.php:1060
170
+ #: ../classes/class-ccf-form-manager.php:1798
171
+ #: ../classes/class-ccf-form-manager.php:1819
172
  msgid "AM"
173
  msgstr ""
174
 
175
+ #: ../classes/class-ccf-field-renderer.php:1040
176
+ #: ../classes/class-ccf-field-renderer.php:1061
177
+ #: ../classes/class-ccf-form-manager.php:1799
178
+ #: ../classes/class-ccf-form-manager.php:1820
179
  msgid "PM"
180
  msgstr ""
181
 
182
+ #: ../classes/class-ccf-field-renderer.php:1047
183
+ #: ../classes/class-ccf-form-cpt.php:510
184
+ #: ../classes/class-ccf-form-manager.php:521
185
+ #: ../classes/class-ccf-form-manager.php:534
186
+ #: ../classes/class-ccf-form-manager.php:1806
187
+ #: ../classes/class-ccf-form-manager.php:1990
188
+ #: ../classes/class-ccf-form-manager.php:2004
189
+ #: ../classes/class-ccf-form-manager.php:2155
190
  msgid "Date"
191
  msgstr ""
192
 
196
 
197
  #: ../classes/class-ccf-form-cpt.php:324 ../classes/class-ccf-form-cpt.php:342
198
  #: ../classes/class-ccf-form-cpt.php:507
199
+ #: ../classes/class-ccf-form-manager.php:524
200
+ #: ../classes/class-ccf-form-manager.php:537
201
  msgid "Submissions"
202
  msgstr ""
203
 
242
  msgstr ""
243
 
244
  #: ../classes/class-ccf-form-cpt.php:445
245
+ #: ../classes/class-ccf-form-manager.php:1931
246
  msgid "(No title)"
247
  msgstr ""
248
 
255
  msgstr ""
256
 
257
  #: ../classes/class-ccf-form-cpt.php:506
258
+ #: ../classes/class-ccf-form-manager.php:522
259
+ #: ../classes/class-ccf-form-manager.php:535
260
  msgid "Author"
261
  msgstr ""
262
 
263
  #: ../classes/class-ccf-form-cpt.php:508
264
+ #: ../classes/class-ccf-form-manager.php:523
265
+ #: ../classes/class-ccf-form-manager.php:536
266
  msgid "Number of Fields"
267
  msgstr ""
268
 
269
+ #: ../classes/class-ccf-form-cpt.php:509
270
+ msgid "Form ID"
271
+ msgstr ""
272
+
273
+ #: ../classes/class-ccf-form-cpt.php:547
274
  msgid "Unpublished"
275
  msgstr ""
276
 
277
+ #: ../classes/class-ccf-form-cpt.php:549
278
  msgid "Y/m/d g:i:s A"
279
  msgstr ""
280
 
281
+ #: ../classes/class-ccf-form-cpt.php:556
282
  #, php-format
283
  msgid "%s ago"
284
  msgstr ""
285
 
286
+ #: ../classes/class-ccf-form-cpt.php:557
287
  msgid "Y/m/d"
288
  msgstr ""
289
 
290
+ #: ../classes/class-ccf-form-cpt.php:573 ../classes/class-ccf-form-cpt.php:585
291
  msgid "Forms"
292
  msgstr ""
293
 
294
+ #: ../classes/class-ccf-form-cpt.php:574
295
  msgid "Form"
296
  msgstr ""
297
 
298
+ #: ../classes/class-ccf-form-cpt.php:575 ../classes/class-ccf-form-cpt.php:578
299
  #: ../classes/class-ccf-form-manager.php:88
300
  msgid "New Form"
301
  msgstr ""
302
 
303
+ #: ../classes/class-ccf-form-cpt.php:576
304
  msgid "Add New Form"
305
  msgstr ""
306
 
307
+ #: ../classes/class-ccf-form-cpt.php:577
308
  msgid "Edit Form"
309
  msgstr ""
310
 
311
+ #: ../classes/class-ccf-form-cpt.php:580
312
  msgid "View Form"
313
  msgstr ""
314
 
315
+ #: ../classes/class-ccf-form-cpt.php:581
316
  msgid "Search Forms"
317
  msgstr ""
318
 
319
+ #: ../classes/class-ccf-form-cpt.php:582
320
  msgid "No forms found."
321
  msgstr ""
322
 
323
+ #: ../classes/class-ccf-form-cpt.php:583
324
  msgid "No forms found in trash."
325
  msgstr ""
326
 
327
+ #: ../classes/class-ccf-form-handler.php:133
328
+ #: ../classes/class-ccf-form-handler.php:214
329
+ #: ../classes/class-ccf-form-handler.php:251
330
+ #: ../classes/class-ccf-form-handler.php:348
331
+ #: ../classes/class-ccf-form-handler.php:352
332
+ #: ../classes/class-ccf-form-handler.php:356
333
+ #: ../classes/class-ccf-form-handler.php:360
334
+ #: ../classes/class-ccf-form-handler.php:365
335
+ #: ../classes/class-ccf-form-handler.php:390
336
+ #: ../classes/class-ccf-form-handler.php:398
337
+ #: ../classes/class-ccf-form-handler.php:406
338
+ #: ../classes/class-ccf-form-handler.php:460
339
  #: ../classes/class-ccf-form-renderer.php:99
340
  msgid "This field is required."
341
  msgstr ""
342
 
343
+ #: ../classes/class-ccf-form-handler.php:144
344
  #, php-format
345
  msgid "This file is too big (%d MB max)"
346
  msgstr ""
347
 
348
+ #: ../classes/class-ccf-form-handler.php:148
349
  msgid "An upload error occurred."
350
  msgstr ""
351
 
352
+ #: ../classes/class-ccf-form-handler.php:170
353
  msgid "File contains an invalid extension."
354
  msgstr ""
355
 
356
+ #: ../classes/class-ccf-form-handler.php:267
357
  #: ../classes/class-ccf-form-renderer.php:106
358
  msgid "Your reCAPTCHA response was incorrect."
359
  msgstr ""
360
 
361
+ #: ../classes/class-ccf-form-handler.php:286
362
+ msgid "Your CAPTCHA response was incorrect."
363
+ msgstr ""
364
+
365
+ #: ../classes/class-ccf-form-handler.php:305
366
  msgid "This field is required"
367
  msgstr ""
368
 
369
+ #: ../classes/class-ccf-form-handler.php:310
370
  msgid "This phone number is too short"
371
  msgstr ""
372
 
373
+ #: ../classes/class-ccf-form-handler.php:313
374
  msgid "ccf_field_phoneFormat"
375
  msgstr ""
376
 
377
+ #: ../classes/class-ccf-form-handler.php:316
378
  msgid "This phone number contains invalid characters."
379
  msgstr ""
380
 
381
+ #: ../classes/class-ccf-form-handler.php:322
382
  msgid "This phone number is not 10 digits."
383
  msgstr ""
384
 
385
+ #: ../classes/class-ccf-form-handler.php:393
386
+ #: ../classes/class-ccf-form-handler.php:409
387
  msgid "This is not a valid email"
388
  msgstr ""
389
 
390
+ #: ../classes/class-ccf-form-handler.php:401
391
  #: ../classes/class-ccf-form-renderer.php:104
392
  msgid "Emails do not match."
393
  msgstr ""
394
 
395
+ #: ../classes/class-ccf-form-handler.php:434
396
  msgid "First name is required."
397
  msgstr ""
398
 
399
+ #: ../classes/class-ccf-form-handler.php:438
400
  msgid "Last name is required."
401
  msgstr ""
402
 
403
+ #: ../classes/class-ccf-form-handler.php:463
404
  #: ../classes/class-ccf-form-renderer.php:116
405
  msgid "This is not a valid URL. URL's must start with http(s)://"
406
  msgstr ""
407
 
408
+ #: ../classes/class-ccf-form-handler.php:491
409
+ #: ../classes/class-ccf-form-handler.php:523
410
  #: ../classes/class-ccf-form-renderer.php:100
411
  msgid "Date is required."
412
  msgstr ""
413
 
414
+ #: ../classes/class-ccf-form-handler.php:494
415
+ #: ../classes/class-ccf-form-handler.php:526
416
  #: ../classes/class-ccf-form-renderer.php:111
417
  msgid "This date is not valid."
418
  msgstr ""
419
 
420
+ #: ../classes/class-ccf-form-handler.php:499
421
+ #: ../classes/class-ccf-form-handler.php:531
422
  #: ../classes/class-ccf-form-renderer.php:101
423
  msgid "Hour is required."
424
  msgstr ""
425
 
426
+ #: ../classes/class-ccf-form-handler.php:502
427
+ #: ../classes/class-ccf-form-handler.php:534
428
  #: ../classes/class-ccf-form-renderer.php:110
429
  msgid "This is not a valid hour."
430
  msgstr ""
431
 
432
+ #: ../classes/class-ccf-form-handler.php:507
433
+ #: ../classes/class-ccf-form-handler.php:539
434
  #: ../classes/class-ccf-form-renderer.php:102
435
  msgid "Minute is required."
436
  msgstr ""
437
 
438
+ #: ../classes/class-ccf-form-handler.php:510
439
+ #: ../classes/class-ccf-form-handler.php:542
440
  #: ../classes/class-ccf-form-renderer.php:112
441
  msgid "This is not a valid minute."
442
  msgstr ""
443
 
444
+ #: ../classes/class-ccf-form-handler.php:515
445
+ #: ../classes/class-ccf-form-handler.php:547
446
  #: ../classes/class-ccf-form-renderer.php:103
447
  msgid "AM/PM is required."
448
  msgstr ""
449
 
450
+ #: ../classes/class-ccf-form-handler.php:807
451
  msgid "Post created by form"
452
  msgstr ""
453
 
454
+ #: ../classes/class-ccf-form-handler.php:856
455
  msgid "*Hidden Field*"
456
  msgstr ""
457
 
458
+ #: ../classes/class-ccf-form-handler.php:928
459
  msgid "Form submitted from"
460
  msgstr ""
461
 
462
+ #: ../classes/class-ccf-form-handler.php:937
463
  msgid "Form submitter IP"
464
  msgstr ""
465
 
466
+ #: ../classes/class-ccf-form-handler.php:1026
467
  #, php-format
468
  msgid "%s: Form Submission"
469
  msgstr ""
470
 
471
+ #: ../classes/class-ccf-form-handler.php:1028
472
  #, php-format
473
  msgid " to \"%s\""
474
  msgstr ""
475
 
476
+ #: ../classes/class-ccf-form-handler.php:1086
477
+ #: ../classes/class-ccf-form-renderer.php:196
478
  msgid "Thank you for your submission."
479
  msgstr ""
480
 
540
  msgstr ""
541
 
542
  #: ../classes/class-ccf-form-manager.php:152
543
+ #: ../classes/class-ccf-form-manager.php:1934
544
  msgid "Insert into post"
545
  msgstr ""
546
 
561
  msgstr ""
562
 
563
  #: ../classes/class-ccf-form-manager.php:172
564
+ #: ../classes/class-ccf-form-manager.php:1933
565
  msgid "Edit"
566
  msgstr ""
567
 
570
  msgstr ""
571
 
572
  #: ../classes/class-ccf-form-manager.php:179
573
+ #: ../classes/class-ccf-form-manager.php:2262
574
  msgid "Form Submission"
575
  msgstr ""
576
 
619
 
620
  #: ../classes/class-ccf-form-manager.php:244
621
  #: ../classes/class-ccf-form-manager.php:391
622
+ #: ../classes/class-ccf-form-manager.php:403
623
+ #: ../classes/class-ccf-form-manager.php:447
624
+ #: ../classes/class-ccf-form-manager.php:575
625
+ #: ../classes/class-ccf-form-manager.php:594
626
+ #: ../classes/class-ccf-form-manager.php:649
627
+ #: ../classes/class-ccf-form-manager.php:664
628
+ #: ../classes/class-ccf-form-manager.php:778
629
+ #: ../classes/class-ccf-form-manager.php:797
630
+ #: ../classes/class-ccf-form-manager.php:842
631
+ #: ../classes/class-ccf-form-manager.php:891
632
+ #: ../classes/class-ccf-form-manager.php:940
633
+ #: ../classes/class-ccf-form-manager.php:959
634
+ #: ../classes/class-ccf-form-manager.php:1008
635
+ #: ../classes/class-ccf-form-manager.php:1053
636
+ #: ../classes/class-ccf-form-manager.php:1068
637
+ #: ../classes/class-ccf-form-manager.php:1119
638
+ #: ../classes/class-ccf-form-manager.php:1157
639
+ #: ../classes/class-ccf-form-manager.php:1213
640
+ #: ../classes/class-ccf-form-manager.php:1232
641
+ #: ../classes/class-ccf-form-manager.php:1294
642
+ #: ../classes/class-ccf-form-manager.php:1309
643
+ #: ../classes/class-ccf-form-manager.php:1360
644
+ #: ../classes/class-ccf-form-manager.php:1367
645
+ #: ../classes/class-ccf-form-manager.php:1388
646
+ #: ../classes/class-ccf-form-manager.php:1459
647
+ #: ../classes/class-ccf-form-manager.php:1481
648
+ #: ../classes/class-ccf-form-manager.php:1526
649
+ #: ../classes/class-ccf-form-manager.php:1548
650
+ #: ../classes/class-ccf-form-manager.php:1593
651
+ #: ../classes/class-ccf-form-manager.php:1615
652
  #: ../classes/class-ccf-settings.php:103
653
  msgid "No"
654
  msgstr ""
655
 
656
  #: ../classes/class-ccf-form-manager.php:245
657
  #: ../classes/class-ccf-form-manager.php:392
658
+ #: ../classes/class-ccf-form-manager.php:404
659
+ #: ../classes/class-ccf-form-manager.php:448
660
+ #: ../classes/class-ccf-form-manager.php:574
661
+ #: ../classes/class-ccf-form-manager.php:595
662
+ #: ../classes/class-ccf-form-manager.php:648
663
+ #: ../classes/class-ccf-form-manager.php:665
664
+ #: ../classes/class-ccf-form-manager.php:777
665
+ #: ../classes/class-ccf-form-manager.php:798
666
+ #: ../classes/class-ccf-form-manager.php:843
667
+ #: ../classes/class-ccf-form-manager.php:892
668
+ #: ../classes/class-ccf-form-manager.php:939
669
+ #: ../classes/class-ccf-form-manager.php:960
670
+ #: ../classes/class-ccf-form-manager.php:1009
671
+ #: ../classes/class-ccf-form-manager.php:1052
672
+ #: ../classes/class-ccf-form-manager.php:1069
673
+ #: ../classes/class-ccf-form-manager.php:1118
674
+ #: ../classes/class-ccf-form-manager.php:1158
675
+ #: ../classes/class-ccf-form-manager.php:1212
676
+ #: ../classes/class-ccf-form-manager.php:1233
677
+ #: ../classes/class-ccf-form-manager.php:1293
678
+ #: ../classes/class-ccf-form-manager.php:1310
679
+ #: ../classes/class-ccf-form-manager.php:1359
 
680
  #: ../classes/class-ccf-form-manager.php:1366
681
+ #: ../classes/class-ccf-form-manager.php:1389
682
+ #: ../classes/class-ccf-form-manager.php:1458
683
+ #: ../classes/class-ccf-form-manager.php:1482
684
+ #: ../classes/class-ccf-form-manager.php:1525
685
+ #: ../classes/class-ccf-form-manager.php:1549
686
+ #: ../classes/class-ccf-form-manager.php:1592
687
+ #: ../classes/class-ccf-form-manager.php:1616
688
  #: ../classes/class-ccf-settings.php:104
689
  msgid "Yes"
690
  msgstr ""
844
  msgstr ""
845
 
846
  #: ../classes/class-ccf-form-manager.php:400
847
+ msgid "Require User to Be Logged In:"
848
+ msgstr ""
849
+
850
+ #: ../classes/class-ccf-form-manager.php:408
851
  msgid "Email Notifications"
852
  msgstr ""
853
 
854
+ #: ../classes/class-ccf-form-manager.php:414
855
+ #: ../classes/class-ccf-form-manager.php:425
856
+ #: ../classes/class-ccf-form-manager.php:520
857
+ #: ../classes/class-ccf-form-manager.php:533
858
  msgid "Title"
859
  msgstr ""
860
 
861
+ #: ../classes/class-ccf-form-manager.php:415
862
+ #: ../classes/class-ccf-form-manager.php:426
863
  msgid "Subject"
864
  msgstr ""
865
 
866
+ #: ../classes/class-ccf-form-manager.php:416
867
+ #: ../classes/class-ccf-form-manager.php:427
868
  msgid "To"
869
  msgstr ""
870
 
871
+ #: ../classes/class-ccf-form-manager.php:417
872
+ #: ../classes/class-ccf-form-manager.php:428
873
  msgid "Active"
874
  msgstr ""
875
 
876
+ #: ../classes/class-ccf-form-manager.php:433
877
  msgid "New Notification"
878
  msgstr ""
879
 
880
+ #: ../classes/class-ccf-form-manager.php:436
881
  msgid ""
882
  "For notification changes to take affect (updating, adding, deleting, etc.), "
883
  "you will need to save the form."
884
  msgstr ""
885
 
886
+ #: ../classes/class-ccf-form-manager.php:440
887
  msgid "Post Creation"
888
  msgstr ""
889
 
890
+ #: ../classes/class-ccf-form-manager.php:441
891
  msgid ""
892
  "You can have Custom Contact Forms create a post (or custom post type) "
893
  "whenever someone submits your form."
894
  msgstr ""
895
 
896
+ #: ../classes/class-ccf-form-manager.php:444
897
  msgid "Enable Post Creation:"
898
  msgstr ""
899
 
900
+ #: ../classes/class-ccf-form-manager.php:453
901
  msgid "Post Type:"
902
  msgstr ""
903
 
904
+ #: ../classes/class-ccf-form-manager.php:463
905
  msgid "Post Status:"
906
  msgstr ""
907
 
908
+ #: ../classes/class-ccf-form-manager.php:473
909
  msgid "Field Mappings:"
910
  msgstr ""
911
 
912
+ #: ../classes/class-ccf-form-manager.php:478
913
  msgid ""
914
  "You can map as few or as many fields as you like. However, if no form fields "
915
  "are mapped, no post will be created. Mapping a field to post_title is "
916
  "required."
917
  msgstr ""
918
 
919
+ #: ../classes/class-ccf-form-manager.php:490
920
  msgid "Custom Field Key"
921
  msgstr ""
922
 
923
+ #: ../classes/class-ccf-form-manager.php:504
924
  msgid "items"
925
  msgstr ""
926
 
927
+ #: ../classes/class-ccf-form-manager.php:519
928
+ #: ../classes/class-ccf-form-manager.php:532
929
  msgid "ID"
930
  msgstr ""
931
 
932
+ #: ../classes/class-ccf-form-manager.php:547
933
  msgid "<span>&larr;</span> Click on a field to edit it."
934
  msgstr ""
935
 
936
+ #: ../classes/class-ccf-form-manager.php:556
937
+ #: ../classes/class-ccf-form-manager.php:624
938
+ #: ../classes/class-ccf-form-manager.php:759
939
+ #: ../classes/class-ccf-form-manager.php:921
940
  msgid "Internal Unique Slug"
941
  msgstr ""
942
 
943
+ #: ../classes/class-ccf-form-manager.php:560
944
+ #: ../classes/class-ccf-form-manager.php:628
945
+ #: ../classes/class-ccf-form-manager.php:695
946
+ #: ../classes/class-ccf-form-manager.php:730
947
+ #: ../classes/class-ccf-form-manager.php:763
948
+ #: ../classes/class-ccf-form-manager.php:925
949
+ #: ../classes/class-ccf-form-manager.php:1042
950
+ #: ../classes/class-ccf-form-manager.php:1102
951
+ #: ../classes/class-ccf-form-manager.php:1191
952
+ #: ../classes/class-ccf-form-manager.php:1266
953
+ #: ../classes/class-ccf-form-manager.php:1343
954
+ #: ../classes/class-ccf-form-manager.php:1448
955
+ #: ../classes/class-ccf-form-manager.php:1515
956
+ #: ../classes/class-ccf-form-manager.php:1582
957
  msgid "Label:"
958
  msgstr ""
959
 
960
+ #: ../classes/class-ccf-form-manager.php:564
961
+ #: ../classes/class-ccf-form-manager.php:632
962
+ #: ../classes/class-ccf-form-manager.php:699
963
+ #: ../classes/class-ccf-form-manager.php:734
964
+ #: ../classes/class-ccf-form-manager.php:767
965
+ #: ../classes/class-ccf-form-manager.php:929
966
+ #: ../classes/class-ccf-form-manager.php:1046
967
+ #: ../classes/class-ccf-form-manager.php:1106
968
+ #: ../classes/class-ccf-form-manager.php:1195
969
+ #: ../classes/class-ccf-form-manager.php:1270
970
+ #: ../classes/class-ccf-form-manager.php:1347
971
+ #: ../classes/class-ccf-form-manager.php:1452
972
+ #: ../classes/class-ccf-form-manager.php:1519
973
+ #: ../classes/class-ccf-form-manager.php:1586
974
  msgid "Description:"
975
  msgstr ""
976
 
977
+ #: ../classes/class-ccf-form-manager.php:568
978
+ #: ../classes/class-ccf-form-manager.php:771
979
+ #: ../classes/class-ccf-form-manager.php:933
980
+ #: ../classes/class-ccf-form-manager.php:993
981
+ #: ../classes/class-ccf-form-manager.php:1111
982
+ #: ../classes/class-ccf-form-manager.php:1199
983
+ #: ../classes/class-ccf-form-manager.php:1352
984
  msgid "Initial Value:"
985
  msgstr ""
986
 
987
+ #: ../classes/class-ccf-form-manager.php:572
988
+ #: ../classes/class-ccf-form-manager.php:646
989
+ #: ../classes/class-ccf-form-manager.php:775
990
+ #: ../classes/class-ccf-form-manager.php:937
991
+ #: ../classes/class-ccf-form-manager.php:1050
992
+ #: ../classes/class-ccf-form-manager.php:1116
993
+ #: ../classes/class-ccf-form-manager.php:1210
994
+ #: ../classes/class-ccf-form-manager.php:1291
995
+ #: ../classes/class-ccf-form-manager.php:1357
996
+ #: ../classes/class-ccf-form-manager.php:1456
997
+ #: ../classes/class-ccf-form-manager.php:1523
998
+ #: ../classes/class-ccf-form-manager.php:1590
999
  msgid "Required:"
1000
  msgstr ""
1001
 
1002
+ #: ../classes/class-ccf-form-manager.php:581
1003
+ #: ../classes/class-ccf-form-manager.php:655
1004
+ #: ../classes/class-ccf-form-manager.php:715
1005
+ #: ../classes/class-ccf-form-manager.php:740
1006
+ #: ../classes/class-ccf-form-manager.php:784
1007
+ #: ../classes/class-ccf-form-manager.php:833
1008
+ #: ../classes/class-ccf-form-manager.php:882
1009
+ #: ../classes/class-ccf-form-manager.php:946
1010
+ #: ../classes/class-ccf-form-manager.php:999
1011
+ #: ../classes/class-ccf-form-manager.php:1059
1012
+ #: ../classes/class-ccf-form-manager.php:1142
1013
+ #: ../classes/class-ccf-form-manager.php:1219
1014
+ #: ../classes/class-ccf-form-manager.php:1300
1015
+ #: ../classes/class-ccf-form-manager.php:1373
1016
+ #: ../classes/class-ccf-form-manager.php:1472
1017
+ #: ../classes/class-ccf-form-manager.php:1539
1018
+ #: ../classes/class-ccf-form-manager.php:1606
1019
  msgid "Advanced"
1020
  msgstr ""
1021
 
1022
+ #: ../classes/class-ccf-form-manager.php:584
1023
+ #: ../classes/class-ccf-form-manager.php:658
1024
+ #: ../classes/class-ccf-form-manager.php:718
1025
+ #: ../classes/class-ccf-form-manager.php:743
1026
+ #: ../classes/class-ccf-form-manager.php:787
1027
+ #: ../classes/class-ccf-form-manager.php:836
1028
+ #: ../classes/class-ccf-form-manager.php:885
1029
+ #: ../classes/class-ccf-form-manager.php:949
1030
+ #: ../classes/class-ccf-form-manager.php:1002
1031
+ #: ../classes/class-ccf-form-manager.php:1062
1032
+ #: ../classes/class-ccf-form-manager.php:1145
1033
+ #: ../classes/class-ccf-form-manager.php:1222
1034
+ #: ../classes/class-ccf-form-manager.php:1303
1035
+ #: ../classes/class-ccf-form-manager.php:1376
1036
+ #: ../classes/class-ccf-form-manager.php:1475
1037
+ #: ../classes/class-ccf-form-manager.php:1542
1038
+ #: ../classes/class-ccf-form-manager.php:1609
1039
  msgid "Class Name:"
1040
  msgstr ""
1041
 
1042
+ #: ../classes/class-ccf-form-manager.php:588
1043
+ #: ../classes/class-ccf-form-manager.php:747
1044
+ #: ../classes/class-ccf-form-manager.php:791
1045
+ #: ../classes/class-ccf-form-manager.php:953
1046
+ #: ../classes/class-ccf-form-manager.php:1150
1047
+ #: ../classes/class-ccf-form-manager.php:1226
1048
+ #: ../classes/class-ccf-form-manager.php:1381
1049
  msgid "Placeholder Text:"
1050
  msgstr ""
1051
 
1052
+ #: ../classes/class-ccf-form-manager.php:592
1053
+ #: ../classes/class-ccf-form-manager.php:662
1054
+ #: ../classes/class-ccf-form-manager.php:795
1055
+ #: ../classes/class-ccf-form-manager.php:840
1056
+ #: ../classes/class-ccf-form-manager.php:889
1057
+ #: ../classes/class-ccf-form-manager.php:957
1058
+ #: ../classes/class-ccf-form-manager.php:1006
1059
+ #: ../classes/class-ccf-form-manager.php:1066
1060
+ #: ../classes/class-ccf-form-manager.php:1155
1061
+ #: ../classes/class-ccf-form-manager.php:1230
1062
+ #: ../classes/class-ccf-form-manager.php:1307
1063
+ #: ../classes/class-ccf-form-manager.php:1386
1064
+ #: ../classes/class-ccf-form-manager.php:1479
1065
+ #: ../classes/class-ccf-form-manager.php:1546
1066
+ #: ../classes/class-ccf-form-manager.php:1613
 
1067
  msgid "Enable Conditional Logic:"
1068
  msgstr ""
1069
 
1070
+ #: ../classes/class-ccf-form-manager.php:600
1071
+ #: ../classes/class-ccf-form-manager.php:670
1072
+ #: ../classes/class-ccf-form-manager.php:803
1073
+ #: ../classes/class-ccf-form-manager.php:848
1074
+ #: ../classes/class-ccf-form-manager.php:897
1075
+ #: ../classes/class-ccf-form-manager.php:965
1076
+ #: ../classes/class-ccf-form-manager.php:1014
1077
+ #: ../classes/class-ccf-form-manager.php:1074
1078
+ #: ../classes/class-ccf-form-manager.php:1163
1079
+ #: ../classes/class-ccf-form-manager.php:1238
1080
+ #: ../classes/class-ccf-form-manager.php:1315
1081
+ #: ../classes/class-ccf-form-manager.php:1394
1082
+ #: ../classes/class-ccf-form-manager.php:1487
1083
+ #: ../classes/class-ccf-form-manager.php:1554
1084
+ #: ../classes/class-ccf-form-manager.php:1621
 
1085
  msgid "Hide"
1086
  msgstr ""
1087
 
1088
+ #: ../classes/class-ccf-form-manager.php:601
1089
+ #: ../classes/class-ccf-form-manager.php:671
1090
+ #: ../classes/class-ccf-form-manager.php:804
1091
+ #: ../classes/class-ccf-form-manager.php:849
1092
+ #: ../classes/class-ccf-form-manager.php:898
1093
+ #: ../classes/class-ccf-form-manager.php:966
1094
+ #: ../classes/class-ccf-form-manager.php:1015
1095
+ #: ../classes/class-ccf-form-manager.php:1075
1096
+ #: ../classes/class-ccf-form-manager.php:1164
1097
+ #: ../classes/class-ccf-form-manager.php:1239
1098
+ #: ../classes/class-ccf-form-manager.php:1316
1099
+ #: ../classes/class-ccf-form-manager.php:1395
1100
+ #: ../classes/class-ccf-form-manager.php:1488
1101
+ #: ../classes/class-ccf-form-manager.php:1555
1102
+ #: ../classes/class-ccf-form-manager.php:1622
 
1103
  msgid "Show"
1104
  msgstr ""
1105
 
1106
+ #: ../classes/class-ccf-form-manager.php:604
1107
+ #: ../classes/class-ccf-form-manager.php:674
1108
+ #: ../classes/class-ccf-form-manager.php:807
1109
+ #: ../classes/class-ccf-form-manager.php:852
1110
+ #: ../classes/class-ccf-form-manager.php:901
1111
+ #: ../classes/class-ccf-form-manager.php:969
1112
+ #: ../classes/class-ccf-form-manager.php:1018
1113
+ #: ../classes/class-ccf-form-manager.php:1078
1114
+ #: ../classes/class-ccf-form-manager.php:1167
1115
+ #: ../classes/class-ccf-form-manager.php:1242
1116
+ #: ../classes/class-ccf-form-manager.php:1319
1117
+ #: ../classes/class-ccf-form-manager.php:1398
1118
+ #: ../classes/class-ccf-form-manager.php:1491
1119
+ #: ../classes/class-ccf-form-manager.php:1558
1120
+ #: ../classes/class-ccf-form-manager.php:1625
 
1121
  msgid "this field if"
1122
  msgstr ""
1123
 
1124
+ #: ../classes/class-ccf-form-manager.php:607
1125
+ #: ../classes/class-ccf-form-manager.php:677
1126
+ #: ../classes/class-ccf-form-manager.php:810
1127
+ #: ../classes/class-ccf-form-manager.php:855
1128
+ #: ../classes/class-ccf-form-manager.php:904
1129
+ #: ../classes/class-ccf-form-manager.php:972
1130
+ #: ../classes/class-ccf-form-manager.php:1021
1131
+ #: ../classes/class-ccf-form-manager.php:1081
1132
+ #: ../classes/class-ccf-form-manager.php:1170
1133
+ #: ../classes/class-ccf-form-manager.php:1245
1134
+ #: ../classes/class-ccf-form-manager.php:1322
1135
+ #: ../classes/class-ccf-form-manager.php:1401
1136
+ #: ../classes/class-ccf-form-manager.php:1494
1137
+ #: ../classes/class-ccf-form-manager.php:1561
1138
+ #: ../classes/class-ccf-form-manager.php:1628
 
1139
  msgid "All"
1140
  msgstr ""
1141
 
1142
+ #: ../classes/class-ccf-form-manager.php:608
1143
+ #: ../classes/class-ccf-form-manager.php:678
1144
+ #: ../classes/class-ccf-form-manager.php:811
1145
+ #: ../classes/class-ccf-form-manager.php:856
1146
+ #: ../classes/class-ccf-form-manager.php:905
1147
+ #: ../classes/class-ccf-form-manager.php:973
1148
+ #: ../classes/class-ccf-form-manager.php:1022
1149
+ #: ../classes/class-ccf-form-manager.php:1082
1150
+ #: ../classes/class-ccf-form-manager.php:1171
1151
+ #: ../classes/class-ccf-form-manager.php:1246
1152
+ #: ../classes/class-ccf-form-manager.php:1323
1153
+ #: ../classes/class-ccf-form-manager.php:1402
1154
+ #: ../classes/class-ccf-form-manager.php:1495
1155
+ #: ../classes/class-ccf-form-manager.php:1562
1156
+ #: ../classes/class-ccf-form-manager.php:1629
 
1157
  msgid "Any"
1158
  msgstr ""
1159
 
1160
+ #: ../classes/class-ccf-form-manager.php:611
1161
+ #: ../classes/class-ccf-form-manager.php:681
1162
+ #: ../classes/class-ccf-form-manager.php:814
1163
+ #: ../classes/class-ccf-form-manager.php:859
1164
+ #: ../classes/class-ccf-form-manager.php:908
1165
+ #: ../classes/class-ccf-form-manager.php:976
1166
+ #: ../classes/class-ccf-form-manager.php:1025
1167
+ #: ../classes/class-ccf-form-manager.php:1085
1168
+ #: ../classes/class-ccf-form-manager.php:1174
1169
+ #: ../classes/class-ccf-form-manager.php:1249
1170
+ #: ../classes/class-ccf-form-manager.php:1326
1171
+ #: ../classes/class-ccf-form-manager.php:1405
1172
+ #: ../classes/class-ccf-form-manager.php:1498
1173
+ #: ../classes/class-ccf-form-manager.php:1565
1174
+ #: ../classes/class-ccf-form-manager.php:1632
 
1175
  msgid "of these conditions are true:"
1176
  msgstr ""
1177
 
1178
+ #: ../classes/class-ccf-form-manager.php:636
1179
  msgid "Allowed File Extensions (comma separate):"
1180
  msgstr ""
1181
 
1182
+ #: ../classes/class-ccf-form-manager.php:638
1183
  msgid ""
1184
  "If left blank, will default to all extensions registered by WordPress. If "
1185
  "you use a file extension or mime type not <a href=\"http://codex.wordpress."
1187
  "a>, you will need to filter and manually whitelist the new extension."
1188
  msgstr ""
1189
 
1190
+ #: ../classes/class-ccf-form-manager.php:641
1191
  msgid "Max File Size (in MB):"
1192
  msgstr ""
1193
 
1194
+ #: ../classes/class-ccf-form-manager.php:643
1195
  #, php-format
1196
  msgid ""
1197
  "If left blank, will default to %d MB. Maximum allowed by server is %d MB."
1198
  msgstr ""
1199
 
1200
+ #: ../classes/class-ccf-form-manager.php:693
1201
  msgid ""
1202
  "reCAPTCHA is a simple captcha service provided by Google. <a target=\"_blank"
1203
  "\" href=\"https://www.google.com/recaptcha/intro/index.html\">Learn more</a>"
1204
  msgstr ""
1205
 
1206
+ #: ../classes/class-ccf-form-manager.php:703
1207
  msgid "Site Key:"
1208
  msgstr ""
1209
 
1210
+ #: ../classes/class-ccf-form-manager.php:705
1211
+ #: ../classes/class-ccf-form-manager.php:710
1212
  msgid "Don't have one?"
1213
  msgstr ""
1214
 
1215
+ #: ../classes/class-ccf-form-manager.php:708
1216
  msgid "Secret Key:"
1217
  msgstr ""
1218
 
1219
+ #: ../classes/class-ccf-form-manager.php:824
1220
+ #: ../classes/class-ccf-form-manager.php:869
1221
+ #: ../classes/class-ccf-form-manager.php:918
1222
+ #: ../classes/class-ccf-form-manager.php:986
1223
+ #: ../classes/class-ccf-form-manager.php:1035
1224
+ #: ../classes/class-ccf-form-manager.php:1095
1225
+ #: ../classes/class-ccf-form-manager.php:1184
1226
+ #: ../classes/class-ccf-form-manager.php:1259
1227
+ #: ../classes/class-ccf-form-manager.php:1336
1228
+ #: ../classes/class-ccf-form-manager.php:1441
1229
+ #: ../classes/class-ccf-form-manager.php:1508
1230
+ #: ../classes/class-ccf-form-manager.php:1575
1231
  msgid "Basic"
1232
  msgstr ""
1233
 
1234
+ #: ../classes/class-ccf-form-manager.php:827
1235
  msgid "HTML Content:"
1236
  msgstr ""
1237
 
1238
+ #: ../classes/class-ccf-form-manager.php:872
1239
  msgid "Heading:"
1240
  msgstr ""
1241
 
1242
+ #: ../classes/class-ccf-form-manager.php:876
1243
  msgid "Sub Heading:"
1244
  msgstr ""
1245
 
1246
+ #: ../classes/class-ccf-form-manager.php:989
1247
+ #: ../classes/class-ccf-form-manager.php:1038
1248
+ #: ../classes/class-ccf-form-manager.php:1098
1249
+ #: ../classes/class-ccf-form-manager.php:1187
1250
+ #: ../classes/class-ccf-form-manager.php:1262
1251
+ #: ../classes/class-ccf-form-manager.php:1339
1252
+ #: ../classes/class-ccf-form-manager.php:1444
1253
+ #: ../classes/class-ccf-form-manager.php:1511
1254
+ #: ../classes/class-ccf-form-manager.php:1578
1255
  msgid "Internal Unique Slug (a-z, 0-9, -, _):"
1256
  msgstr ""
1257
 
1258
+ #: ../classes/class-ccf-form-manager.php:1124
1259
  msgid "Enable Date Select"
1260
  msgstr ""
1261
 
1262
+ #: ../classes/class-ccf-form-manager.php:1128
1263
  msgid "Enable Time Select"
1264
  msgstr ""
1265
 
1266
+ #: ../classes/class-ccf-form-manager.php:1132
1267
  msgid "Date Format:"
1268
  msgstr ""
1269
 
1270
+ #: ../classes/class-ccf-form-manager.php:1203
1271
  msgid "Format:"
1272
  msgstr ""
1273
 
1274
+ #: ../classes/class-ccf-form-manager.php:1206
1275
+ #: ../classes/class-ccf-form-manager.php:1277
1276
  msgid "International"
1277
  msgstr ""
1278
 
1279
+ #: ../classes/class-ccf-form-manager.php:1274
1280
  msgid "Type:"
1281
  msgstr ""
1282
 
1283
+ #: ../classes/class-ccf-form-manager.php:1276
1284
  msgid "United States"
1285
  msgstr ""
1286
 
1287
+ #: ../classes/class-ccf-form-manager.php:1282
1288
+ msgid "Default Country:"
1289
+ msgstr ""
1290
+
1291
+ #: ../classes/class-ccf-form-manager.php:1364
1292
  msgid "Require Confirmation:"
1293
  msgstr ""
1294
 
1295
+ #: ../classes/class-ccf-form-manager.php:1416
1296
  msgid "Label"
1297
  msgstr ""
1298
 
1299
+ #: ../classes/class-ccf-form-manager.php:1417
1300
  msgid "Value"
1301
  msgstr ""
1302
 
1303
+ #: ../classes/class-ccf-form-manager.php:1430
1304
  msgid "is"
1305
  msgstr ""
1306
 
1307
+ #: ../classes/class-ccf-form-manager.php:1431
1308
  msgid "is not"
1309
  msgstr ""
1310
 
1311
+ #: ../classes/class-ccf-form-manager.php:1432
1312
  msgid ">"
1313
  msgstr ""
1314
 
1315
+ #: ../classes/class-ccf-form-manager.php:1433
1316
  msgid "<"
1317
  msgstr ""
1318
 
1319
+ #: ../classes/class-ccf-form-manager.php:1434
1320
  msgid "contains"
1321
  msgstr ""
1322
 
1323
+ #: ../classes/class-ccf-form-manager.php:1436
1324
  msgid "Field value"
1325
  msgstr ""
1326
 
1327
+ #: ../classes/class-ccf-form-manager.php:1463
1328
+ #: ../classes/class-ccf-form-manager.php:1530
1329
+ #: ../classes/class-ccf-form-manager.php:1597
1330
  msgid "Manage field choices:"
1331
  msgstr ""
1332
 
1333
+ #: ../classes/class-ccf-form-manager.php:1467
1334
+ #: ../classes/class-ccf-form-manager.php:1534
1335
+ #: ../classes/class-ccf-form-manager.php:1601
1336
  msgid ""
1337
  "Note: If an option does not have a \"value\", it will not be considered a "
1338
  "valid selection if the field is required. The \"value\" is what's read, "
1339
  "stored, and displayed in the submission."
1340
  msgstr ""
1341
 
1342
+ #: ../classes/class-ccf-form-manager.php:1642
1343
  msgid "You currently have no forms. Add some!"
1344
  msgstr ""
1345
 
1346
+ #: ../classes/class-ccf-form-manager.php:1665
1347
  msgid "Allowed file extensions are {{ extensions }}. "
1348
  msgstr ""
1349
 
1350
+ #: ../classes/class-ccf-form-manager.php:1667
1351
  msgid "Max file size is {{ file_size }} MB. "
1352
  msgstr ""
1353
 
1354
+ #: ../classes/class-ccf-form-manager.php:1702
1355
+ #: ../classes/class-ccf-form-manager.php:1718
1356
+ #: ../classes/class-ccf-form-manager.php:1736
1357
  msgid "An example choice"
1358
  msgstr ""
1359
 
1360
+ #: ../classes/class-ccf-form-manager.php:1755
1361
  msgid "Arbitrary block of HTML."
1362
  msgstr ""
1363
 
1364
+ #: ../classes/class-ccf-form-manager.php:1762
1365
  msgid "Section Heading"
1366
  msgstr ""
1367
 
1368
+ #: ../classes/class-ccf-form-manager.php:1764
1369
  msgid "This is the sub-heading text."
1370
  msgstr ""
1371
 
1372
+ #: ../classes/class-ccf-form-manager.php:1935
1373
  msgid "Duplicate form"
1374
  msgstr ""
1375
 
1376
+ #: ../classes/class-ccf-form-manager.php:1936
1377
  msgid "Trash"
1378
  msgstr ""
1379
 
1380
+ #: ../classes/class-ccf-form-manager.php:1979
1381
  msgid "There is a problem with this form. Is it trashed or deleted?"
1382
  msgstr ""
1383
 
1384
+ #: ../classes/class-ccf-form-manager.php:2126
1385
  msgid "IP Address"
1386
  msgstr ""
1387
 
1388
+ #: ../classes/class-ccf-form-manager.php:2133
1389
+ msgid "Form Page URL"
1390
+ msgstr ""
1391
+
1392
+ #: ../classes/class-ccf-form-manager.php:2146
1393
  msgid "There are no submissions."
1394
  msgstr ""
1395
 
1396
+ #: ../classes/class-ccf-form-manager.php:2175
1397
  msgid "Add Form"
1398
  msgstr ""
1399
 
1400
+ #: ../classes/class-ccf-form-manager.php:2198
1401
  msgid "Single Line Text"
1402
  msgstr ""
1403
 
1404
+ #: ../classes/class-ccf-form-manager.php:2199
1405
  msgid "Dropdown"
1406
  msgstr ""
1407
 
1408
+ #: ../classes/class-ccf-form-manager.php:2200
1409
  msgid "Checkboxes"
1410
  msgstr ""
1411
 
1412
+ #: ../classes/class-ccf-form-manager.php:2201
1413
  msgid "Radio Buttons"
1414
  msgstr ""
1415
 
1416
+ #: ../classes/class-ccf-form-manager.php:2202
1417
  msgid "Paragraph Text"
1418
  msgstr ""
1419
 
1420
+ #: ../classes/class-ccf-form-manager.php:2203
1421
  msgid "Hidden"
1422
  msgstr ""
1423
 
1424
+ #: ../classes/class-ccf-form-manager.php:2204
1425
  msgid "File Upload"
1426
  msgstr ""
1427
 
1428
+ #: ../classes/class-ccf-form-manager.php:2208
1429
  msgid "HTML"
1430
  msgstr ""
1431
 
1432
+ #: ../classes/class-ccf-form-manager.php:2209
1433
  msgid "Section"
1434
  msgstr ""
1435
 
1436
+ #: ../classes/class-ccf-form-manager.php:2214
1437
  msgid "Name"
1438
  msgstr ""
1439
 
1440
+ #: ../classes/class-ccf-form-manager.php:2215
1441
  msgid "Date/Time"
1442
  msgstr ""
1443
 
1444
+ #: ../classes/class-ccf-form-manager.php:2216
1445
  msgid "Website"
1446
  msgstr ""
1447
 
1448
+ #: ../classes/class-ccf-form-manager.php:2217
1449
  msgid "Address"
1450
  msgstr ""
1451
 
1452
+ #: ../classes/class-ccf-form-manager.php:2218
1453
  msgid "Phone"
1454
  msgstr ""
1455
 
1456
+ #: ../classes/class-ccf-form-manager.php:2219
1457
  msgid "reCAPTCHA"
1458
  msgstr ""
1459
 
1460
+ #: ../classes/class-ccf-form-manager.php:2220
1461
+ msgid "Simple CAPTCHA"
1462
+ msgstr ""
1463
+
1464
+ #: ../classes/class-ccf-form-manager.php:2252
1465
+ msgid "Type the characters in the image"
1466
+ msgstr ""
1467
+
1468
+ #: ../classes/class-ccf-form-manager.php:2254
1469
  msgid "You have no email fields"
1470
  msgstr ""
1471
 
1472
+ #: ../classes/class-ccf-form-manager.php:2255
1473
  msgid "No available fields"
1474
  msgstr ""
1475
 
1476
+ #: ../classes/class-ccf-form-manager.php:2256
1477
  msgid "You have no name fields"
1478
  msgstr ""
1479
 
1480
+ #: ../classes/class-ccf-form-manager.php:2257
1481
  msgid "You have no applicable fields"
1482
  msgstr ""
1483
 
1484
+ #: ../classes/class-ccf-form-manager.php:2258
1485
  msgid "Choose a Form Field"
1486
  msgstr ""
1487
 
1488
+ #: ../classes/class-ccf-form-manager.php:2259
1489
  msgid "Invalid date"
1490
  msgstr ""
1491
 
1492
+ #: ../classes/class-ccf-form-manager.php:2261
1493
  msgid "Field Label"
1494
  msgstr ""
1495
 
1496
+ #: ../classes/class-ccf-form-manager.php:2263
1497
+ #: ../classes/class-ccf-form-renderer.php:182
1498
  msgid "This form is paused right now. Check back later!"
1499
  msgstr ""
1500
 
1501
+ #: ../classes/class-ccf-form-manager.php:2265
1502
  msgid "Choose a Post Field"
1503
  msgstr ""
1504
 
1505
+ #: ../classes/class-ccf-form-manager.php:2268
1506
  msgid "Post Title"
1507
  msgstr ""
1508
 
1509
+ #: ../classes/class-ccf-form-manager.php:2269
1510
  msgid "Post Content"
1511
  msgstr ""
1512
 
1513
+ #: ../classes/class-ccf-form-manager.php:2270
1514
  msgid "Post Excerpt"
1515
  msgstr ""
1516
 
1517
+ #: ../classes/class-ccf-form-manager.php:2271
1518
  msgid "Post Date"
1519
  msgstr ""
1520
 
1521
+ #: ../classes/class-ccf-form-manager.php:2274
1522
  msgid "Post Tags"
1523
  msgstr ""
1524
 
1525
+ #: ../classes/class-ccf-form-manager.php:2275
1526
  msgid "Custom Field"
1527
  msgstr ""
1528
 
1550
  msgid "An unknown error occured."
1551
  msgstr ""
1552
 
1553
+ #: ../classes/class-ccf-form-renderer.php:173
1554
+ msgid "Log in to view this form."
1555
+ msgstr ""
1556
+
1557
  #: ../classes/class-ccf-settings.php:76
1558
  msgid "Enable Asset Loading Restrictions"
1559
  msgstr ""
readme.txt CHANGED
@@ -27,6 +27,8 @@ Custom Contact Forms enables you to build forms and manage submissions the WordP
27
  * Multiple themes to choose from
28
  * No custom database tables
29
  * Easy form duplication
 
 
30
  * Forms can show customizable completion text or redirect to a URL.
31
  * Temporarily pause forms with a customizable pause message.
32
  * Create and manage multiple notifications for each form. Notifications can send emails to one or more administrators or form submittors. Customize notification email subject, from email address, from email name, and email body. Map form fields to email subject, from name, and from email address. Easily activate and deactivate notifications.
@@ -58,9 +60,19 @@ For full documentation, questions, feature requests, and support concerning the
58
 
59
  == Changelog ==
60
 
 
 
 
 
 
 
 
 
 
61
  = 7.6 =
62
  * Form duplication
63
  * Fix multiple section header bug
 
64
 
65
  = 7.5 =
66
  * Conditional fields and sections
27
  * Multiple themes to choose from
28
  * No custom database tables
29
  * Easy form duplication
30
+ * Multiple types of CAPTCHAs for spam blocking
31
+ * Only show forms to logged in users
32
  * Forms can show customizable completion text or redirect to a URL.
33
  * Temporarily pause forms with a customizable pause message.
34
  * Create and manage multiple notifications for each form. Notifications can send emails to one or more administrators or form submittors. Customize notification email subject, from email address, from email name, and email body. Map form fields to email subject, from name, and from email address. Easily activate and deactivate notifications.
60
 
61
  == Changelog ==
62
 
63
+ = 7.7 =
64
+ * New CAPTCHA option
65
+ * Fix "0" choice input bug
66
+ * Fix empty conditional bug
67
+ * Reset field renderer bug fixed
68
+ * Guide user for whitelisting file extenions in file field
69
+ * Submit class form option
70
+ * Logged in users only form option
71
+
72
  = 7.6 =
73
  * Form duplication
74
  * Fix multiple section header bug
75
+ * Button class field
76
 
77
  = 7.5 =
78
  * Conditional fields and sections
vendor/abeautifulsite/simple-php-captcha/.gitignore ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ .DS_Store
2
+ simple-php-captcha.sublime-project
3
+ simple-php-captcha.sublime-workspace
vendor/abeautifulsite/simple-php-captcha/backgrounds/45-degree-fabric.png ADDED
Binary file
vendor/abeautifulsite/simple-php-captcha/backgrounds/cloth-alike.png ADDED
Binary file
vendor/abeautifulsite/simple-php-captcha/backgrounds/grey-sandbag.png ADDED
Binary file
vendor/abeautifulsite/simple-php-captcha/backgrounds/kinda-jean.png ADDED
Binary file
vendor/abeautifulsite/simple-php-captcha/backgrounds/polyester-lite.png ADDED
Binary file
vendor/abeautifulsite/simple-php-captcha/backgrounds/stitched-wool.png ADDED
Binary file
vendor/abeautifulsite/simple-php-captcha/backgrounds/white-carbon.png ADDED
Binary file
vendor/abeautifulsite/simple-php-captcha/backgrounds/white-wave.png ADDED
Binary file
vendor/abeautifulsite/simple-php-captcha/composer.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ {
2
+ "name": "abeautifulsite/simple-php-captcha",
3
+ "description": "A simple PHP CAPTCHA script",
4
+ "version": "1.0.0",
5
+ "homepage": "http://www.abeautifulsite.net/",
6
+ "license": "MIT"
7
+ }
vendor/abeautifulsite/simple-php-captcha/fonts/times_new_yorker.ttf ADDED
Binary file
vendor/abeautifulsite/simple-php-captcha/index.php ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ session_start();
3
+ $_SESSION = array();
4
+
5
+ include("simple-php-captcha.php");
6
+ $_SESSION['captcha'] = simple_php_captcha();
7
+
8
+ ?>
9
+ <!DOCTYPE html>
10
+ <html>
11
+ <head>
12
+ <title>Example &raquo; A simple PHP CAPTCHA script</title>
13
+ <style type="text/css">
14
+ pre {
15
+ border: solid 1px #bbb;
16
+ padding: 10px;
17
+ margin: 2em;
18
+ }
19
+
20
+ img {
21
+ border: solid 1px #ccc;
22
+ margin: 0 2em;
23
+ }
24
+ </style>
25
+ </head>
26
+ <body>
27
+ <h1>
28
+ CAPTCHA Example
29
+ </h1>
30
+
31
+ <h2>Usage</h2>
32
+
33
+ <p>
34
+ The following code will prepare a CAPTCHA image and keep the code in a session
35
+ variable for later use:
36
+ </p>
37
+
38
+ <pre>
39
+ &lt;?php
40
+ session_start();
41
+ include("simple-php-captcha.php");
42
+ $_SESSION['captcha'] = simple_php_captcha();
43
+ ?&gt;
44
+ </pre>
45
+
46
+ <p>
47
+ After the call to <code>simple_php_captcha()</code> above,
48
+ <code>$_SESSION['captcha']</code> will be something like this:
49
+ </p>
50
+
51
+ <pre>
52
+ <?php
53
+ print_r($_SESSION['captcha']);
54
+ ?>
55
+ </pre>
56
+
57
+ <p>
58
+ To display the CAPTCHA image, create an HTML <code>&lt;img&gt;</code> using
59
+ <code>$_SESSION['captcha']['image_src']</code> as the <code>src</code> attribute:
60
+ </p>
61
+
62
+ <p>
63
+ <?php
64
+ echo '<img src="' . $_SESSION['captcha']['image_src'] . '" alt="CAPTCHA code">';
65
+
66
+ ?>
67
+ </p>
68
+
69
+ <p>
70
+ To verify the CAPTCHA value on the next page load (or in an AJAX request), test
71
+ against <code>$_SESSION['captcha']['code']</code>. You can use
72
+ <code>strtolower()</code> or <code>strtoupper()</code> to perform a
73
+ case-insensitive match.
74
+ </p>
75
+
76
+ <h2>Configuration</h2>
77
+ <p>
78
+ Configuration is easy and all values are optional. To specify one or more options,
79
+ do this:
80
+ </p>
81
+
82
+ <pre>
83
+ &lt;?php
84
+
85
+ $_SESSION['captcha'] = simple_php_captcha( array(
86
+ 'min_length' => 5,
87
+ 'max_length' => 5,
88
+ 'backgrounds' => array(image.png', ...),
89
+ 'fonts' => array('font.ttf', ...),
90
+ 'characters' => 'ABCDEFGHJKLMNPRSTUVWXYZabcdefghjkmnprstuvwxyz23456789',
91
+ 'min_font_size' => 28,
92
+ 'max_font_size' => 28,
93
+ 'color' => '#666',
94
+ 'angle_min' => 0,
95
+ 'angle_max' => 10,
96
+ 'shadow' => true,
97
+ 'shadow_color' => '#fff',
98
+ 'shadow_offset_x' => -1,
99
+ 'shadow_offset_y' => 1
100
+ ));
101
+
102
+ &gt;
103
+ </pre>
104
+
105
+ <h2>Notes</h2>
106
+ <ul>
107
+ <li>
108
+ <strong>Important!</strong> Make sure you call <code>session_start()</code> before
109
+ calling the <code>simple_php_captcha()</code> function
110
+ </li>
111
+ <li>
112
+ Requires PHP GD2 library
113
+ </li>
114
+ <li>
115
+ Backgound images must be in PNG format
116
+ </li>
117
+ <li>
118
+ Fonts must be either TTF or OTF
119
+ </li>
120
+ <li>
121
+ Backgrounds and fonts must be specified using their full paths (tip: use
122
+ <code>$_SERVER['DOCUMENT_ROOT'] . '/' . [path-to-file]</code>)
123
+ </li>
124
+ <li>
125
+ Angles should not exceed approximately 15 degrees, as the text will sometimes
126
+ appear outside of the viewable area
127
+ </li>
128
+ <li>
129
+ Creates a function called <code>simple_php_captcha()</code> in the global namespace
130
+ </li>
131
+ <li>
132
+ Uses the <code>$_SESSION['simple-php-captcha']</code> session variable
133
+ </li>
134
+ </ul>
135
+
136
+ </body>
137
+ </html>
vendor/abeautifulsite/simple-php-captcha/readme.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # A simple PHP CAPTCHA script
2
+
3
+ _Written by Cory LaViska for A Beautiful Site, LLC. (http://abeautifulsite.net/)_
4
+
5
+ _Licensed under the MIT license: http://opensource.org/licenses/MIT_
6
+
7
+ ## Demo and Usage
8
+
9
+ http://labs.abeautifulsite.net/simple-php-captcha/
10
+
11
+ ## Attribution
12
+
13
+ - Special thanks to Subtle Patterns for the patterns used for default backgrounds: http://subtlepatterns.com/
14
+ - Special thanks to dafont.com for providing Times New Yorker: http://www.dafont.com/
vendor/abeautifulsite/simple-php-captcha/simple-php-captcha.php ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ //
3
+ // A simple PHP CAPTCHA script
4
+ //
5
+ // Copyright 2011 by Cory LaViska for A Beautiful Site, LLC
6
+ //
7
+ // See readme.md for usage, demo, and licensing info
8
+ //
9
+ function simple_php_captcha($config = array()) {
10
+
11
+ // Check for GD library
12
+ if( !function_exists('gd_info') ) {
13
+ throw new Exception('Required GD library is missing');
14
+ }
15
+
16
+ $bg_path = dirname(__FILE__) . '/backgrounds/';
17
+ $font_path = dirname(__FILE__) . '/fonts/';
18
+
19
+ // Default values
20
+ $captcha_config = array(
21
+ 'code' => '',
22
+ 'min_length' => 5,
23
+ 'max_length' => 5,
24
+ 'backgrounds' => array(
25
+ $bg_path . '45-degree-fabric.png',
26
+ $bg_path . 'cloth-alike.png',
27
+ $bg_path . 'grey-sandbag.png',
28
+ $bg_path . 'kinda-jean.png',
29
+ $bg_path . 'polyester-lite.png',
30
+ $bg_path . 'stitched-wool.png',
31
+ $bg_path . 'white-carbon.png',
32
+ $bg_path . 'white-wave.png'
33
+ ),
34
+ 'fonts' => array(
35
+ $font_path . 'times_new_yorker.ttf'
36
+ ),
37
+ 'characters' => 'ABCDEFGHJKLMNPRSTUVWXYZabcdefghjkmnprstuvwxyz23456789',
38
+ 'min_font_size' => 28,
39
+ 'max_font_size' => 28,
40
+ 'color' => '#666',
41
+ 'angle_min' => 0,
42
+ 'angle_max' => 10,
43
+ 'shadow' => true,
44
+ 'shadow_color' => '#fff',
45
+ 'shadow_offset_x' => -1,
46
+ 'shadow_offset_y' => 1
47
+ );
48
+
49
+ // Overwrite defaults with custom config values
50
+ if( is_array($config) ) {
51
+ foreach( $config as $key => $value ) $captcha_config[$key] = $value;
52
+ }
53
+
54
+ // Restrict certain values
55
+ if( $captcha_config['min_length'] < 1 ) $captcha_config['min_length'] = 1;
56
+ if( $captcha_config['angle_min'] < 0 ) $captcha_config['angle_min'] = 0;
57
+ if( $captcha_config['angle_max'] > 10 ) $captcha_config['angle_max'] = 10;
58
+ if( $captcha_config['angle_max'] < $captcha_config['angle_min'] ) $captcha_config['angle_max'] = $captcha_config['angle_min'];
59
+ if( $captcha_config['min_font_size'] < 10 ) $captcha_config['min_font_size'] = 10;
60
+ if( $captcha_config['max_font_size'] < $captcha_config['min_font_size'] ) $captcha_config['max_font_size'] = $captcha_config['min_font_size'];
61
+
62
+ // Generate CAPTCHA code if not set by user
63
+ if( empty($captcha_config['code']) ) {
64
+ $captcha_config['code'] = '';
65
+ $length = mt_rand($captcha_config['min_length'], $captcha_config['max_length']);
66
+ while( strlen($captcha_config['code']) < $length ) {
67
+ $captcha_config['code'] .= substr($captcha_config['characters'], mt_rand() % (strlen($captcha_config['characters'])), 1);
68
+ }
69
+ }
70
+
71
+ // Generate HTML for image src
72
+ if ( strpos($_SERVER['SCRIPT_FILENAME'], $_SERVER['DOCUMENT_ROOT']) ) {
73
+ $image_src = substr(__FILE__, strlen( realpath($_SERVER['DOCUMENT_ROOT']) )) . '?_CAPTCHA&amp;t=' . urlencode(microtime());
74
+ $image_src = '/' . ltrim(preg_replace('/\\\\/', '/', $image_src), '/');
75
+ } else {
76
+ $_SERVER['WEB_ROOT'] = str_replace($_SERVER['SCRIPT_NAME'], '', $_SERVER['SCRIPT_FILENAME']);
77
+ $image_src = substr(__FILE__, strlen( realpath($_SERVER['WEB_ROOT']) )) . '?_CAPTCHA&amp;t=' . urlencode(microtime());
78
+ $image_src = '/' . ltrim(preg_replace('/\\\\/', '/', $image_src), '/');
79
+ }
80
+
81
+ $_SESSION['_CAPTCHA']['config'] = serialize($captcha_config);
82
+
83
+ return array(
84
+ 'code' => $captcha_config['code'],
85
+ 'image_src' => $image_src
86
+ );
87
+
88
+ }
89
+
90
+
91
+ if( !function_exists('hex2rgb') ) {
92
+ function hex2rgb($hex_str, $return_string = false, $separator = ',') {
93
+ $hex_str = preg_replace("/[^0-9A-Fa-f]/", '', $hex_str); // Gets a proper hex string
94
+ $rgb_array = array();
95
+ if( strlen($hex_str) == 6 ) {
96
+ $color_val = hexdec($hex_str);
97
+ $rgb_array['r'] = 0xFF & ($color_val >> 0x10);
98
+ $rgb_array['g'] = 0xFF & ($color_val >> 0x8);
99
+ $rgb_array['b'] = 0xFF & $color_val;
100
+ } elseif( strlen($hex_str) == 3 ) {
101
+ $rgb_array['r'] = hexdec(str_repeat(substr($hex_str, 0, 1), 2));
102
+ $rgb_array['g'] = hexdec(str_repeat(substr($hex_str, 1, 1), 2));
103
+ $rgb_array['b'] = hexdec(str_repeat(substr($hex_str, 2, 1), 2));
104
+ } else {
105
+ return false;
106
+ }
107
+ return $return_string ? implode($separator, $rgb_array) : $rgb_array;
108
+ }
109
+ }
110
+
111
+ // Draw the image
112
+ if( isset($_GET['_CAPTCHA']) ) {
113
+
114
+ session_start();
115
+
116
+ $captcha_config = unserialize($_SESSION['_CAPTCHA']['config']);
117
+ if( !$captcha_config ) exit();
118
+
119
+ unset($_SESSION['_CAPTCHA']);
120
+
121
+ // Pick random background, get info, and start captcha
122
+ $background = $captcha_config['backgrounds'][mt_rand(0, count($captcha_config['backgrounds']) -1)];
123
+ list($bg_width, $bg_height, $bg_type, $bg_attr) = getimagesize($background);
124
+
125
+ $captcha = imagecreatefrompng($background);
126
+
127
+ $color = hex2rgb($captcha_config['color']);
128
+ $color = imagecolorallocate($captcha, $color['r'], $color['g'], $color['b']);
129
+
130
+ // Determine text angle
131
+ $angle = mt_rand( $captcha_config['angle_min'], $captcha_config['angle_max'] ) * (mt_rand(0, 1) == 1 ? -1 : 1);
132
+
133
+ // Select font randomly
134
+ $font = $captcha_config['fonts'][mt_rand(0, count($captcha_config['fonts']) - 1)];
135
+
136
+ // Verify font file exists
137
+ if( !file_exists($font) ) throw new Exception('Font file not found: ' . $font);
138
+
139
+ //Set the font size.
140
+ $font_size = mt_rand($captcha_config['min_font_size'], $captcha_config['max_font_size']);
141
+ $text_box_size = imagettfbbox($font_size, $angle, $font, $captcha_config['code']);
142
+
143
+ // Determine text position
144
+ $box_width = abs($text_box_size[6] - $text_box_size[2]);
145
+ $box_height = abs($text_box_size[5] - $text_box_size[1]);
146
+ $text_pos_x_min = 0;
147
+ $text_pos_x_max = ($bg_width) - ($box_width);
148
+ $text_pos_x = mt_rand($text_pos_x_min, $text_pos_x_max);
149
+ $text_pos_y_min = $box_height;
150
+ $text_pos_y_max = ($bg_height) - ($box_height / 2);
151
+ if ($text_pos_y_min > $text_pos_y_max) {
152
+ $temp_text_pos_y = $text_pos_y_min;
153
+ $text_pos_y_min = $text_pos_y_max;
154
+ $text_pos_y_max = $temp_text_pos_y;
155
+ }
156
+ $text_pos_y = mt_rand($text_pos_y_min, $text_pos_y_max);
157
+
158
+ // Draw shadow
159
+ if( $captcha_config['shadow'] ){
160
+ $shadow_color = hex2rgb($captcha_config['shadow_color']);
161
+ $shadow_color = imagecolorallocate($captcha, $shadow_color['r'], $shadow_color['g'], $shadow_color['b']);
162
+ imagettftext($captcha, $font_size, $angle, $text_pos_x + $captcha_config['shadow_offset_x'], $text_pos_y + $captcha_config['shadow_offset_y'], $shadow_color, $font, $captcha_config['code']);
163
+ }
164
+
165
+ // Draw text
166
+ imagettftext($captcha, $font_size, $angle, $text_pos_x, $text_pos_y, $color, $font, $captcha_config['code']);
167
+
168
+ // Output image
169
+ header("Content-type: image/png");
170
+ imagepng($captcha);
171
+
172
+ }
vendor/autoload.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload.php @generated by Composer
4
+
5
+ require_once __DIR__ . '/composer' . '/autoload_real.php';
6
+
7
+ return ComposerAutoloaderInite4907141759ef47366043cd4c70e5735::getLoader();
vendor/composer/ClassLoader.php ADDED
@@ -0,0 +1,413 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of Composer.
5
+ *
6
+ * (c) Nils Adermann <naderman@naderman.de>
7
+ * Jordi Boggiano <j.boggiano@seld.be>
8
+ *
9
+ * For the full copyright and license information, please view the LICENSE
10
+ * file that was distributed with this source code.
11
+ */
12
+
13
+ namespace Composer\Autoload;
14
+
15
+ /**
16
+ * ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
17
+ *
18
+ * $loader = new \Composer\Autoload\ClassLoader();
19
+ *
20
+ * // register classes with namespaces
21
+ * $loader->add('Symfony\Component', __DIR__.'/component');
22
+ * $loader->add('Symfony', __DIR__.'/framework');
23
+ *
24
+ * // activate the autoloader
25
+ * $loader->register();
26
+ *
27
+ * // to enable searching the include path (eg. for PEAR packages)
28
+ * $loader->setUseIncludePath(true);
29
+ *
30
+ * In this example, if you try to use a class in the Symfony\Component
31
+ * namespace or one of its children (Symfony\Component\Console for instance),
32
+ * the autoloader will first look for the class under the component/
33
+ * directory, and it will then fallback to the framework/ directory if not
34
+ * found before giving up.
35
+ *
36
+ * This class is loosely based on the Symfony UniversalClassLoader.
37
+ *
38
+ * @author Fabien Potencier <fabien@symfony.com>
39
+ * @author Jordi Boggiano <j.boggiano@seld.be>
40
+ * @see http://www.php-fig.org/psr/psr-0/
41
+ * @see http://www.php-fig.org/psr/psr-4/
42
+ */
43
+ class ClassLoader
44
+ {
45
+ // PSR-4
46
+ private $prefixLengthsPsr4 = array();
47
+ private $prefixDirsPsr4 = array();
48
+ private $fallbackDirsPsr4 = array();
49
+
50
+ // PSR-0
51
+ private $prefixesPsr0 = array();
52
+ private $fallbackDirsPsr0 = array();
53
+
54
+ private $useIncludePath = false;
55
+ private $classMap = array();
56
+
57
+ private $classMapAuthoritative = false;
58
+
59
+ public function getPrefixes()
60
+ {
61
+ if (!empty($this->prefixesPsr0)) {
62
+ return call_user_func_array('array_merge', $this->prefixesPsr0);
63
+ }
64
+
65
+ return array();
66
+ }
67
+
68
+ public function getPrefixesPsr4()
69
+ {
70
+ return $this->prefixDirsPsr4;
71
+ }
72
+
73
+ public function getFallbackDirs()
74
+ {
75
+ return $this->fallbackDirsPsr0;
76
+ }
77
+
78
+ public function getFallbackDirsPsr4()
79
+ {
80
+ return $this->fallbackDirsPsr4;
81
+ }
82
+
83
+ public function getClassMap()
84
+ {
85
+ return $this->classMap;
86
+ }
87
+
88
+ /**
89
+ * @param array $classMap Class to filename map
90
+ */
91
+ public function addClassMap(array $classMap)
92
+ {
93
+ if ($this->classMap) {
94
+ $this->classMap = array_merge($this->classMap, $classMap);
95
+ } else {
96
+ $this->classMap = $classMap;
97
+ }
98
+ }
99
+
100
+ /**
101
+ * Registers a set of PSR-0 directories for a given prefix, either
102
+ * appending or prepending to the ones previously set for this prefix.
103
+ *
104
+ * @param string $prefix The prefix
105
+ * @param array|string $paths The PSR-0 root directories
106
+ * @param bool $prepend Whether to prepend the directories
107
+ */
108
+ public function add($prefix, $paths, $prepend = false)
109
+ {
110
+ if (!$prefix) {
111
+ if ($prepend) {
112
+ $this->fallbackDirsPsr0 = array_merge(
113
+ (array) $paths,
114
+ $this->fallbackDirsPsr0
115
+ );
116
+ } else {
117
+ $this->fallbackDirsPsr0 = array_merge(
118
+ $this->fallbackDirsPsr0,
119
+ (array) $paths
120
+ );
121
+ }
122
+
123
+ return;
124
+ }
125
+
126
+ $first = $prefix[0];
127
+ if (!isset($this->prefixesPsr0[$first][$prefix])) {
128
+ $this->prefixesPsr0[$first][$prefix] = (array) $paths;
129
+
130
+ return;
131
+ }
132
+ if ($prepend) {
133
+ $this->prefixesPsr0[$first][$prefix] = array_merge(
134
+ (array) $paths,
135
+ $this->prefixesPsr0[$first][$prefix]
136
+ );
137
+ } else {
138
+ $this->prefixesPsr0[$first][$prefix] = array_merge(
139
+ $this->prefixesPsr0[$first][$prefix],
140
+ (array) $paths
141
+ );
142
+ }
143
+ }
144
+
145
+ /**
146
+ * Registers a set of PSR-4 directories for a given namespace, either
147
+ * appending or prepending to the ones previously set for this namespace.
148
+ *
149
+ * @param string $prefix The prefix/namespace, with trailing '\\'
150
+ * @param array|string $paths The PSR-0 base directories
151
+ * @param bool $prepend Whether to prepend the directories
152
+ *
153
+ * @throws \InvalidArgumentException
154
+ */
155
+ public function addPsr4($prefix, $paths, $prepend = false)
156
+ {
157
+ if (!$prefix) {
158
+ // Register directories for the root namespace.
159
+ if ($prepend) {
160
+ $this->fallbackDirsPsr4 = array_merge(
161
+ (array) $paths,
162
+ $this->fallbackDirsPsr4
163
+ );
164
+ } else {
165
+ $this->fallbackDirsPsr4 = array_merge(
166
+ $this->fallbackDirsPsr4,
167
+ (array) $paths
168
+ );
169
+ }
170
+ } elseif (!isset($this->prefixDirsPsr4[$prefix])) {
171
+ // Register directories for a new namespace.
172
+ $length = strlen($prefix);
173
+ if ('\\' !== $prefix[$length - 1]) {
174
+ throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
175
+ }
176
+ $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
177
+ $this->prefixDirsPsr4[$prefix] = (array) $paths;
178
+ } elseif ($prepend) {
179
+ // Prepend directories for an already registered namespace.
180
+ $this->prefixDirsPsr4[$prefix] = array_merge(
181
+ (array) $paths,
182
+ $this->prefixDirsPsr4[$prefix]
183
+ );
184
+ } else {
185
+ // Append directories for an already registered namespace.
186
+ $this->prefixDirsPsr4[$prefix] = array_merge(
187
+ $this->prefixDirsPsr4[$prefix],
188
+ (array) $paths
189
+ );
190
+ }
191
+ }
192
+
193
+ /**
194
+ * Registers a set of PSR-0 directories for a given prefix,
195
+ * replacing any others previously set for this prefix.
196
+ *
197
+ * @param string $prefix The prefix
198
+ * @param array|string $paths The PSR-0 base directories
199
+ */
200
+ public function set($prefix, $paths)
201
+ {
202
+ if (!$prefix) {
203
+ $this->fallbackDirsPsr0 = (array) $paths;
204
+ } else {
205
+ $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
206
+ }
207
+ }
208
+
209
+ /**
210
+ * Registers a set of PSR-4 directories for a given namespace,
211
+ * replacing any others previously set for this namespace.
212
+ *
213
+ * @param string $prefix The prefix/namespace, with trailing '\\'
214
+ * @param array|string $paths The PSR-4 base directories
215
+ *
216
+ * @throws \InvalidArgumentException
217
+ */
218
+ public function setPsr4($prefix, $paths)
219
+ {
220
+ if (!$prefix) {
221
+ $this->fallbackDirsPsr4 = (array) $paths;
222
+ } else {
223
+ $length = strlen($prefix);
224
+ if ('\\' !== $prefix[$length - 1]) {
225
+ throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
226
+ }
227
+ $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
228
+ $this->prefixDirsPsr4[$prefix] = (array) $paths;
229
+ }
230
+ }
231
+
232
+ /**
233
+ * Turns on searching the include path for class files.
234
+ *
235
+ * @param bool $useIncludePath
236
+ */
237
+ public function setUseIncludePath($useIncludePath)
238
+ {
239
+ $this->useIncludePath = $useIncludePath;
240
+ }
241
+
242
+ /**
243
+ * Can be used to check if the autoloader uses the include path to check
244
+ * for classes.
245
+ *
246
+ * @return bool
247
+ */
248
+ public function getUseIncludePath()
249
+ {
250
+ return $this->useIncludePath;
251
+ }
252
+
253
+ /**
254
+ * Turns off searching the prefix and fallback directories for classes
255
+ * that have not been registered with the class map.
256
+ *
257
+ * @param bool $classMapAuthoritative
258
+ */
259
+ public function setClassMapAuthoritative($classMapAuthoritative)
260
+ {
261
+ $this->classMapAuthoritative = $classMapAuthoritative;
262
+ }
263
+
264
+ /**
265
+ * Should class lookup fail if not found in the current class map?
266
+ *
267
+ * @return bool
268
+ */
269
+ public function isClassMapAuthoritative()
270
+ {
271
+ return $this->classMapAuthoritative;
272
+ }
273
+
274
+ /**
275
+ * Registers this instance as an autoloader.
276
+ *
277
+ * @param bool $prepend Whether to prepend the autoloader or not
278
+ */
279
+ public function register($prepend = false)
280
+ {
281
+ spl_autoload_register(array($this, 'loadClass'), true, $prepend);
282
+ }
283
+
284
+ /**
285
+ * Unregisters this instance as an autoloader.
286
+ */
287
+ public function unregister()
288
+ {
289
+ spl_autoload_unregister(array($this, 'loadClass'));
290
+ }
291
+
292
+ /**
293
+ * Loads the given class or interface.
294
+ *
295
+ * @param string $class The name of the class
296
+ * @return bool|null True if loaded, null otherwise
297
+ */
298
+ public function loadClass($class)
299
+ {
300
+ if ($file = $this->findFile($class)) {
301
+ includeFile($file);
302
+
303
+ return true;
304
+ }
305
+ }
306
+
307
+ /**
308
+ * Finds the path to the file where the class is defined.
309
+ *
310
+ * @param string $class The name of the class
311
+ *
312
+ * @return string|false The path if found, false otherwise
313
+ */
314
+ public function findFile($class)
315
+ {
316
+ // work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731
317
+ if ('\\' == $class[0]) {
318
+ $class = substr($class, 1);
319
+ }
320
+
321
+ // class map lookup
322
+ if (isset($this->classMap[$class])) {
323
+ return $this->classMap[$class];
324
+ }
325
+ if ($this->classMapAuthoritative) {
326
+ return false;
327
+ }
328
+
329
+ $file = $this->findFileWithExtension($class, '.php');
330
+
331
+ // Search for Hack files if we are running on HHVM
332
+ if ($file === null && defined('HHVM_VERSION')) {
333
+ $file = $this->findFileWithExtension($class, '.hh');
334
+ }
335
+
336
+ if ($file === null) {
337
+ // Remember that this class does not exist.
338
+ return $this->classMap[$class] = false;
339
+ }
340
+
341
+ return $file;
342
+ }
343
+
344
+ private function findFileWithExtension($class, $ext)
345
+ {
346
+ // PSR-4 lookup
347
+ $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
348
+
349
+ $first = $class[0];
350
+ if (isset($this->prefixLengthsPsr4[$first])) {
351
+ foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) {
352
+ if (0 === strpos($class, $prefix)) {
353
+ foreach ($this->prefixDirsPsr4[$prefix] as $dir) {
354
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
355
+ return $file;
356
+ }
357
+ }
358
+ }
359
+ }
360
+ }
361
+
362
+ // PSR-4 fallback dirs
363
+ foreach ($this->fallbackDirsPsr4 as $dir) {
364
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
365
+ return $file;
366
+ }
367
+ }
368
+
369
+ // PSR-0 lookup
370
+ if (false !== $pos = strrpos($class, '\\')) {
371
+ // namespaced class name
372
+ $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
373
+ . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
374
+ } else {
375
+ // PEAR-like class name
376
+ $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
377
+ }
378
+
379
+ if (isset($this->prefixesPsr0[$first])) {
380
+ foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
381
+ if (0 === strpos($class, $prefix)) {
382
+ foreach ($dirs as $dir) {
383
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
384
+ return $file;
385
+ }
386
+ }
387
+ }
388
+ }
389
+ }
390
+
391
+ // PSR-0 fallback dirs
392
+ foreach ($this->fallbackDirsPsr0 as $dir) {
393
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
394
+ return $file;
395
+ }
396
+ }
397
+
398
+ // PSR-0 include paths.
399
+ if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
400
+ return $file;
401
+ }
402
+ }
403
+ }
404
+
405
+ /**
406
+ * Scope isolated include.
407
+ *
408
+ * Prevents access to $this/self from included files.
409
+ */
410
+ function includeFile($file)
411
+ {
412
+ include $file;
413
+ }
vendor/composer/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Copyright (c) 2015 Nils Adermann, Jordi Boggiano
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is furnished
9
+ to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ THE SOFTWARE.
21
+
vendor/composer/autoload_classmap.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload_classmap.php @generated by Composer
4
+
5
+ $vendorDir = dirname(dirname(__FILE__));
6
+ $baseDir = dirname($vendorDir);
7
+
8
+ return array(
9
+ );
vendor/composer/autoload_namespaces.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload_namespaces.php @generated by Composer
4
+
5
+ $vendorDir = dirname(dirname(__FILE__));
6
+ $baseDir = dirname($vendorDir);
7
+
8
+ return array(
9
+ );
vendor/composer/autoload_psr4.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload_psr4.php @generated by Composer
4
+
5
+ $vendorDir = dirname(dirname(__FILE__));
6
+ $baseDir = dirname($vendorDir);
7
+
8
+ return array(
9
+ );
vendor/composer/autoload_real.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // autoload_real.php @generated by Composer
4
+
5
+ class ComposerAutoloaderInite4907141759ef47366043cd4c70e5735
6
+ {
7
+ private static $loader;
8
+
9
+ public static function loadClassLoader($class)
10
+ {
11
+ if ('Composer\Autoload\ClassLoader' === $class) {
12
+ require __DIR__ . '/ClassLoader.php';
13
+ }
14
+ }
15
+
16
+ public static function getLoader()
17
+ {
18
+ if (null !== self::$loader) {
19
+ return self::$loader;
20
+ }
21
+
22
+ spl_autoload_register(array('ComposerAutoloaderInite4907141759ef47366043cd4c70e5735', 'loadClassLoader'), true, true);
23
+ self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInite4907141759ef47366043cd4c70e5735', 'loadClassLoader'));
25
+
26
+ $map = require __DIR__ . '/autoload_namespaces.php';
27
+ foreach ($map as $namespace => $path) {
28
+ $loader->set($namespace, $path);
29
+ }
30
+
31
+ $map = require __DIR__ . '/autoload_psr4.php';
32
+ foreach ($map as $namespace => $path) {
33
+ $loader->setPsr4($namespace, $path);
34
+ }
35
+
36
+ $classMap = require __DIR__ . '/autoload_classmap.php';
37
+ if ($classMap) {
38
+ $loader->addClassMap($classMap);
39
+ }
40
+
41
+ $loader->register(true);
42
+
43
+ return $loader;
44
+ }
45
+ }
vendor/composer/installed.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "name": "abeautifulsite/simple-php-captcha",
4
+ "version": "1.0.0",
5
+ "version_normalized": "1.0.0.0",
6
+ "source": {
7
+ "type": "git",
8
+ "url": "https://github.com/claviska/simple-php-captcha.git",
9
+ "reference": "f4f6db43cced1db6a82c8a5ff1a4bef48937b39b"
10
+ },
11
+ "dist": {
12
+ "type": "zip",
13
+ "url": "https://api.github.com/repos/claviska/simple-php-captcha/zipball/f4f6db43cced1db6a82c8a5ff1a4bef48937b39b",
14
+ "reference": "f4f6db43cced1db6a82c8a5ff1a4bef48937b39b",
15
+ "shasum": ""
16
+ },
17
+ "time": "2016-02-25 17:04:47",
18
+ "type": "library",
19
+ "installation-source": "dist",
20
+ "notification-url": "https://packagist.org/downloads/",
21
+ "license": [
22
+ "MIT"
23
+ ],
24
+ "description": "A simple PHP CAPTCHA script",
25
+ "homepage": "http://www.abeautifulsite.net/"
26
+ }
27
+ ]