├── bower_components ├── jquery │ ├── src │ │ ├── outro.js │ │ ├── selector.js │ │ ├── var │ │ │ ├── arr.js │ │ │ ├── rnotwhite.js │ │ │ ├── strundefined.js │ │ │ ├── push.js │ │ │ ├── slice.js │ │ │ ├── class2type.js │ │ │ ├── concat.js │ │ │ ├── indexOf.js │ │ │ ├── pnum.js │ │ │ ├── hasOwn.js │ │ │ ├── toString.js │ │ │ └── support.js │ │ ├── ajax │ │ │ ├── var │ │ │ │ ├── rquery.js │ │ │ │ └── nonce.js │ │ │ ├── parseJSON.js │ │ │ ├── parseXML.js │ │ │ ├── script.js │ │ │ └── load.js │ │ ├── css │ │ │ ├── var │ │ │ │ ├── rmargin.js │ │ │ │ ├── cssExpand.js │ │ │ │ ├── rnumnonpx.js │ │ │ │ ├── isHidden.js │ │ │ │ └── getStyles.js │ │ │ ├── hiddenVisibleSelectors.js │ │ │ ├── addGetHookIf.js │ │ │ ├── swap.js │ │ │ ├── curCSS.js │ │ │ └── defaultDisplay.js │ │ ├── manipulation │ │ │ ├── var │ │ │ │ └── rcheckableType.js │ │ │ ├── _evalUrl.js │ │ │ └── support.js │ │ ├── data │ │ │ ├── var │ │ │ │ ├── data_priv.js │ │ │ │ └── data_user.js │ │ │ └── accepts.js │ │ ├── core │ │ │ ├── var │ │ │ │ └── rsingleTag.js │ │ │ ├── parseHTML.js │ │ │ └── access.js │ │ ├── traversing │ │ │ └── var │ │ │ │ └── rneedsContext.js │ │ ├── event │ │ │ ├── support.js │ │ │ ├── ajax.js │ │ │ └── alias.js │ │ ├── attributes.js │ │ ├── deprecated.js │ │ ├── effects │ │ │ └── animatedSelector.js │ │ ├── selector-sizzle.js │ │ ├── queue │ │ │ └── delay.js │ │ ├── jquery.js │ │ ├── exports │ │ │ ├── global.js │ │ │ └── amd.js │ │ ├── attributes │ │ │ ├── support.js │ │ │ └── prop.js │ │ ├── intro.js │ │ ├── wrap.js │ │ └── dimensions.js │ ├── bower.json │ ├── .bower.json │ └── MIT-LICENSE.txt ├── underscore │ ├── .gitignore │ ├── bower.json │ ├── .editorconfig │ ├── component.json │ ├── .bower.json │ ├── package.json │ ├── LICENSE │ └── README.md ├── jquery-migrate │ ├── component.json │ ├── README.md │ └── .bower.json ├── qunit │ ├── src │ │ ├── outro.js │ │ ├── intro.js │ │ └── export.js │ ├── bower.json │ ├── browserstack.json │ ├── .bower.json │ ├── build │ │ └── release.js │ ├── CONTRIBUTING.md │ └── LICENSE.txt └── moment │ ├── meteor │ ├── test.js │ ├── export.js │ └── README.md │ ├── benchmarks │ └── clone.js │ ├── bower.json │ ├── .bower.json │ ├── scripts │ └── npm_prepublish.sh │ ├── LICENSE │ ├── Moment.js.nuspec │ ├── README.md │ └── locale │ ├── ar-tn.js │ ├── ja.js │ ├── fr-ca.js │ ├── km.js │ ├── ko.js │ ├── uz.js │ ├── tzm.js │ ├── da.js │ ├── ar-ma.js │ ├── nn.js │ ├── tzm-latn.js │ ├── fo.js │ ├── tl-ph.js │ ├── nb.js │ ├── fr.js │ ├── pt-br.js │ ├── en-ca.js │ ├── pt.js │ ├── th.js │ ├── vi.js │ ├── eu.js │ ├── sv.js │ ├── cv.js │ └── en-au.js ├── .gitignore ├── assets ├── build │ ├── css │ │ ├── form-table.min.css │ │ ├── form-table.css │ │ ├── form-table.css.map │ │ ├── settings.min.css │ │ ├── settings.css.map │ │ ├── settings.css │ │ ├── admin.css.map │ │ ├── admin.min.css │ │ ├── admin.css │ │ ├── form-cpt.css.map │ │ └── form-mce.css.map │ └── js │ │ ├── settings.min.js │ │ ├── form-cpt-preview.min.js │ │ └── form-mce.min.js ├── fonts │ ├── menu.eot │ ├── menu.ttf │ ├── menu.woff │ ├── form-manager.eot │ ├── form-manager.ttf │ ├── form-manager.woff │ └── menu.svg ├── img │ ├── recaptcha.png │ └── simple-captcha.png ├── scss │ ├── form-table.scss │ ├── settings.scss │ └── admin.scss └── js │ ├── manager │ ├── router.js │ └── mixins.js │ ├── settings.js │ └── form-cpt-preview.js ├── wp-api ├── tests │ ├── data │ │ └── canola.jpg │ ├── class-wp-test-spy-rest-server.php │ ├── class-wp-test-rest-testcase.php │ ├── class-wp-test-rest-controller-testcase.php │ ├── bootstrap.php │ └── class-wp-rest-test-controller.php ├── assets │ ├── banner-1544x500.jpg │ └── banner-772x250.jpg ├── core │ ├── phpunit │ │ ├── data │ │ │ └── canola.jpg │ │ ├── includes │ │ │ ├── spy-rest-server.php │ │ │ └── testcase-rest-api.php │ │ └── bootstrap.php │ ├── wp-includes │ │ ├── http.php │ │ ├── rest-api.php │ │ ├── functions.php │ │ └── filters.php │ ├── package.json │ ├── README.md │ ├── composer.json │ ├── phpcs.ruleset.xml │ ├── phpunit.xml.dist │ ├── multisite.xml │ ├── codecoverage.xml │ └── Gruntfile.js ├── package.json ├── phpunit.xml.dist ├── phpcs.ruleset.xml ├── multisite.xml ├── codecoverage.xml ├── composer.json ├── CONTRIBUTING.md ├── bin │ └── release.sh └── Gruntfile.js ├── languages ├── custom-contact-forms.mo ├── custom-contact-forms-da_DK.mo ├── custom-contact-forms-de_DE.mo ├── custom-contact-forms-fr_FR.mo └── custom-contact-forms-zh_CN.mo ├── vendor ├── abeautifulsite │ └── simple-php-captcha │ │ ├── .gitignore │ │ ├── backgrounds │ │ ├── cloth-alike.png │ │ ├── grey-sandbag.png │ │ ├── kinda-jean.png │ │ ├── white-carbon.png │ │ ├── white-wave.png │ │ ├── polyester-lite.png │ │ ├── stitched-wool.png │ │ └── 45-degree-fabric.png │ │ ├── fonts │ │ └── times_new_yorker.ttf │ │ ├── composer.json │ │ └── readme.md ├── composer │ ├── autoload_psr4.php │ ├── autoload_classmap.php │ ├── autoload_namespaces.php │ ├── installed.json │ ├── LICENSE │ └── autoload_real.php └── autoload.php ├── composer.json ├── .jshintrc ├── classes ├── class-ccf-form-mail.php ├── class-ccf-field-cpt.php └── class-ccf-choice-cpt.php ├── bower.json ├── package.json ├── phpunit.xml ├── .travis.yml ├── Dockunit.json ├── tests ├── php │ └── bootstrap.php └── js │ ├── forms │ ├── simple-phone-1.html │ ├── simple-website-1.html │ ├── simple-email-1.html │ ├── simple-name-1.html │ ├── simple-checkboxes-1.html │ └── simple-form-1.html │ └── tests.html ├── bin └── production-ready.sh ├── composer.lock └── Gruntfile.js /bower_components/jquery/src/outro.js: -------------------------------------------------------------------------------- 1 | })); 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .sass-cache 3 | .DS_Store -------------------------------------------------------------------------------- /bower_components/underscore/.gitignore: -------------------------------------------------------------------------------- 1 | raw 2 | node_modules 3 | -------------------------------------------------------------------------------- /bower_components/jquery/src/selector.js: -------------------------------------------------------------------------------- 1 | define([ "./selector-sizzle" ]); 2 | -------------------------------------------------------------------------------- /bower_components/jquery/src/var/arr.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | return []; 3 | }); 4 | -------------------------------------------------------------------------------- /assets/build/css/form-table.min.css: -------------------------------------------------------------------------------- 1 | .view-switch{display:none}.column-ccf_form_id{width:7em} -------------------------------------------------------------------------------- /bower_components/jquery/src/ajax/var/rquery.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | return (/\?/); 3 | }); 4 | -------------------------------------------------------------------------------- /bower_components/jquery/src/var/rnotwhite.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | return (/\S+/g); 3 | }); 4 | -------------------------------------------------------------------------------- /bower_components/jquery/src/css/var/rmargin.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | return (/^margin/); 3 | }); 4 | -------------------------------------------------------------------------------- /assets/fonts/menu.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/assets/fonts/menu.eot -------------------------------------------------------------------------------- /assets/fonts/menu.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/assets/fonts/menu.ttf -------------------------------------------------------------------------------- /assets/fonts/menu.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/assets/fonts/menu.woff -------------------------------------------------------------------------------- /assets/img/recaptcha.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/assets/img/recaptcha.png -------------------------------------------------------------------------------- /bower_components/jquery/src/var/strundefined.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | return typeof undefined; 3 | }); 4 | -------------------------------------------------------------------------------- /assets/fonts/form-manager.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/assets/fonts/form-manager.eot -------------------------------------------------------------------------------- /assets/fonts/form-manager.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/assets/fonts/form-manager.ttf -------------------------------------------------------------------------------- /assets/img/simple-captcha.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/assets/img/simple-captcha.png -------------------------------------------------------------------------------- /assets/scss/form-table.scss: -------------------------------------------------------------------------------- 1 | .view-switch { 2 | display: none; 3 | } 4 | 5 | .column-ccf_form_id { 6 | width: 7em; 7 | } -------------------------------------------------------------------------------- /bower_components/jquery-migrate/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "jquery-migrate", 3 | "version" : "1.2.1" 4 | } 5 | -------------------------------------------------------------------------------- /bower_components/jquery/src/var/push.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "./arr" 3 | ], function( arr ) { 4 | return arr.push; 5 | }); 6 | -------------------------------------------------------------------------------- /bower_components/jquery/src/var/slice.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "./arr" 3 | ], function( arr ) { 4 | return arr.slice; 5 | }); 6 | -------------------------------------------------------------------------------- /wp-api/tests/data/canola.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/wp-api/tests/data/canola.jpg -------------------------------------------------------------------------------- /assets/fonts/form-manager.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/assets/fonts/form-manager.woff -------------------------------------------------------------------------------- /bower_components/jquery/src/var/class2type.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | // [[Class]] -> type pairs 3 | return {}; 4 | }); 5 | -------------------------------------------------------------------------------- /bower_components/jquery/src/var/concat.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "./arr" 3 | ], function( arr ) { 4 | return arr.concat; 5 | }); 6 | -------------------------------------------------------------------------------- /bower_components/jquery/src/var/indexOf.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "./arr" 3 | ], function( arr ) { 4 | return arr.indexOf; 5 | }); 6 | -------------------------------------------------------------------------------- /bower_components/jquery/src/css/var/cssExpand.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | return [ "Top", "Right", "Bottom", "Left" ]; 3 | }); 4 | -------------------------------------------------------------------------------- /bower_components/jquery/src/manipulation/var/rcheckableType.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | return (/^(?:checkbox|radio)$/i); 3 | }); 4 | -------------------------------------------------------------------------------- /bower_components/jquery/src/var/pnum.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | return (/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source; 3 | }); 4 | -------------------------------------------------------------------------------- /languages/custom-contact-forms.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/languages/custom-contact-forms.mo -------------------------------------------------------------------------------- /wp-api/assets/banner-1544x500.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/wp-api/assets/banner-1544x500.jpg -------------------------------------------------------------------------------- /wp-api/assets/banner-772x250.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/wp-api/assets/banner-772x250.jpg -------------------------------------------------------------------------------- /bower_components/jquery/src/ajax/var/nonce.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../../core" 3 | ], function( jQuery ) { 4 | return jQuery.now(); 5 | }); 6 | -------------------------------------------------------------------------------- /bower_components/jquery/src/data/var/data_priv.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../Data" 3 | ], function( Data ) { 4 | return new Data(); 5 | }); 6 | -------------------------------------------------------------------------------- /bower_components/jquery/src/data/var/data_user.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../Data" 3 | ], function( Data ) { 4 | return new Data(); 5 | }); 6 | -------------------------------------------------------------------------------- /wp-api/core/phpunit/data/canola.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/wp-api/core/phpunit/data/canola.jpg -------------------------------------------------------------------------------- /languages/custom-contact-forms-da_DK.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/languages/custom-contact-forms-da_DK.mo -------------------------------------------------------------------------------- /languages/custom-contact-forms-de_DE.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/languages/custom-contact-forms-de_DE.mo -------------------------------------------------------------------------------- /languages/custom-contact-forms-fr_FR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/languages/custom-contact-forms-fr_FR.mo -------------------------------------------------------------------------------- /languages/custom-contact-forms-zh_CN.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/languages/custom-contact-forms-zh_CN.mo -------------------------------------------------------------------------------- /vendor/abeautifulsite/simple-php-captcha/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | simple-php-captcha.sublime-project 3 | simple-php-captcha.sublime-workspace -------------------------------------------------------------------------------- /bower_components/jquery/src/var/hasOwn.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "./class2type" 3 | ], function( class2type ) { 4 | return class2type.hasOwnProperty; 5 | }); 6 | -------------------------------------------------------------------------------- /bower_components/jquery/src/var/toString.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "./class2type" 3 | ], function( class2type ) { 4 | return class2type.toString; 5 | }); 6 | -------------------------------------------------------------------------------- /bower_components/jquery/src/core/var/rsingleTag.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | // Match a standalone tag 3 | return (/^<(\w+)\s*\/?>(?:<\/\1>|)$/); 4 | }); 5 | -------------------------------------------------------------------------------- /bower_components/jquery/src/var/support.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | // All support tests are defined in their respective modules. 3 | return {}; 4 | }); 5 | -------------------------------------------------------------------------------- /bower_components/qunit/src/outro.js: -------------------------------------------------------------------------------- 1 | // Get a reference to the global object, like window in browsers 2 | }( (function() { 3 | return this; 4 | })() )); 5 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tlovett1/custom-contact-forms", 3 | "require": { 4 | "abeautifulsite/simple-php-captcha": "^1.0.0" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /assets/build/css/form-table.css: -------------------------------------------------------------------------------- 1 | .view-switch { 2 | display: none; } 3 | 4 | .column-ccf_form_id { 5 | width: 7em; } 6 | 7 | /*# sourceMappingURL=form-table.css.map */ 8 | -------------------------------------------------------------------------------- /bower_components/jquery/src/css/var/rnumnonpx.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../../var/pnum" 3 | ], function( pnum ) { 4 | return new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); 5 | }); 6 | -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "smarttabs": true, 3 | "globals": { 4 | "_": false, 5 | "Backbone": false, 6 | "jQuery": false, 7 | "wp": false, 8 | "ccfSettings": false 9 | } 10 | } -------------------------------------------------------------------------------- /bower_components/jquery/src/traversing/var/rneedsContext.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../../core", 3 | "../../selector" 4 | ], function( jQuery ) { 5 | return jQuery.expr.match.needsContext; 6 | }); 7 | -------------------------------------------------------------------------------- /bower_components/moment/meteor/test.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | Tinytest.add('Moment.is', function (test) { 4 | test.ok(moment.isMoment(moment()), {message: 'simple moment object'}); 5 | }); 6 | -------------------------------------------------------------------------------- /vendor/abeautifulsite/simple-php-captcha/backgrounds/cloth-alike.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/vendor/abeautifulsite/simple-php-captcha/backgrounds/cloth-alike.png -------------------------------------------------------------------------------- /vendor/abeautifulsite/simple-php-captcha/backgrounds/grey-sandbag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/vendor/abeautifulsite/simple-php-captcha/backgrounds/grey-sandbag.png -------------------------------------------------------------------------------- /vendor/abeautifulsite/simple-php-captcha/backgrounds/kinda-jean.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/vendor/abeautifulsite/simple-php-captcha/backgrounds/kinda-jean.png -------------------------------------------------------------------------------- /vendor/abeautifulsite/simple-php-captcha/backgrounds/white-carbon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/vendor/abeautifulsite/simple-php-captcha/backgrounds/white-carbon.png -------------------------------------------------------------------------------- /vendor/abeautifulsite/simple-php-captcha/backgrounds/white-wave.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/vendor/abeautifulsite/simple-php-captcha/backgrounds/white-wave.png -------------------------------------------------------------------------------- /vendor/abeautifulsite/simple-php-captcha/fonts/times_new_yorker.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/vendor/abeautifulsite/simple-php-captcha/fonts/times_new_yorker.ttf -------------------------------------------------------------------------------- /vendor/abeautifulsite/simple-php-captcha/backgrounds/polyester-lite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/vendor/abeautifulsite/simple-php-captcha/backgrounds/polyester-lite.png -------------------------------------------------------------------------------- /vendor/abeautifulsite/simple-php-captcha/backgrounds/stitched-wool.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/vendor/abeautifulsite/simple-php-captcha/backgrounds/stitched-wool.png -------------------------------------------------------------------------------- /bower_components/jquery/src/event/support.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../var/support" 3 | ], function( support ) { 4 | 5 | support.focusinBubbles = "onfocusin" in window; 6 | 7 | return support; 8 | 9 | }); 10 | -------------------------------------------------------------------------------- /vendor/abeautifulsite/simple-php-captcha/backgrounds/45-degree-fabric.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tlovett1/custom-contact-forms/HEAD/vendor/abeautifulsite/simple-php-captcha/backgrounds/45-degree-fabric.png -------------------------------------------------------------------------------- /bower_components/moment/meteor/export.js: -------------------------------------------------------------------------------- 1 | // moment.js makes `moment` global on the window (or global) object, while Meteor expects a file-scoped global variable 2 | moment = this.moment; 3 | delete this.moment; 4 | -------------------------------------------------------------------------------- /vendor/composer/autoload_psr4.php: -------------------------------------------------------------------------------- 1 | data = $data; 9 | } 10 | 11 | public function send() { 12 | 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /assets/build/css/settings.min.css: -------------------------------------------------------------------------------- 1 | .ccf-asset-restrictions .add,.ccf-asset-restrictions .delete{font-weight:700;cursor:pointer;vertical-align:middle;font-size:200%}.ccf-asset-restrictions input,.ccf-asset-restrictions select{margin-right:1em}.ccf-hide-field{display:none} -------------------------------------------------------------------------------- /vendor/abeautifulsite/simple-php-captcha/composer.json: -------------------------------------------------------------------------------- 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 | } -------------------------------------------------------------------------------- /bower_components/jquery/src/attributes.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "./core", 3 | "./attributes/attr", 4 | "./attributes/prop", 5 | "./attributes/classes", 6 | "./attributes/val" 7 | ], function( jQuery ) { 8 | 9 | // Return jQuery for attributes-only inclusion 10 | return jQuery; 11 | }); 12 | -------------------------------------------------------------------------------- /bower_components/qunit/src/intro.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * QUnit @VERSION 3 | * http://qunitjs.com/ 4 | * 5 | * Copyright jQuery Foundation and other contributors 6 | * Released under the MIT license 7 | * http://jquery.org/license 8 | * 9 | * Date: @DATE 10 | */ 11 | 12 | (function( window ) { 13 | -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "custom-contact-forms", 3 | "dependencies": { 4 | "moment": "~2.9.0" 5 | }, 6 | "devDependencies": { 7 | "jquery": "~2.1.1", 8 | "underscore": "~1.6.0", 9 | "jquery-migrate": "~1.2.1", 10 | "qunit": "~1.17.1", 11 | "moment": "~2.9.0" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /bower_components/jquery-migrate/README.md: -------------------------------------------------------------------------------- 1 | jquery-migrate 2 | =============== 3 | 4 | shim repo for jQuery Migrate package 5 | 6 | Install via [bower](http://twitter.github.com/bower/): 7 | 8 | $ bower install jquery-migrate 9 | 10 | bower package info: 11 | 12 | $ bower info jquery-migrate 13 | -------------------------------------------------------------------------------- /assets/build/css/settings.css.map: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "mappings": "AAAA;+BAEA;EACC,WAAW,EAAE,IAAI;EACjB,MAAM,EAAE,OAAO;EACf,cAAc,EAAE,MAAM;EACtB,SAAS,EAAE,IAAI;;AAGhB;8BAC+B;EAC9B,YAAY,EAAE,GAAG;;AAGlB,eAAgB;EACf,OAAO,EAAE,IAAI", 4 | "sources": ["../../scss/settings.scss"], 5 | "names": [], 6 | "file": "settings.css" 7 | } 8 | -------------------------------------------------------------------------------- /bower_components/jquery/src/ajax/parseJSON.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | // Support: Android 2.3 6 | // Workaround failure to string-cast null input 7 | jQuery.parseJSON = function( data ) { 8 | return JSON.parse( data + "" ); 9 | }; 10 | 11 | return jQuery.parseJSON; 12 | 13 | }); 14 | -------------------------------------------------------------------------------- /bower_components/jquery/src/deprecated.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "./core", 3 | "./traversing" 4 | ], function( jQuery ) { 5 | 6 | // The number of elements contained in the matched element set 7 | jQuery.fn.size = function() { 8 | return this.length; 9 | }; 10 | 11 | jQuery.fn.andSelf = jQuery.fn.addBack; 12 | 13 | }); 14 | -------------------------------------------------------------------------------- /bower_components/moment/benchmarks/clone.js: -------------------------------------------------------------------------------- 1 | var Benchmark = require('benchmark'), 2 | moment = require("./../moment.js"), 3 | base = moment('2013-05-25'); 4 | 5 | module.exports = { 6 | name: 'clone', 7 | onComplete: function(){console.log('done');}, 8 | fn: function(){base.clone();}, 9 | async: true 10 | }; 11 | -------------------------------------------------------------------------------- /bower_components/jquery/src/effects/animatedSelector.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "../selector", 4 | "../effects" 5 | ], function( jQuery ) { 6 | 7 | jQuery.expr.filters.animated = function( elem ) { 8 | return jQuery.grep(jQuery.timers, function( fn ) { 9 | return elem === fn.elem; 10 | }).length; 11 | }; 12 | 13 | }); 14 | -------------------------------------------------------------------------------- /bower_components/underscore/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "underscore", 3 | "version": "1.6.0", 4 | "main": "underscore.js", 5 | "keywords": ["util", "functional", "server", "client", "browser"], 6 | "ignore" : ["underscore-min.js", "docs", "test", "*.yml", "*.map", 7 | "CNAME", "index.html", "favicon.ico", "CONTRIBUTING.md"] 8 | } 9 | -------------------------------------------------------------------------------- /wp-api/core/wp-includes/http.php: -------------------------------------------------------------------------------- 1 | ", 10 | "devDependencies": { 11 | "grunt": "^0.4.5", 12 | "grunt-phpcs": "^0.4.0", 13 | "phplint": "^1.2.0" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /bower_components/qunit/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "qunit", 3 | "main": [ 4 | "qunit/qunit.js", 5 | "qunit/qunit.css" 6 | ], 7 | "license": "https://github.com/jquery/qunit/blob/master/LICENSE.txt", 8 | "ignore": [ 9 | "**/.*", 10 | "!LICENSE.txt", 11 | "package.json", 12 | "Gruntfile.js", 13 | "node_modules", 14 | "test" 15 | ], 16 | "version": "1.17.1" 17 | } 18 | -------------------------------------------------------------------------------- /assets/build/css/settings.css: -------------------------------------------------------------------------------- 1 | .ccf-asset-restrictions .add, 2 | .ccf-asset-restrictions .delete { 3 | font-weight: bold; 4 | cursor: pointer; 5 | vertical-align: middle; 6 | font-size: 200%; } 7 | 8 | .ccf-asset-restrictions input, 9 | .ccf-asset-restrictions select { 10 | margin-right: 1em; } 11 | 12 | .ccf-hide-field { 13 | display: none; } 14 | 15 | /*# sourceMappingURL=settings.css.map */ 16 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "custom-contact-forms", 3 | "devDependencies": { 4 | "grunt": "~0.4.2", 5 | "grunt-contrib-concat": "^0.5.0", 6 | "grunt-contrib-cssmin": "~0.7.0", 7 | "grunt-contrib-sass": "~0.6.0", 8 | "grunt-contrib-uglify": "0.2.0", 9 | "grunt-contrib-watch": "0.5.3", 10 | "grunt-contrib-qunit": "~0.4.0", 11 | "grunt-contrib-jshint": "^1.1.0" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /bower_components/jquery/src/event/ajax.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "../event" 4 | ], function( jQuery ) { 5 | 6 | // Attach a bunch of functions for handling common AJAX events 7 | jQuery.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ) { 8 | jQuery.fn[ type ] = function( fn ) { 9 | return this.on( type, fn ); 10 | }; 11 | }); 12 | 13 | }); 14 | -------------------------------------------------------------------------------- /wp-api/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "wp-api", 3 | "version": "2.0.0", 4 | "license" : "GPL-2.0+", 5 | "repository": { 6 | "type": "git", 7 | "url": "https://github.com/WP-API/WP-API.git" 8 | }, 9 | "main": "Gruntfile.js", 10 | "author": "WP-API Team ", 11 | "devDependencies": { 12 | "grunt": "^0.4.5", 13 | "grunt-phpcs": "^0.4.0", 14 | "phplint": "^1.6.1" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /bower_components/moment/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "moment", 3 | "version": "2.9.0", 4 | "main": "moment.js", 5 | "ignore": [ 6 | "**/.*", 7 | "node_modules", 8 | "bower_components", 9 | "test", 10 | "tests", 11 | "tasks", 12 | "component.json", 13 | "composer.json", 14 | "CONTRIBUTING.md", 15 | "ender.js", 16 | "Gruntfile.js", 17 | "package.js", 18 | "package.json" 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /bower_components/underscore/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "underscore", 3 | "description" : "JavaScript's functional programming helper library.", 4 | "keywords" : ["util", "functional", "server", "client", "browser"], 5 | "repo" : "jashkenas/underscore", 6 | "main" : "underscore.js", 7 | "scripts" : ["underscore.js"], 8 | "version" : "1.6.0", 9 | "license" : "MIT" 10 | } 11 | -------------------------------------------------------------------------------- /bower_components/jquery/src/css/var/isHidden.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../../core", 3 | "../../selector" 4 | // css is assumed 5 | ], function( jQuery ) { 6 | 7 | return function( elem, el ) { 8 | // isHidden might be called from jQuery#filter function; 9 | // in that case, element will be second argument 10 | elem = el || elem; 11 | return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem ); 12 | }; 13 | }); 14 | -------------------------------------------------------------------------------- /wp-api/core/README.md: -------------------------------------------------------------------------------- 1 | # WordPress REST API Core 2 | 3 | This repository holds the infrastructure of the WordPress REST API. 4 | 5 | Please note, neither issues nor pull requests should be filed here. Issues should be filed [on the main API repository](https://github.com/WP-API/WP-API) instead. 6 | 7 | We're currently preparing the API for [WordPress core merge](https://core.trac.wordpress.org/ticket/33982), and this is our repository for creating patches for that. 8 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | ./tests/ 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /wp-api/core/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "wp-api/api-core", 3 | "description": "Compatibility repo for WP-API infrastructure components.", 4 | "homepage": "http://wp-api.org/", 5 | "license": "GPL2+", 6 | "authors": [ 7 | { 8 | "name": "WP-API Team", 9 | "homepage": "http://wp-api.org/" 10 | } 11 | ], 12 | "support": { 13 | "issues": "https://github.com/WP-API/WP-API/issues" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | 3 | php: 4 | - "5.6" 5 | - "5.5" 6 | - "5.4" 7 | 8 | env: 9 | - WP_VERSION=latest WP_MULTISITE=0 10 | - WP_VERSION=latest WP_MULTISITE=1 11 | - WP_VERSION=3.9 WP_MULTISITE=0 12 | - WP_VERSION=3.9 WP_MULTISITE=1 13 | 14 | before_script: 15 | - bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION 16 | - npm install 17 | 18 | script: 19 | - phpunit 20 | - grunt test --verbose --force -------------------------------------------------------------------------------- /bower_components/jquery-migrate/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-migrate", 3 | "version": "1.2.1", 4 | "homepage": "https://github.com/appleboy/jquery-migrate", 5 | "_release": "1.2.1", 6 | "_resolution": { 7 | "type": "version", 8 | "tag": "1.2.1", 9 | "commit": "65f37b60ae3d305efbe1e85909e14c60d524d12a" 10 | }, 11 | "_source": "git://github.com/appleboy/jquery-migrate.git", 12 | "_target": "~1.2.1", 13 | "_originalSource": "jquery-migrate" 14 | } -------------------------------------------------------------------------------- /bower_components/jquery/src/css/hiddenVisibleSelectors.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "../selector" 4 | ], function( jQuery ) { 5 | 6 | jQuery.expr.filters.hidden = function( elem ) { 7 | // Support: Opera <= 12.12 8 | // Opera reports offsetWidths and offsetHeights less than zero on some elements 9 | return elem.offsetWidth <= 0 && elem.offsetHeight <= 0; 10 | }; 11 | jQuery.expr.filters.visible = function( elem ) { 12 | return !jQuery.expr.filters.hidden( elem ); 13 | }; 14 | 15 | }); 16 | -------------------------------------------------------------------------------- /bower_components/jquery/src/css/var/getStyles.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | return function( elem ) { 3 | // Support: IE<=11+, Firefox<=30+ (#15098, #14150) 4 | // IE throws on elements created in popups 5 | // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" 6 | if ( elem.ownerDocument.defaultView.opener ) { 7 | return elem.ownerDocument.defaultView.getComputedStyle( elem, null ); 8 | } 9 | 10 | return window.getComputedStyle( elem, null ); 11 | }; 12 | }); 13 | -------------------------------------------------------------------------------- /bower_components/jquery/src/data/accepts.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | /** 6 | * Determines whether an object can have data 7 | */ 8 | jQuery.acceptData = function( owner ) { 9 | // Accepts only: 10 | // - Node 11 | // - Node.ELEMENT_NODE 12 | // - Node.DOCUMENT_NODE 13 | // - Object 14 | // - Any 15 | /* jshint -W018 */ 16 | return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); 17 | }; 18 | 19 | return jQuery.acceptData; 20 | }); 21 | -------------------------------------------------------------------------------- /vendor/abeautifulsite/simple-php-captcha/readme.md: -------------------------------------------------------------------------------- 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/ -------------------------------------------------------------------------------- /bower_components/jquery/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery", 3 | "version": "2.1.3", 4 | "main": "dist/jquery.js", 5 | "license": "MIT", 6 | "ignore": [ 7 | "**/.*", 8 | "build", 9 | "speed", 10 | "test", 11 | "*.md", 12 | "AUTHORS.txt", 13 | "Gruntfile.js", 14 | "package.json" 15 | ], 16 | "devDependencies": { 17 | "sizzle": "2.1.1-jquery.2.1.2", 18 | "requirejs": "2.1.10", 19 | "qunit": "1.14.0", 20 | "sinon": "1.8.1" 21 | }, 22 | "keywords": [ 23 | "jquery", 24 | "javascript", 25 | "library" 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /bower_components/qunit/browserstack.json: -------------------------------------------------------------------------------- 1 | { 2 | "username": "BROWSERSTACK_USERNAME", 3 | "key": "BROWSERSTACK_KEY", 4 | "test_framework": "qunit", 5 | "test_path": [ 6 | "test/index.html", 7 | "test/startError.html", 8 | "test/logs.html", 9 | "test/setTimeout.html" 10 | ], 11 | "browsers": [ 12 | "chrome_previous", 13 | "chrome_latest", 14 | "firefox_previous", 15 | "firefox_latest", 16 | "opera_previous", 17 | "opera_latest", 18 | "safari_previous", 19 | "safari_latest", 20 | "ie_6", 21 | "ie_7", 22 | "ie_8", 23 | "ie_9", 24 | "ie_10", 25 | "ie_11" 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /wp-api/core/phpunit/includes/spy-rest-server.php: -------------------------------------------------------------------------------- 1 | endpoints; 11 | } 12 | 13 | /** 14 | * Allow calling protected methods from tests 15 | * 16 | * @param string $method Method to call 17 | * @param array $args Arguments to pass to the method 18 | * @return mixed 19 | */ 20 | public function __call( $method, $args ) { 21 | return call_user_func_array( array( $this, $method ), $args ); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /bower_components/jquery/src/css/addGetHookIf.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | 3 | function addGetHookIf( conditionFn, hookFn ) { 4 | // Define the hook, we'll check on the first run if it's really needed. 5 | return { 6 | get: function() { 7 | if ( conditionFn() ) { 8 | // Hook not needed (or it's not possible to use it due 9 | // to missing dependency), remove it. 10 | delete this.get; 11 | return; 12 | } 13 | 14 | // Hook needed; redefine it so that the support test is not executed again. 15 | return (this.get = hookFn).apply( this, arguments ); 16 | } 17 | }; 18 | } 19 | 20 | return addGetHookIf; 21 | 22 | }); 23 | -------------------------------------------------------------------------------- /wp-api/core/phpcs.ruleset.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Sniffs for the coding standards of the WP-API plugin 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /wp-api/tests/class-wp-test-spy-rest-server.php: -------------------------------------------------------------------------------- 1 | endpoints; 11 | } 12 | 13 | /** 14 | * Allow calling protected methods from tests 15 | * 16 | * @param string $method Method to call 17 | * @param array $args Arguments to pass to the method 18 | * @return mixed 19 | */ 20 | public function __call( $method, $args ) { 21 | return call_user_func_array( array( $this, $method ), $args ); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Dockunit.json: -------------------------------------------------------------------------------- 1 | { 2 | "containers": [ 3 | { 4 | "prettyName": "PHP-FPM 5.2", 5 | "image": "dockunit/prebuilt-images:php-mysql-phpunit-5.2-fpm", 6 | "beforeScripts": [ 7 | "service mysql start", 8 | "bash bin/install-wp-tests.sh wordpress_test root '' localhost 3.9" 9 | ], 10 | "testCommand": "phpunit" 11 | }, 12 | { 13 | "prettyName": "PHP-FPM 5.6", 14 | "image": "dockunit/prebuilt-images:php-mysql-phpunit-5.6-fpm", 15 | "beforeScripts": [ 16 | "service mysql start", 17 | "bash bin/install-wp-tests.sh wordpress_test root '' localhost 4.3" 18 | ], 19 | "testCommand": "phpunit" 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /bower_components/jquery/src/ajax/parseXML.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | // Cross-browser xml parsing 6 | jQuery.parseXML = function( data ) { 7 | var xml, tmp; 8 | if ( !data || typeof data !== "string" ) { 9 | return null; 10 | } 11 | 12 | // Support: IE9 13 | try { 14 | tmp = new DOMParser(); 15 | xml = tmp.parseFromString( data, "text/xml" ); 16 | } catch ( e ) { 17 | xml = undefined; 18 | } 19 | 20 | if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) { 21 | jQuery.error( "Invalid XML: " + data ); 22 | } 23 | return xml; 24 | }; 25 | 26 | return jQuery.parseXML; 27 | 28 | }); 29 | -------------------------------------------------------------------------------- /wp-api/tests/class-wp-test-rest-testcase.php: -------------------------------------------------------------------------------- 1 | as_error(); 8 | } 9 | 10 | $this->assertInstanceOf( 'WP_Error', $response ); 11 | $this->assertEquals( $code, $response->get_error_code() ); 12 | 13 | if ( null !== $status ) { 14 | $data = $response->get_error_data(); 15 | $this->assertArrayHasKey( 'status', $data ); 16 | $this->assertEquals( $status, $data['status'] ); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /wp-api/core/phpunit/includes/testcase-rest-api.php: -------------------------------------------------------------------------------- 1 | as_error(); 8 | } 9 | 10 | $this->assertInstanceOf( 'WP_Error', $response ); 11 | $this->assertEquals( $code, $response->get_error_code() ); 12 | 13 | if ( null !== $status ) { 14 | $data = $response->get_error_data(); 15 | $this->assertArrayHasKey( 'status', $data ); 16 | $this->assertEquals( $status, $data['status'] ); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /wp-api/core/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | phpunit 13 | 14 | 15 | 16 | 17 | . 18 | 19 | 20 | ./lib 21 | ./plugin.php 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /wp-api/phpunit.xml.dist: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | tests 13 | 14 | 15 | 16 | 17 | . 18 | 19 | 20 | ./lib 21 | ./plugin.php 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /bower_components/jquery/src/queue/delay.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "../queue", 4 | "../effects" // Delay is optional because of this dependency 5 | ], function( jQuery ) { 6 | 7 | // Based off of the plugin by Clint Helfers, with permission. 8 | // http://blindsignals.com/index.php/2009/07/jquery-delay/ 9 | jQuery.fn.delay = function( time, type ) { 10 | time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; 11 | type = type || "fx"; 12 | 13 | return this.queue( type, function( next, hooks ) { 14 | var timeout = setTimeout( next, time ); 15 | hooks.stop = function() { 16 | clearTimeout( timeout ); 17 | }; 18 | }); 19 | }; 20 | 21 | return jQuery.fn.delay; 22 | }); 23 | -------------------------------------------------------------------------------- /wp-api/phpcs.ruleset.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Sniffs for the coding standards of the WP-API plugin 4 | 5 | */core/* 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /bower_components/jquery/src/css/swap.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | // A method for quickly swapping in/out CSS properties to get correct calculations. 6 | jQuery.swap = function( elem, options, callback, args ) { 7 | var ret, name, 8 | old = {}; 9 | 10 | // Remember the old values, and insert the new ones 11 | for ( name in options ) { 12 | old[ name ] = elem.style[ name ]; 13 | elem.style[ name ] = options[ name ]; 14 | } 15 | 16 | ret = callback.apply( elem, args || [] ); 17 | 18 | // Revert the old values 19 | for ( name in options ) { 20 | elem.style[ name ] = old[ name ]; 21 | } 22 | 23 | return ret; 24 | }; 25 | 26 | return jQuery.swap; 27 | 28 | }); 29 | -------------------------------------------------------------------------------- /wp-api/core/wp-includes/rest-api.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | tests 16 | 17 | 18 | 19 | 20 | 21 | . 22 | 23 | 24 | ./lib 25 | ./plugin.php 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /wp-api/core/multisite.xml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | tests 16 | 17 | 18 | 19 | 20 | 21 | . 22 | 23 | 24 | ./lib 25 | ./plugin.php 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /bower_components/jquery/src/jquery.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "./core", 3 | "./selector", 4 | "./traversing", 5 | "./callbacks", 6 | "./deferred", 7 | "./core/ready", 8 | "./data", 9 | "./queue", 10 | "./queue/delay", 11 | "./attributes", 12 | "./event", 13 | "./event/alias", 14 | "./manipulation", 15 | "./manipulation/_evalUrl", 16 | "./wrap", 17 | "./css", 18 | "./css/hiddenVisibleSelectors", 19 | "./serialize", 20 | "./ajax", 21 | "./ajax/xhr", 22 | "./ajax/script", 23 | "./ajax/jsonp", 24 | "./ajax/load", 25 | "./event/ajax", 26 | "./effects", 27 | "./effects/animatedSelector", 28 | "./offset", 29 | "./dimensions", 30 | "./deprecated", 31 | "./exports/amd", 32 | "./exports/global" 33 | ], function( jQuery ) { 34 | 35 | return jQuery; 36 | 37 | }); 38 | -------------------------------------------------------------------------------- /bower_components/moment/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "moment", 3 | "version": "2.9.0", 4 | "main": "moment.js", 5 | "ignore": [ 6 | "**/.*", 7 | "node_modules", 8 | "bower_components", 9 | "test", 10 | "tests", 11 | "tasks", 12 | "component.json", 13 | "composer.json", 14 | "CONTRIBUTING.md", 15 | "ender.js", 16 | "Gruntfile.js", 17 | "package.js", 18 | "package.json" 19 | ], 20 | "homepage": "https://github.com/moment/moment", 21 | "_release": "2.9.0", 22 | "_resolution": { 23 | "type": "version", 24 | "tag": "2.9.0", 25 | "commit": "8b35bc74c0e88c1a8c58ccb90117a9edc9f6a479" 26 | }, 27 | "_source": "git://github.com/moment/moment.git", 28 | "_target": "~2.9.0", 29 | "_originalSource": "moment" 30 | } -------------------------------------------------------------------------------- /bower_components/jquery/src/exports/global.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "../var/strundefined" 4 | ], function( jQuery, strundefined ) { 5 | 6 | var 7 | // Map over jQuery in case of overwrite 8 | _jQuery = window.jQuery, 9 | 10 | // Map over the $ in case of overwrite 11 | _$ = window.$; 12 | 13 | jQuery.noConflict = function( deep ) { 14 | if ( window.$ === jQuery ) { 15 | window.$ = _$; 16 | } 17 | 18 | if ( deep && window.jQuery === jQuery ) { 19 | window.jQuery = _jQuery; 20 | } 21 | 22 | return jQuery; 23 | }; 24 | 25 | // Expose jQuery and $ identifiers, even in AMD 26 | // (#7102#comment:10, https://github.com/jquery/jquery/pull/557) 27 | // and CommonJS for browser emulators (#13566) 28 | if ( typeof noGlobal === strundefined ) { 29 | window.jQuery = window.$ = jQuery; 30 | } 31 | 32 | }); 33 | -------------------------------------------------------------------------------- /tests/php/bootstrap.php: -------------------------------------------------------------------------------- 1 | manually_load_api(); 17 | 18 | require_once( dirname( __FILE__ ) . '/../../classes/class-ccf-api-form-controller.php' ); 19 | } 20 | tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' ); 21 | 22 | require_once( $_tests_dir . '/includes/bootstrap.php' ); 23 | 24 | require_once( dirname( __FILE__ ) . '/includes/class-ccf-test-base.php' ); 25 | -------------------------------------------------------------------------------- /bower_components/underscore/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "underscore", 3 | "version": "1.6.0", 4 | "main": "underscore.js", 5 | "keywords": [ 6 | "util", 7 | "functional", 8 | "server", 9 | "client", 10 | "browser" 11 | ], 12 | "ignore": [ 13 | "underscore-min.js", 14 | "docs", 15 | "test", 16 | "*.yml", 17 | "*.map", 18 | "CNAME", 19 | "index.html", 20 | "favicon.ico", 21 | "CONTRIBUTING.md" 22 | ], 23 | "homepage": "https://github.com/jashkenas/underscore", 24 | "_release": "1.6.0", 25 | "_resolution": { 26 | "type": "version", 27 | "tag": "1.6.0", 28 | "commit": "1f4bf626f23a99f7a676f5076dc1b1475554c8f7" 29 | }, 30 | "_source": "git://github.com/jashkenas/underscore.git", 31 | "_target": "~1.6.0", 32 | "_originalSource": "underscore" 33 | } -------------------------------------------------------------------------------- /bower_components/moment/scripts/npm_prepublish.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | if [ "$#" != 1 ]; then 6 | echo "Please provide tag to checkout" >&2 7 | exit 1 8 | fi 9 | tag="$1" 10 | 11 | while [ "$PWD" != '/' -a ! -f moment.js ]; do 12 | cd .. 13 | done 14 | 15 | if [ ! -f moment.js ]; then 16 | echo "Run me from the moment repo" >&2 17 | exit 1 18 | fi 19 | 20 | basename=$(basename $PWD) 21 | src=moment-npm-git 22 | dest=moment-npm 23 | 24 | cd .. 25 | 26 | rm -rf $src $dest 27 | 28 | git clone $basename $src 29 | mkdir $dest 30 | 31 | 32 | cp $src/moment.js $dest 33 | cp $src/package.json $dest 34 | cp $src/README.md $dest 35 | cp $src/LICENSE $dest 36 | cp -r $src/locale $dest 37 | cp -r $src/min $dest 38 | cp $src/ender.js $dest 39 | cp $src/package.js $dest 40 | 41 | rm -rf $src 42 | 43 | echo "Check out $dest" 44 | -------------------------------------------------------------------------------- /bower_components/moment/meteor/README.md: -------------------------------------------------------------------------------- 1 | Packaging [Moment](momentjs.org) for [Meteor.js](http://meteor.com). 2 | 3 | 4 | # Meteor 5 | 6 | If you're new to Meteor, here's what the excitement is all about - 7 | [watch the first two minutes](https://www.youtube.com/watch?v=fsi0aJ9yr2o); you'll be hooked by 1:28. 8 | 9 | That screencast is from 2012. In the meantime, Meteor has become a mature JavaScript-everywhere web 10 | development framework. Read more at [Why Meteor](http://www.meteorpedia.com/read/Why_Meteor). 11 | 12 | 13 | # Issues 14 | 15 | If you encounter an issue while using this package, please CC @dandv when you file it in this repo. 16 | 17 | 18 | # DONE 19 | 20 | * Simple test. Should be enough. 21 | 22 | 23 | # TODO 24 | 25 | * Add other tests; however, that is overkill, and the responsibiity of Moment, not of the Meteor integration. 26 | -------------------------------------------------------------------------------- /wp-api/codecoverage.xml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | tests 16 | 17 | 18 | 19 | 20 | . 21 | 22 | 23 | ./lib 24 | ./plugin.php 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /wp-api/core/codecoverage.xml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | tests 16 | 17 | 18 | 19 | 20 | . 21 | 22 | 23 | ./lib 24 | ./plugin.php 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /bower_components/qunit/build/release.js: -------------------------------------------------------------------------------- 1 | /*jshint node:true */ 2 | module.exports = function( Release ) { 3 | 4 | var shell = require( "shelljs" ); 5 | 6 | Release.define({ 7 | npmPublish: true, 8 | issueTracker: "github", 9 | changelogShell: function() { 10 | return "# Changelog for QUnit v" + Release.newVersion + "\n"; 11 | }, 12 | 13 | generateArtifacts: function( done ) { 14 | Release.exec( "grunt", "Grunt command failed" ); 15 | shell.mkdir( "-p", "qunit" ); 16 | shell.cp( "-r", "dist/*", "qunit/" ); 17 | shell.mkdir( "-p", "dist/cdn" ); 18 | shell.cp( "dist/qunit.js", "dist/cdn/qunit-" + Release.newVersion + ".js" ); 19 | shell.cp( "dist/qunit.css", "dist/cdn/qunit-" + Release.newVersion + ".css" ); 20 | done([ "qunit/qunit.js", "qunit/qunit.css" ]); 21 | } 22 | }); 23 | 24 | }; 25 | 26 | module.exports.dependencies = [ 27 | "shelljs@0.2.6" 28 | ]; 29 | -------------------------------------------------------------------------------- /assets/build/css/admin.css.map: -------------------------------------------------------------------------------- 1 | { 2 | "version": 3, 3 | "mappings": ";AAAA,UASC;EARA,WAAW,EAAE,MAAM;EACnB,GAAG,EAAC,2BAA2B;EAC/B,GAAG,EAAC,mNAGkD;EACtD,WAAW,EAAE,MAAM;EACnB,UAAU,EAAE,MAAM;AAIlB,0CAAsB;EACrB,WAAW,EAAE,MAAM;EACnB,OAAO,EAAE,GAAG;EACZ,KAAK,EAAE,IAAI;EACX,WAAW,EAAE,MAAM;EACnB,YAAY,EAAE,MAAM;EACpB,cAAc,EAAE,IAAI;EACpB,WAAW,EAAE,CAAC;EACd,MAAM,EAAE,OAAO;EACf,sBAAsB,EAAE,WAAW;;AAIrC,sBAAuB;EACtB,KAAK,EAAE,IAAI;EACX,OAAO,EAAE,KAAK;EACd,UAAU,EAAE,UAAU;EACtB,MAAM,EAAE,CAAC;EACT,gBAAgB,EAAE,OAAO;;AAG1B,2BAA4B;EAC3B,OAAO,EAAE,MAAM;;AAGhB,uBAAwB;EACvB,MAAM,EAAE,OAAO;EACf,OAAO,EAAE,GAAG;;AAGb,gCAAiC;EAChC,WAAW,EAAE,GAAG;EAChB,YAAY,EAAE,GAAG;;AAGlB,0BAA2B;EAC1B,UAAU,EAAE,KAAK;EACjB,aAAa,EAAE,IAAI;;AAGpB,4BAA6B;EAC5B,KAAK,EAAE,OAAO;EACd,eAAe,EAAE,IAAI;;AAGtB,iCAAkC;EACjC,KAAK,EAAE,OAAO;;AAGf,uCAAwC;EACvC,KAAK,EAAE,OAAO", 4 | "sources": ["../../scss/admin.scss"], 5 | "names": [], 6 | "file": "admin.css" 7 | } 8 | -------------------------------------------------------------------------------- /bower_components/jquery/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery", 3 | "version": "2.1.3", 4 | "main": "dist/jquery.js", 5 | "license": "MIT", 6 | "ignore": [ 7 | "**/.*", 8 | "build", 9 | "speed", 10 | "test", 11 | "*.md", 12 | "AUTHORS.txt", 13 | "Gruntfile.js", 14 | "package.json" 15 | ], 16 | "devDependencies": { 17 | "sizzle": "2.1.1-jquery.2.1.2", 18 | "requirejs": "2.1.10", 19 | "qunit": "1.14.0", 20 | "sinon": "1.8.1" 21 | }, 22 | "keywords": [ 23 | "jquery", 24 | "javascript", 25 | "library" 26 | ], 27 | "homepage": "https://github.com/jquery/jquery", 28 | "_release": "2.1.3", 29 | "_resolution": { 30 | "type": "version", 31 | "tag": "2.1.3", 32 | "commit": "8f2a9d9272d6ed7f32d3a484740ab342c02541e0" 33 | }, 34 | "_source": "git://github.com/jquery/jquery.git", 35 | "_target": "~2.1.1", 36 | "_originalSource": "jquery" 37 | } -------------------------------------------------------------------------------- /wp-api/core/wp-includes/functions.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Generated by IcoMoon 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /assets/build/css/admin.min.css: -------------------------------------------------------------------------------- 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}#menu-posts-ccf_form .wp-menu-image:before{font-family:menu;content:"";speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;cursor:pointer;-webkit-font-smoothing:antialiased}.ccf-subscribe.updated{width:100%;display:block;box-sizing:border-box;border:0;background-color:#FCECAD}.ccf-subscribe.updated form{display:inline}.ccf-subscribe .ad-wrap{margin:.5em 0;padding:2px}.ccf-subscribe input[type=email]{margin-left:5px;margin-right:5px}#wpfooter .ccf-please-rate{text-align:right;margin-bottom:10px}#wpfooter .ccf-please-rate a{color:inherit;text-decoration:none}#wpfooter .ccf-please-rate a span{color:#0073aa}#wpfooter .ccf-please-rate a:hover span{color:#00a0d2} -------------------------------------------------------------------------------- /assets/build/js/settings.min.js: -------------------------------------------------------------------------------- 1 | (function(e){var t=e(document.querySelectorAll(".ccf-asset-restrictions")),i=document.querySelectorAll(".ccf-asset-loading-restrictions-wrap")[0],l=e(document.querySelectorAll(".ccf-asset-loading-restriction-enabled")),s=t.find(".asset").length;l.on("change",function(e){i.className="0"===e.target.value?"ccf-asset-loading-restrictions-wrap ccf-hide-field":"ccf-asset-loading-restrictions-wrap"}),t.on("click",".add",function(i){var l=i.target.parentNode.cloneNode(!0),r=l.querySelectorAll(".asset-location")[0],o=l.querySelectorAll(".restriction-type")[0];r.value="",o.value="url",r.name="ccf_settings[asset_loading_restrictions]["+s+"][location]",o.name="ccf_settings[asset_loading_restrictions]["+s+"][type]",s++,t.append(e(l))}),t.on("click",".delete",function(e){var t=document.querySelectorAll(".ccf-asset-restrictions .asset");2>t.length?(e.target.parentNode.querySelectorAll(".asset-location")[0].value="",e.target.parentNode.querySelectorAll(".restriction-type")[0].value="url"):e.target.parentNode.parentNode.removeChild(e.target.parentNode)})})(jQuery); -------------------------------------------------------------------------------- /bower_components/qunit/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Welcome! Thanks for your interest in contributing to QUnit. You're **almost** in the right place. More information on how to contribute to this and all other jQuery Foundation projects is over at [contribute.jquery.org](http://contribute.jquery.org). You'll definitely want to take a look at the articles on contributing [code](http://contribute.jquery.org/code). 2 | 3 | You may also want to take a look at our [commit & pull request guide](http://contribute.jquery.org/commits-and-pull-requests/) and [style guides](http://contribute.jquery.org/style-guide/) for instructions on how to maintain your fork and submit your code. Before we can merge any pull request, we'll also need you to sign our [contributor license agreement](http://contribute.jquery.org/cla). 4 | 5 | You can find us on [IRC](http://irc.jquery.org), specifically in #jquery-dev should you have any questions. If you've never contributed to open source before, we've put together [a short guide with tips, tricks, and ideas on getting started](http://contribute.jquery.org/open-source/). 6 | -------------------------------------------------------------------------------- /vendor/composer/installed.json: -------------------------------------------------------------------------------- 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 | ] 28 | -------------------------------------------------------------------------------- /wp-api/tests/class-wp-test-rest-controller-testcase.php: -------------------------------------------------------------------------------- 1 | server = $wp_rest_server = new WP_REST_Server; 13 | do_action( 'rest_api_init' ); 14 | } 15 | 16 | public function tearDown() { 17 | parent::tearDown(); 18 | 19 | /** @var WP_REST_Server $wp_rest_server */ 20 | global $wp_rest_server; 21 | $wp_rest_server = null; 22 | } 23 | 24 | abstract public function test_register_routes(); 25 | 26 | abstract public function test_get_items(); 27 | 28 | abstract public function test_get_item(); 29 | 30 | abstract public function test_create_item(); 31 | 32 | abstract public function test_update_item(); 33 | 34 | abstract public function test_delete_item(); 35 | 36 | abstract public function test_prepare_item(); 37 | 38 | abstract public function test_get_item_schema(); 39 | 40 | } 41 | -------------------------------------------------------------------------------- /bower_components/jquery/src/attributes/support.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../var/support" 3 | ], function( support ) { 4 | 5 | (function() { 6 | var input = document.createElement( "input" ), 7 | select = document.createElement( "select" ), 8 | opt = select.appendChild( document.createElement( "option" ) ); 9 | 10 | input.type = "checkbox"; 11 | 12 | // Support: iOS<=5.1, Android<=4.2+ 13 | // Default value for a checkbox should be "on" 14 | support.checkOn = input.value !== ""; 15 | 16 | // Support: IE<=11+ 17 | // Must access selectedIndex to make default options select 18 | support.optSelected = opt.selected; 19 | 20 | // Support: Android<=2.3 21 | // Options inside disabled selects are incorrectly marked as disabled 22 | select.disabled = true; 23 | support.optDisabled = !opt.disabled; 24 | 25 | // Support: IE<=11+ 26 | // An input loses its value after becoming a radio 27 | input = document.createElement( "input" ); 28 | input.value = "t"; 29 | input.type = "radio"; 30 | support.radioValue = input.value === "t"; 31 | })(); 32 | 33 | return support; 34 | 35 | }); 36 | -------------------------------------------------------------------------------- /wp-api/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "wp-api/wp-api", 3 | "type": "wordpress-plugin", 4 | "description": "Access your WordPress site's data through an easy-to-use HTTP REST API.", 5 | "homepage": "http://wp-api.org/", 6 | "license": "GPL2+", 7 | "authors": [ 8 | { 9 | "name": "WP-API Team", 10 | "homepage": "http://wp-api.org/" 11 | } 12 | ], 13 | "support": { 14 | "issues": "https://github.com/WP-API/WP-API/issues", 15 | "forum": "https://wordpress.org/support/plugin/json-rest-api" 16 | }, 17 | "require": { 18 | "composer/installers": "~1.0" 19 | }, 20 | "require-dev": { 21 | "wp-coding-standards/wpcs": "0.6.0" 22 | }, 23 | "extra": { 24 | "installer-name": "json-rest-api" 25 | }, 26 | "scripts": { 27 | "post-install-cmd": "\"vendor/bin/phpcs\" --config-set installed_paths vendor/wp-coding-standards/wpcs", 28 | "post-update-cmd" : "\"vendor/bin/phpcs\" --config-set installed_paths vendor/wp-coding-standards/wpcs" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /bin/production-ready.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo "Are you sure you want to do this? Uncommitted work could be lost. [y/n]" 4 | read input_variable 5 | 6 | if [ "$input_variable" == "y" ]; then 7 | DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) 8 | 9 | cd "$DIR/../" 10 | 11 | rm bin/install-wp-tests.sh > /dev/null 2>&1 12 | 13 | rm -rf bower_components > /dev/null 2>&1 14 | rm -rf node_modules > /dev/null 2>&1 15 | rm -rf scss > /dev/null 2>&1 16 | rm -rf tests > /dev/null 2>&1 17 | rm -rf .sass-cache > /dev/null 2>&1 18 | 19 | rm .travis.yml > /dev/null 2>&1 20 | rm codeception.yml > /dev/null 2>&1 21 | rm Gruntfile.js > /dev/null 2>&1 22 | rm Dockunit.json > /dev/null 2>&1 23 | rm composer.json > /dev/null 2>&1 24 | rm Dockunit.json > /dev/null 2>&1 25 | rm composer.lock > /dev/null 2>&1 26 | rm phpunit.xml > /dev/null 2>&1 27 | rm .jshintrc > /dev/null 2>&1 28 | 29 | bower install --production > /dev/null 2>&1 30 | 31 | echo "Done! Custom Contact Forms is cleaned up and production ready." 32 | fi 33 | -------------------------------------------------------------------------------- /bower_components/jquery/src/exports/amd.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | // Register as a named AMD module, since jQuery can be concatenated with other 6 | // files that may use define, but not via a proper concatenation script that 7 | // understands anonymous AMD modules. A named AMD is safest and most robust 8 | // way to register. Lowercase jquery is used because AMD module names are 9 | // derived from file names, and jQuery is normally delivered in a lowercase 10 | // file name. Do this after creating the global so that if an AMD module wants 11 | // to call noConflict to hide this version of jQuery, it will work. 12 | 13 | // Note that for maximum portability, libraries that are not jQuery should 14 | // declare themselves as anonymous modules, and avoid setting a global if an 15 | // AMD loader is present. jQuery is a special case. For more information, see 16 | // https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon 17 | 18 | if ( typeof define === "function" && define.amd ) { 19 | define( "jquery", [], function() { 20 | return jQuery; 21 | }); 22 | } 23 | 24 | }); 25 | -------------------------------------------------------------------------------- /bower_components/jquery/src/core/parseHTML.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "./var/rsingleTag", 4 | "../manipulation" // buildFragment 5 | ], function( jQuery, rsingleTag ) { 6 | 7 | // data: string of html 8 | // context (optional): If specified, the fragment will be created in this context, defaults to document 9 | // keepScripts (optional): If true, will include scripts passed in the html string 10 | jQuery.parseHTML = function( data, context, keepScripts ) { 11 | if ( !data || typeof data !== "string" ) { 12 | return null; 13 | } 14 | if ( typeof context === "boolean" ) { 15 | keepScripts = context; 16 | context = false; 17 | } 18 | context = context || document; 19 | 20 | var parsed = rsingleTag.exec( data ), 21 | scripts = !keepScripts && []; 22 | 23 | // Single tag 24 | if ( parsed ) { 25 | return [ context.createElement( parsed[1] ) ]; 26 | } 27 | 28 | parsed = jQuery.buildFragment( [ data ], context, scripts ); 29 | 30 | if ( scripts && scripts.length ) { 31 | jQuery( scripts ).remove(); 32 | } 33 | 34 | return jQuery.merge( [], parsed.childNodes ); 35 | }; 36 | 37 | return jQuery.parseHTML; 38 | 39 | }); 40 | -------------------------------------------------------------------------------- /bower_components/jquery/src/manipulation/support.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../var/support" 3 | ], function( support ) { 4 | 5 | (function() { 6 | var fragment = document.createDocumentFragment(), 7 | div = fragment.appendChild( document.createElement( "div" ) ), 8 | input = document.createElement( "input" ); 9 | 10 | // Support: Safari<=5.1 11 | // Check state lost if the name is set (#11217) 12 | // Support: Windows Web Apps (WWA) 13 | // `name` and `type` must use .setAttribute for WWA (#14901) 14 | input.setAttribute( "type", "radio" ); 15 | input.setAttribute( "checked", "checked" ); 16 | input.setAttribute( "name", "t" ); 17 | 18 | div.appendChild( input ); 19 | 20 | // Support: Safari<=5.1, Android<4.2 21 | // Older WebKit doesn't clone checked state correctly in fragments 22 | support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; 23 | 24 | // Support: IE<=11+ 25 | // Make sure textarea (and checkbox) defaultValue is properly cloned 26 | div.innerHTML = ""; 27 | support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; 28 | })(); 29 | 30 | return support; 31 | 32 | }); 33 | -------------------------------------------------------------------------------- /wp-api/core/wp-includes/filters.php: -------------------------------------------------------------------------------- 1 | ", 7 | "repository" : {"type": "git", "url": "git://github.com/jashkenas/underscore.git"}, 8 | "main" : "underscore.js", 9 | "version" : "1.6.0", 10 | "devDependencies": { 11 | "docco": "0.6.x", 12 | "phantomjs": "1.9.0-1", 13 | "uglify-js": "2.4.x" 14 | }, 15 | "scripts": { 16 | "test": "phantomjs test/vendor/runner.js test/index.html?noglobals=true", 17 | "build": "uglifyjs underscore.js -c \"evaluate=false\" --comments \"/ .*/\" -m --source-map underscore-min.map -o underscore-min.js", 18 | "doc": "docco underscore.js" 19 | }, 20 | "licenses": [ 21 | { 22 | "type": "MIT", 23 | "url": "https://raw.github.com/jashkenas/underscore/master/LICENSE" 24 | } 25 | ], 26 | "files" : ["underscore.js", "underscore-min.js", "LICENSE"] 27 | } 28 | -------------------------------------------------------------------------------- /vendor/composer/LICENSE: -------------------------------------------------------------------------------- 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 | 22 | -------------------------------------------------------------------------------- /classes/class-ccf-field-cpt.php: -------------------------------------------------------------------------------- 1 | esc_html__( 'Form Fields', 'custom-contact-forms' ), 31 | 'public' => false, 32 | 'query_var' => false, 33 | 'rewrite' => false, 34 | 'capability_type' => 'post', 35 | 'hierarchical' => false, 36 | 'supports' => false, 37 | 'has_archive' => false, 38 | ); 39 | 40 | register_post_type( 'ccf_field', $args ); 41 | } 42 | 43 | /** 44 | * Return singleton instance of class 45 | * 46 | * @since 6.0 47 | * @return object 48 | */ 49 | public static function factory() { 50 | static $instance; 51 | 52 | if ( ! $instance ) { 53 | $instance = new self(); 54 | $instance->setup(); 55 | } 56 | 57 | return $instance; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /bower_components/moment/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011-2014 Tim Wood, Iskren Chernev, Moment.js contributors 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /bower_components/jquery/MIT-LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright 2014 jQuery Foundation and other contributors 2 | http://jquery.com/ 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining 5 | a copy of this software and associated documentation files (the 6 | "Software"), to deal in the Software without restriction, including 7 | without limitation the rights to use, copy, modify, merge, publish, 8 | distribute, sublicense, and/or sell copies of the Software, and to 9 | permit persons to whom the Software is furnished to do so, subject to 10 | the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /bower_components/underscore/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative 2 | Reporters & Editors 3 | 4 | Permission is hereby granted, free of charge, to any person 5 | obtaining a copy of this software and associated documentation 6 | files (the "Software"), to deal in the Software without 7 | restriction, including without limitation the rights to use, 8 | copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the 10 | Software is furnished to do so, subject to the following 11 | conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 18 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 20 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 21 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 22 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 23 | OTHER DEALINGS IN THE SOFTWARE. 24 | -------------------------------------------------------------------------------- /assets/build/js/form-cpt-preview.min.js: -------------------------------------------------------------------------------- 1 | (function(e,t){"use strict";wp.ccf.preview=function(t,i){var l=this;l.id=parseInt(t),l.form=null;var s=l.fetch();e.when(s).done(function(){null===l.form?l.form=wp.ccf.forms.findWhere({id:l.id}):(wp.ccf.forms.add(l.form),delete wp.ccf.forms.formsFetching[l.id]),l.renderPreviews.call(l),i.innerHTML=l.template({form:l.form.toJSON()})}),wp.ccf.dispatcher.on("saveFormComplete",function(){l.renderPreviews(),i.innerHTML=l.template({form:l.form.toJSON()})})},wp.ccf.preview.prototype={template:wp.ccf.utils.template("ccf-form-mce-preview"),fetch:function(){var e=this,t=wp.ccf.forms.findWhere({id:e.id});if(!t){var i;return wp.ccf.forms.formsFetching[e.id]!==void 0?i=wp.ccf.forms.formsFetching[e.id]:(e.form=new wp.ccf.models.Form({id:e.id}),i=e.form.fetch(),wp.ccf.forms.formsFetching[e.id]=i),i}return!0},renderPreviews:function(){var e=this,t=e.form.get("fields");t.each(function(e){var t=document.getElementById("ccf-"+e.get("type")+"-preview-template");if(t){var i=wp.ccf.utils.template("ccf-"+e.get("type")+"-preview-template")({field:e.toJSON(),mce:!0});e.set("preview",i)}})}};var i=document.querySelectorAll(".ccf-form-cpt-preview");t.each(i,function(e){var t=parseInt(e.getAttribute("data-form-id"));new wp.ccf.preview(t,e)})})(jQuery,_); -------------------------------------------------------------------------------- /bower_components/jquery/src/event/alias.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "../event" 4 | ], function( jQuery ) { 5 | 6 | jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " + 7 | "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + 8 | "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) { 9 | 10 | // Handle event binding 11 | jQuery.fn[ name ] = function( data, fn ) { 12 | return arguments.length > 0 ? 13 | this.on( name, null, data, fn ) : 14 | this.trigger( name ); 15 | }; 16 | }); 17 | 18 | jQuery.fn.extend({ 19 | hover: function( fnOver, fnOut ) { 20 | return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); 21 | }, 22 | 23 | bind: function( types, data, fn ) { 24 | return this.on( types, null, data, fn ); 25 | }, 26 | unbind: function( types, fn ) { 27 | return this.off( types, null, fn ); 28 | }, 29 | 30 | delegate: function( selector, types, data, fn ) { 31 | return this.on( types, selector, data, fn ); 32 | }, 33 | undelegate: function( selector, types, fn ) { 34 | // ( namespace ) or ( selector, types [, fn] ) 35 | return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn ); 36 | } 37 | }); 38 | 39 | }); 40 | -------------------------------------------------------------------------------- /classes/class-ccf-choice-cpt.php: -------------------------------------------------------------------------------- 1 | esc_html__( 'Form Field Choices', 'custom-contact-forms' ), 30 | 'public' => false, 31 | 'has_archive' => false, 32 | 'query_var' => false, 33 | 'rewrite' => false, 34 | 'capability_type' => 'post', 35 | 'hierarchical' => false, 36 | 'supports' => false, 37 | ); 38 | 39 | register_post_type( 'ccf_choice', $args ); 40 | } 41 | 42 | /** 43 | * Return singleton instance of class 44 | * 45 | * @since 6.0 46 | * @return object 47 | */ 48 | public static function factory() { 49 | static $instance; 50 | 51 | if ( ! $instance ) { 52 | $instance = new self(); 53 | $instance->setup(); 54 | } 55 | 56 | return $instance; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /bower_components/underscore/README.md: -------------------------------------------------------------------------------- 1 | __ 2 | /\ \ __ 3 | __ __ ___ \_\ \ __ _ __ ____ ___ ___ _ __ __ /\_\ ____ 4 | /\ \/\ \ /' _ `\ /'_ \ /'__`\/\ __\/ ,__\ / ___\ / __`\/\ __\/'__`\ \/\ \ /',__\ 5 | \ \ \_\ \/\ \/\ \/\ \ \ \/\ __/\ \ \//\__, `\/\ \__//\ \ \ \ \ \//\ __/ __ \ \ \/\__, `\ 6 | \ \____/\ \_\ \_\ \___,_\ \____\\ \_\\/\____/\ \____\ \____/\ \_\\ \____\/\_\ _\ \ \/\____/ 7 | \/___/ \/_/\/_/\/__,_ /\/____/ \/_/ \/___/ \/____/\/___/ \/_/ \/____/\/_//\ \_\ \/___/ 8 | \ \____/ 9 | \/___/ 10 | 11 | Underscore.js is a utility-belt library for JavaScript that provides 12 | support for the usual functional suspects (each, map, reduce, filter...) 13 | without extending any core JavaScript objects. 14 | 15 | For Docs, License, Tests, and pre-packed downloads, see: 16 | http://underscorejs.org 17 | 18 | Underscore is an open-sourced component of DocumentCloud: 19 | https://github.com/documentcloud 20 | 21 | Many thanks to our contributors: 22 | https://github.com/jashkenas/underscore/contributors 23 | -------------------------------------------------------------------------------- /wp-api/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | Hi, and thanks for considering contributing! Before you do though, here's a few 3 | notes on how best to contribute. Don't worry, I'll keep it short! 4 | 5 | ## Best Practices 6 | 7 | ### Commit Messages 8 | Commit messages should follow the standard laid out in the git manual; that is, 9 | a one-line summary () 10 | 11 | Short (50 chars or less) summary of changes 12 | 13 | More detailed explanatory text, if necessary. Wrap it to about 72 14 | characters or so. In some contexts, the first line is treated as the 15 | subject of an email and the rest of the text as the body. The blank 16 | line separating the summary from the body is critical (unless you omit 17 | the body entirely); tools like rebase can get confused if you run the 18 | two together. 19 | 20 | Further paragraphs come after blank lines. 21 | 22 | - Bullet points are okay, too 23 | 24 | - Typically a hyphen or asterisk is used for the bullet, preceded by a 25 | single space, with blank lines in between, but conventions vary here 26 | 27 | ## Commit Process 28 | Changes are proposed in the form of pull requests by you, the contributor! After 29 | submitting your proposed changes, a member of the API team will review your 30 | commits and mark them for merge by assigning it to themselves. Your pull request 31 | will then be merged after final review by another member. 32 | -------------------------------------------------------------------------------- /assets/build/css/admin.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | @font-face { 3 | font-family: 'menu'; 4 | src: url("../../fonts/menu.eot"); 5 | 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"); 6 | font-weight: normal; 7 | font-style: normal; } 8 | #menu-posts-ccf_form .wp-menu-image:before { 9 | font-family: 'menu'; 10 | content: ""; 11 | speak: none; 12 | font-weight: normal; 13 | font-variant: normal; 14 | text-transform: none; 15 | line-height: 1; 16 | cursor: pointer; 17 | -webkit-font-smoothing: antialiased; } 18 | 19 | .ccf-subscribe.updated { 20 | width: 100%; 21 | display: block; 22 | box-sizing: border-box; 23 | border: 0; 24 | background-color: #FCECAD; } 25 | 26 | .ccf-subscribe.updated form { 27 | display: inline; } 28 | 29 | .ccf-subscribe .ad-wrap { 30 | margin: 0.5em 0; 31 | padding: 2px; } 32 | 33 | .ccf-subscribe input[type=email] { 34 | margin-left: 5px; 35 | margin-right: 5px; } 36 | 37 | #wpfooter .ccf-please-rate { 38 | text-align: right; 39 | margin-bottom: 10px; } 40 | 41 | #wpfooter .ccf-please-rate a { 42 | color: inherit; 43 | text-decoration: none; } 44 | 45 | #wpfooter .ccf-please-rate a span { 46 | color: #0073aa; } 47 | 48 | #wpfooter .ccf-please-rate a:hover span { 49 | color: #00a0d2; } 50 | 51 | /*# sourceMappingURL=admin.css.map */ 52 | -------------------------------------------------------------------------------- /assets/scss/admin.scss: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'menu'; 3 | src:url('../../fonts/menu.eot'); 4 | src:url('../../fonts/menu.eot?#iefix') format('embedded-opentype'), 5 | url('../../fonts/menu.woff') format('woff'), 6 | url('../../fonts/menu.ttf') format('truetype'), 7 | url('../../fonts/menu.svg#form-manager') format('svg'); 8 | font-weight: normal; 9 | font-style: normal; 10 | } 11 | 12 | #menu-posts-ccf_form { 13 | .wp-menu-image:before { 14 | font-family: 'menu'; 15 | content: ""; 16 | speak: none; 17 | font-weight: normal; 18 | font-variant: normal; 19 | text-transform: none; 20 | line-height: 1; 21 | cursor: pointer; 22 | -webkit-font-smoothing: antialiased; 23 | } 24 | } 25 | 26 | .ccf-subscribe.updated { 27 | width: 100%; 28 | display: block; 29 | box-sizing: border-box; 30 | border: 0; 31 | background-color: #FCECAD; 32 | } 33 | 34 | .ccf-subscribe.updated form { 35 | display: inline; 36 | } 37 | 38 | .ccf-subscribe .ad-wrap { 39 | margin: 0.5em 0; 40 | padding: 2px; 41 | } 42 | 43 | .ccf-subscribe input[type=email] { 44 | margin-left: 5px; 45 | margin-right: 5px; 46 | } 47 | 48 | #wpfooter .ccf-please-rate { 49 | text-align: right; 50 | margin-bottom: 10px; 51 | } 52 | 53 | #wpfooter .ccf-please-rate a { 54 | color: inherit; 55 | text-decoration: none; 56 | } 57 | 58 | #wpfooter .ccf-please-rate a span { 59 | color: #0073aa; 60 | } 61 | 62 | #wpfooter .ccf-please-rate a:hover span { 63 | color: #00a0d2; 64 | } 65 | 66 | -------------------------------------------------------------------------------- /bower_components/jquery/src/core/access.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | // Multifunctional method to get and set values of a collection 6 | // The value/s can optionally be executed if it's a function 7 | var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) { 8 | var i = 0, 9 | len = elems.length, 10 | bulk = key == null; 11 | 12 | // Sets many values 13 | if ( jQuery.type( key ) === "object" ) { 14 | chainable = true; 15 | for ( i in key ) { 16 | jQuery.access( elems, fn, i, key[i], true, emptyGet, raw ); 17 | } 18 | 19 | // Sets one value 20 | } else if ( value !== undefined ) { 21 | chainable = true; 22 | 23 | if ( !jQuery.isFunction( value ) ) { 24 | raw = true; 25 | } 26 | 27 | if ( bulk ) { 28 | // Bulk operations run against the entire set 29 | if ( raw ) { 30 | fn.call( elems, value ); 31 | fn = null; 32 | 33 | // ...except when executing function values 34 | } else { 35 | bulk = fn; 36 | fn = function( elem, key, value ) { 37 | return bulk.call( jQuery( elem ), value ); 38 | }; 39 | } 40 | } 41 | 42 | if ( fn ) { 43 | for ( ; i < len; i++ ) { 44 | fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) ); 45 | } 46 | } 47 | } 48 | 49 | return chainable ? 50 | elems : 51 | 52 | // Gets 53 | bulk ? 54 | fn.call( elems ) : 55 | len ? fn( elems[0], key ) : emptyGet; 56 | }; 57 | 58 | return access; 59 | 60 | }); 61 | -------------------------------------------------------------------------------- /vendor/composer/autoload_real.php: -------------------------------------------------------------------------------- 1 | $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 | } 46 | -------------------------------------------------------------------------------- /bower_components/qunit/src/export.js: -------------------------------------------------------------------------------- 1 | // For browser, export only select globals 2 | if ( typeof window !== "undefined" ) { 3 | 4 | // Deprecated 5 | // Extend assert methods to QUnit and Global scope through Backwards compatibility 6 | (function() { 7 | var i, 8 | assertions = Assert.prototype; 9 | 10 | function applyCurrent( current ) { 11 | return function() { 12 | var assert = new Assert( QUnit.config.current ); 13 | current.apply( assert, arguments ); 14 | }; 15 | } 16 | 17 | for ( i in assertions ) { 18 | QUnit[ i ] = applyCurrent( assertions[ i ] ); 19 | } 20 | })(); 21 | 22 | (function() { 23 | var i, l, 24 | keys = [ 25 | "test", 26 | "module", 27 | "expect", 28 | "asyncTest", 29 | "start", 30 | "stop", 31 | "ok", 32 | "equal", 33 | "notEqual", 34 | "propEqual", 35 | "notPropEqual", 36 | "deepEqual", 37 | "notDeepEqual", 38 | "strictEqual", 39 | "notStrictEqual", 40 | "throws" 41 | ]; 42 | 43 | for ( i = 0, l = keys.length; i < l; i++ ) { 44 | window[ keys[ i ] ] = QUnit[ keys[ i ] ]; 45 | } 46 | })(); 47 | 48 | window.QUnit = QUnit; 49 | } 50 | 51 | // For nodejs 52 | if ( typeof module !== "undefined" && module && module.exports ) { 53 | module.exports = QUnit; 54 | 55 | // For consistency with CommonJS environments' exports 56 | module.exports.QUnit = QUnit; 57 | } 58 | 59 | // For CommonJS with exports, but without module.exports, like Rhino 60 | if ( typeof exports !== "undefined" && exports ) { 61 | exports.QUnit = QUnit; 62 | } 63 | -------------------------------------------------------------------------------- /tests/js/forms/simple-phone-1.html: -------------------------------------------------------------------------------- 1 |
2 |
3 | 4 |
5 | Simple Form
6 | 7 | 8 | 9 |
10 | 12 | 13 | 14 |
15 | 16 | 17 |
18 | 20 | 21 | 22 |
23 | 24 |
25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 |
34 | 35 |
-------------------------------------------------------------------------------- /bower_components/moment/Moment.js.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Moment.js 5 | 2.8.4 6 | Tim Wood 7 | Cory Deppen, Iskren Chernev 8 | A lightweight javascript date library for parsing, manipulating, and formatting dates. 9 | 10 | - Add LTS localised format that includes seconds 11 | - Added formatToken 'x' for unix offset in milliseconds #1938 12 | - Support 24:00:00.000 to mean next day, at midnight. 13 | - Accept 'date' key when creating moment with object 14 | - Use native toISOString when we can 15 | - Some bugfixes and language improvements 16 | 17 | http://momentjs.com/ 18 | http://pbs.twimg.com/profile_images/482670411402858496/Xrtdc94q_normal.png 19 | https://raw.github.com/timrwood/moment/master/LICENSE 20 | JavaScript date time browser node.js 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /bower_components/jquery/src/ajax/script.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "../ajax" 4 | ], function( jQuery ) { 5 | 6 | // Install script dataType 7 | jQuery.ajaxSetup({ 8 | accepts: { 9 | script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" 10 | }, 11 | contents: { 12 | script: /(?:java|ecma)script/ 13 | }, 14 | converters: { 15 | "text script": function( text ) { 16 | jQuery.globalEval( text ); 17 | return text; 18 | } 19 | } 20 | }); 21 | 22 | // Handle cache's special case and crossDomain 23 | jQuery.ajaxPrefilter( "script", function( s ) { 24 | if ( s.cache === undefined ) { 25 | s.cache = false; 26 | } 27 | if ( s.crossDomain ) { 28 | s.type = "GET"; 29 | } 30 | }); 31 | 32 | // Bind script tag hack transport 33 | jQuery.ajaxTransport( "script", function( s ) { 34 | // This transport only deals with cross domain requests 35 | if ( s.crossDomain ) { 36 | var script, callback; 37 | return { 38 | send: function( _, complete ) { 39 | script = jQuery(" 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |

CCF JS Tests

19 |

20 |
21 |

22 |
    23 | 24 |
    25 | 26 |
    27 | 28 | 29 | 30 | 31 | 55 | 56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /wp-api/Gruntfile.js: -------------------------------------------------------------------------------- 1 | module.exports = function( grunt ) { 2 | 3 | 'use strict'; 4 | var banner = '/**\n * <%= pkg.homepage %>\n * Copyright (c) <%= grunt.template.today("yyyy") %>\n * This file is generated automatically. Do not edit.\n */\n'; 5 | require('phplint').gruntPlugin(grunt); 6 | // Project configuration 7 | grunt.initConfig( { 8 | 9 | pkg: grunt.file.readJSON( 'package.json' ), 10 | 11 | phpcs: { 12 | plugin: { 13 | src: './' 14 | }, 15 | options: { 16 | bin: "vendor/bin/phpcs --extensions=php --ignore=\"*/vendor/*,*/node_modules/*\"", 17 | standard: "phpcs.ruleset.xml" 18 | } 19 | }, 20 | 21 | phplint: { 22 | options: { 23 | limit: 10, 24 | stdout: true, 25 | stderr: true 26 | }, 27 | files: ['lib/**/*.php', 'tests/*.php', '*.php'] 28 | }, 29 | 30 | phpunit: { 31 | 'default': { 32 | cmd: 'phpunit', 33 | args: ['-c', 'phpunit.xml.dist'] 34 | }, 35 | 'multisite': { 36 | cmd: 'phpunit', 37 | args: ['-c', 'multisite.xml'] 38 | }, 39 | 'codecoverage': { 40 | cmd: 'phpunit', 41 | args: ['-c', 'codecoverage.xml'] 42 | } 43 | } 44 | 45 | } ); 46 | grunt.loadNpmTasks( 'grunt-phpcs' ); 47 | 48 | // Testing tasks. 49 | grunt.registerMultiTask('phpunit', 'Runs PHPUnit tests, including the ajax, external-http, and multisite tests.', function() { 50 | grunt.util.spawn({ 51 | cmd: this.data.cmd, 52 | args: this.data.args, 53 | opts: {stdio: 'inherit'} 54 | }, this.async()); 55 | }); 56 | 57 | grunt.registerTask( 'test', [ 'phpcs', 'phplint', 'phpunit:default', 'phpunit:multisite' ] ); 58 | grunt.util.linefeed = '\n'; 59 | 60 | // Travis CI tasks. 61 | grunt.registerTask('travis:phpvalidate', 'Runs PHPUnit Travis CI PHP code tasks.', [ 62 | 'phpcs', 63 | 'phplint' 64 | ] ); 65 | grunt.registerTask('travis:phpunit', 'Runs PHPUnit Travis CI tasks.', [ 66 | 'phpunit:default', 67 | 'phpunit:multisite' 68 | ] ); 69 | grunt.registerTask('travis:codecoverage', 'Runs PHPUnit Travis CI Code Coverage task.', [ 70 | 'phpunit:codecoverage', 71 | 'phpunit:multisite' 72 | ] ); 73 | }; 74 | -------------------------------------------------------------------------------- /wp-api/core/Gruntfile.js: -------------------------------------------------------------------------------- 1 | module.exports = function( grunt ) { 2 | 3 | 'use strict'; 4 | var banner = '/**\n * <%= pkg.homepage %>\n * Copyright (c) <%= grunt.template.today("yyyy") %>\n * This file is generated automatically. Do not edit.\n */\n'; 5 | require('phplint').gruntPlugin(grunt); 6 | // Project configuration 7 | grunt.initConfig( { 8 | 9 | pkg: grunt.file.readJSON( 'package.json' ), 10 | 11 | phpcs: { 12 | plugin: { 13 | src: './' 14 | }, 15 | options: { 16 | bin: "vendor/bin/phpcs --extensions=php --ignore=\"*/vendor/*,*/node_modules/*\"", 17 | standard: "phpcs.ruleset.xml" 18 | } 19 | }, 20 | 21 | phplint: { 22 | options: { 23 | limit: 10, 24 | stdout: true, 25 | stderr: true 26 | }, 27 | files: ['lib/**/*.php', 'tests/*.php', '*.php'] 28 | }, 29 | 30 | phpunit: { 31 | 'default': { 32 | cmd: 'phpunit', 33 | args: ['-c', 'phpunit.xml.dist'] 34 | }, 35 | 'multisite': { 36 | cmd: 'phpunit', 37 | args: ['-c', 'multisite.xml'] 38 | }, 39 | 'codecoverage': { 40 | cmd: 'phpunit', 41 | args: ['-c', 'codecoverage.xml'] 42 | } 43 | } 44 | 45 | } ); 46 | grunt.loadNpmTasks( 'grunt-phpcs' ); 47 | 48 | // Testing tasks. 49 | grunt.registerMultiTask('phpunit', 'Runs PHPUnit tests, including the ajax, external-http, and multisite tests.', function() { 50 | grunt.util.spawn({ 51 | cmd: this.data.cmd, 52 | args: this.data.args, 53 | opts: {stdio: 'inherit'} 54 | }, this.async()); 55 | }); 56 | 57 | grunt.registerTask( 'test', [ 'phpcs', 'phplint', 'phpunit:default', 'phpunit:multisite' ] ); 58 | grunt.util.linefeed = '\n'; 59 | 60 | // Travis CI tasks. 61 | grunt.registerTask('travis:phpvalidate', 'Runs PHPUnit Travis CI PHP code tasks.', [ 62 | 'phpcs', 63 | 'phplint' 64 | ] ); 65 | grunt.registerTask('travis:phpunit', 'Runs PHPUnit Travis CI tasks.', [ 66 | 'phpunit:default', 67 | 'phpunit:multisite' 68 | ] ); 69 | grunt.registerTask('travis:codecoverage', 'Runs PHPUnit Travis CI Code Coverage task.', [ 70 | 'phpunit:codecoverage', 71 | 'phpunit:multisite' 72 | ] ); 73 | }; 74 | -------------------------------------------------------------------------------- /wp-api/tests/bootstrap.php: -------------------------------------------------------------------------------- 1 | 'http://json-schema.org/draft-04/schema#', 13 | 'title' => 'type', 14 | 'type' => 'object', 15 | 'properties' => array( 16 | 'somestring' => array( 17 | 'type' => 'string', 18 | 'context' => array( 'view' ), 19 | ), 20 | 'someinteger' => array( 21 | 'type' => 'integer', 22 | 'context' => array( 'view' ), 23 | ), 24 | 'someboolean' => array( 25 | 'type' => 'boolean', 26 | 'context' => array( 'view' ), 27 | ), 28 | 'someurl' => array( 29 | 'type' => 'string', 30 | 'format' => 'uri', 31 | 'context' => array( 'view' ), 32 | ), 33 | 'somedate' => array( 34 | 'type' => 'string', 35 | 'format' => 'date-time', 36 | 'context' => array( 'view' ), 37 | ), 38 | 'someemail' => array( 39 | 'type' => 'string', 40 | 'format' => 'email', 41 | 'context' => array( 'view' ), 42 | ), 43 | 'someenum' => array( 44 | 'type' => 'string', 45 | 'enum' => array( 'a', 'b', 'c' ), 46 | 'context' => array( 'view' ), 47 | ), 48 | 'someargoptions' => array( 49 | 'type' => 'integer', 50 | 'required' => true, 51 | 'arg_options' => array( 52 | 'required' => false, 53 | 'sanitize_callback' => '__return_true', 54 | ), 55 | ), 56 | 'somedefault' => array( 57 | 'type' => 'string', 58 | 'enum' => array( 'a', 'b', 'c' ), 59 | 'context' => array( 'view' ), 60 | 'default' => 'a', 61 | ), 62 | ), 63 | ); 64 | 65 | return $schema; 66 | } 67 | 68 | } 69 | -------------------------------------------------------------------------------- /bower_components/jquery/src/css/defaultDisplay.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "../manipulation" // appendTo 4 | ], function( jQuery ) { 5 | 6 | var iframe, 7 | elemdisplay = {}; 8 | 9 | /** 10 | * Retrieve the actual display of a element 11 | * @param {String} name nodeName of the element 12 | * @param {Object} doc Document object 13 | */ 14 | // Called only from within defaultDisplay 15 | function actualDisplay( name, doc ) { 16 | var style, 17 | elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ), 18 | 19 | // getDefaultComputedStyle might be reliably used only on attached element 20 | display = window.getDefaultComputedStyle && ( style = window.getDefaultComputedStyle( elem[ 0 ] ) ) ? 21 | 22 | // Use of this method is a temporary fix (more like optimization) until something better comes along, 23 | // since it was removed from specification and supported only in FF 24 | style.display : jQuery.css( elem[ 0 ], "display" ); 25 | 26 | // We don't have any data stored on the element, 27 | // so use "detach" method as fast way to get rid of the element 28 | elem.detach(); 29 | 30 | return display; 31 | } 32 | 33 | /** 34 | * Try to determine the default display value of an element 35 | * @param {String} nodeName 36 | */ 37 | function defaultDisplay( nodeName ) { 38 | var doc = document, 39 | display = elemdisplay[ nodeName ]; 40 | 41 | if ( !display ) { 42 | display = actualDisplay( nodeName, doc ); 43 | 44 | // If the simple way fails, read from inside an iframe 45 | if ( display === "none" || !display ) { 46 | 47 | // Use the already-created iframe if possible 48 | iframe = (iframe || jQuery( "