Version Description
- Add Danish translation. Props KasperLK
- Wrap form completion message
- Fix jshint bugs
- Custom subject lines and user submitted subject lines
Download this release
Release Info
Developer | tlovett1 |
Plugin | Custom Contact Forms |
Version | 6.9.0 |
Comparing to | |
See all releases |
Code changes from version 6.8.2 to 6.9.0
- README.md +6 -0
- bin/production-ready.sh +0 -29
- build/js/form-manager.js +67 -8
- build/js/form-manager.min.js +2 -2
- build/js/form.min.js +1 -1
- classes/class-ccf-api.php +29 -0
- classes/class-ccf-form-handler.php +17 -5
- classes/class-ccf-form-manager.php +28 -0
- custom-contact-forms.php +1 -1
- js/form.js +5 -1
- js/manager/models.js +3 -0
- js/manager/views.js +64 -8
- languages/custom-contact-forms-da_DK.mo +0 -0
- languages/custom-contact-forms-da_DK.po +1425 -0
- languages/custom-contact-forms.mo +0 -0
- languages/custom-contact-forms.po +288 -257
- readme.txt +7 -1
README.md
CHANGED
@@ -71,6 +71,12 @@ Each form has a number of settings that you should understand.
|
|
71 |
Default` will use the default WordPress email address. `Custom Email` will allow you to manually type in a from
|
72 |
address. `Form Field` will allow you to choose an email field within the form to dynamically pull a from email
|
73 |
address.
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
|
75 |
|
76 |
|
71 |
Default` will use the default WordPress email address. `Custom Email` will allow you to manually type in a from
|
72 |
address. `Form Field` will allow you to choose an email field within the form to dynamically pull a from email
|
73 |
address.
|
74 |
+
* `"From" Name Type` - This allows you to set what name the notification email is sent from. `Custom Name`
|
75 |
+
will allow you to manually type in a from name. `Form Field` will allow you to choose a name field within
|
76 |
+
the form to dynamically pull a from email name.
|
77 |
+
* `Email Subject Type` - This allows you to set what subject line is used on the notification email. `Default`
|
78 |
+
will use the CCF default subject. `Custom Subject` will allow you to manually type in an email subject.
|
79 |
+
`Form Field` will allow you to choose a field within the form to dynamically pull a subject line.
|
80 |
|
81 |
|
82 |
|
bin/production-ready.sh
DELETED
@@ -1,29 +0,0 @@
|
|
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 |
-
rm -rf vendor/wp-api/wp-api/.git > /dev/null 2>&1
|
19 |
-
|
20 |
-
rm .travis.yml > /dev/null 2>&1
|
21 |
-
rm Gruntfile.js > /dev/null 2>&1
|
22 |
-
rm Dockunit.json > /dev/null 2>&1
|
23 |
-
rm phpunit.xml > /dev/null 2>&1
|
24 |
-
rm .jshintrc > /dev/null 2>&1
|
25 |
-
|
26 |
-
bower install --production > /dev/null 2>&1
|
27 |
-
|
28 |
-
echo "Done! Custom Contact Forms is cleaned up and production ready."
|
29 |
-
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build/js/form-manager.js
CHANGED
@@ -361,6 +361,9 @@
|
|
361 |
emailNotificationFromType: 'default',
|
362 |
emailNotificationFromAddress: '',
|
363 |
emailNotificationFromField: '',
|
|
|
|
|
|
|
364 |
emailNotificationFromNameType: 'custom',
|
365 |
emailNotificationFromName: 'WordPress',
|
366 |
emailNotificationFromNameField: '',
|
@@ -1783,7 +1786,8 @@
|
|
1783 |
'change select': 'save',
|
1784 |
'change select.form-send-email-notifications': 'toggleNotificationFields',
|
1785 |
'change select.form-email-notification-from-type': 'toggleNotificationFields',
|
1786 |
-
'change select.form-email-notification-from-name-type': 'toggleNotificationFields'
|
|
|
1787 |
},
|
1788 |
|
1789 |
initialize: function( options ) {
|
@@ -1802,21 +1806,28 @@
|
|
1802 |
emailNotificationFromField.innerHTML = '';
|
1803 |
emailNotificationFromField.disabled = false;
|
1804 |
|
|
|
|
|
|
|
|
|
1805 |
var emailNotificationFromNameField = this.el.querySelectorAll( '.form-email-notification-from-name-field' )[0];
|
1806 |
emailNotificationFromNameField.innerHTML = '';
|
1807 |
emailNotificationFromNameField.disabled = false;
|
1808 |
|
1809 |
-
var fields = this.model.get( 'fields'),
|
1810 |
addressFieldsAdded = 0,
|
1811 |
-
nameFieldsAdded = 0
|
|
|
1812 |
|
1813 |
var addressField = this.model.get( 'emailNotificationFromField' );
|
1814 |
-
var
|
|
|
|
|
1815 |
|
1816 |
if ( fields.length >= 1 ) {
|
1817 |
fields.each( function( field ) {
|
1818 |
if ( 'email' === field.get( 'type' ) ) {
|
1819 |
-
|
1820 |
option.innerHTML = field.get( 'slug' );
|
1821 |
option.value = field.get( 'slug' );
|
1822 |
|
@@ -1828,7 +1839,7 @@
|
|
1828 |
|
1829 |
addressFieldsAdded++;
|
1830 |
} else if ( 'name' === field.get( 'type' ) ) {
|
1831 |
-
|
1832 |
option.innerHTML = field.get( 'slug' );
|
1833 |
option.value = field.get( 'slug' );
|
1834 |
|
@@ -1839,23 +1850,44 @@
|
|
1839 |
emailNotificationFromNameField.appendChild( option );
|
1840 |
|
1841 |
nameFieldsAdded++;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1842 |
}
|
1843 |
});
|
1844 |
}
|
1845 |
|
1846 |
if ( 0 === addressFieldsAdded ) {
|
1847 |
-
|
1848 |
option.innerHTML = ccfSettings.noEmailFields;
|
1849 |
emailNotificationFromField.appendChild( option );
|
1850 |
emailNotificationFromField.disabled = true;
|
1851 |
}
|
1852 |
|
1853 |
if ( 0 === nameFieldsAdded ) {
|
1854 |
-
|
1855 |
option.innerHTML = ccfSettings.noNameFields;
|
1856 |
emailNotificationFromNameField.appendChild( option );
|
1857 |
emailNotificationFromNameField.disabled = true;
|
1858 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1859 |
},
|
1860 |
|
1861 |
toggleNotificationFields: function() {
|
@@ -1871,6 +1903,12 @@
|
|
1871 |
|
1872 |
var emailNotificationFromType = this.el.querySelectorAll( '.form-email-notification-from-type' )[0];
|
1873 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1874 |
var emailNotificationFromName = this.el.querySelectorAll( '.email-notification-from-name' )[0];
|
1875 |
|
1876 |
var emailNotificationFromNameField = this.el.querySelectorAll( '.email-notification-from-name-field' )[0];
|
@@ -1891,6 +1929,15 @@
|
|
1891 |
emailNotificationFromField.style.display = 'block';
|
1892 |
}
|
1893 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1894 |
emailNotificationFromName.style.display = 'none';
|
1895 |
emailNotificationFromNameField.style.display = 'none';
|
1896 |
|
@@ -1907,6 +1954,9 @@
|
|
1907 |
emailNotificationFromAddress.style.display = 'none';
|
1908 |
emailNotificationFromField.style.display = 'none';
|
1909 |
|
|
|
|
|
|
|
1910 |
emailNotificationFromName.style.display = 'none';
|
1911 |
emailNotificationFromNameField.style.display = 'none';
|
1912 |
}
|
@@ -1944,6 +1994,15 @@
|
|
1944 |
var emailNotificationFromNameField = this.el.querySelectorAll( '.form-email-notification-from-name-field' )[0].value;
|
1945 |
this.model.set( 'emailNotificationFromNameField', emailNotificationFromNameField );
|
1946 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1947 |
if ( typeof $promise !== 'undefined' && typeof $promise.promise !== 'undefined' ) {
|
1948 |
$promise.resolve();
|
1949 |
}
|
361 |
emailNotificationFromType: 'default',
|
362 |
emailNotificationFromAddress: '',
|
363 |
emailNotificationFromField: '',
|
364 |
+
emailNotificationSubjectType: 'default',
|
365 |
+
emailNotificationSubject: '',
|
366 |
+
emailNotificationSubjectField: '',
|
367 |
emailNotificationFromNameType: 'custom',
|
368 |
emailNotificationFromName: 'WordPress',
|
369 |
emailNotificationFromNameField: '',
|
1786 |
'change select': 'save',
|
1787 |
'change select.form-send-email-notifications': 'toggleNotificationFields',
|
1788 |
'change select.form-email-notification-from-type': 'toggleNotificationFields',
|
1789 |
+
'change select.form-email-notification-from-name-type': 'toggleNotificationFields',
|
1790 |
+
'change select.form-email-notification-subject-type': 'toggleNotificationFields'
|
1791 |
},
|
1792 |
|
1793 |
initialize: function( options ) {
|
1806 |
emailNotificationFromField.innerHTML = '';
|
1807 |
emailNotificationFromField.disabled = false;
|
1808 |
|
1809 |
+
var emailNotificationSubjectField = this.el.querySelectorAll( '.form-email-notification-subject-field' )[0];
|
1810 |
+
emailNotificationSubjectField.innerHTML = '';
|
1811 |
+
emailNotificationSubjectField.disabled = false;
|
1812 |
+
|
1813 |
var emailNotificationFromNameField = this.el.querySelectorAll( '.form-email-notification-from-name-field' )[0];
|
1814 |
emailNotificationFromNameField.innerHTML = '';
|
1815 |
emailNotificationFromNameField.disabled = false;
|
1816 |
|
1817 |
+
var fields = this.model.get( 'fields' ),
|
1818 |
addressFieldsAdded = 0,
|
1819 |
+
nameFieldsAdded = 0,
|
1820 |
+
subjectFieldsAdded = 0;
|
1821 |
|
1822 |
var addressField = this.model.get( 'emailNotificationFromField' );
|
1823 |
+
var subjectField = this.model.get( 'emailNotificationSubjectField' );
|
1824 |
+
var nameField = this.model.get( 'emailNotificationFromNameField' ),
|
1825 |
+
option;
|
1826 |
|
1827 |
if ( fields.length >= 1 ) {
|
1828 |
fields.each( function( field ) {
|
1829 |
if ( 'email' === field.get( 'type' ) ) {
|
1830 |
+
option = document.createElement( 'option' );
|
1831 |
option.innerHTML = field.get( 'slug' );
|
1832 |
option.value = field.get( 'slug' );
|
1833 |
|
1839 |
|
1840 |
addressFieldsAdded++;
|
1841 |
} else if ( 'name' === field.get( 'type' ) ) {
|
1842 |
+
option = document.createElement( 'option' );
|
1843 |
option.innerHTML = field.get( 'slug' );
|
1844 |
option.value = field.get( 'slug' );
|
1845 |
|
1850 |
emailNotificationFromNameField.appendChild( option );
|
1851 |
|
1852 |
nameFieldsAdded++;
|
1853 |
+
} else if ( 'single-line-text' === field.get( 'type' ) ) {
|
1854 |
+
// @Todo: add more applicable fields
|
1855 |
+
|
1856 |
+
option = document.createElement( 'option' );
|
1857 |
+
option.innerHTML = field.get( 'slug' );
|
1858 |
+
option.value = field.get( 'slug' );
|
1859 |
+
|
1860 |
+
if ( field.get( 'slug' ) === subjectField ) {
|
1861 |
+
option.selected = true;
|
1862 |
+
}
|
1863 |
+
|
1864 |
+
emailNotificationSubjectField.appendChild( option );
|
1865 |
+
|
1866 |
+
subjectFieldsAdded++;
|
1867 |
}
|
1868 |
});
|
1869 |
}
|
1870 |
|
1871 |
if ( 0 === addressFieldsAdded ) {
|
1872 |
+
option = document.createElement( 'option' );
|
1873 |
option.innerHTML = ccfSettings.noEmailFields;
|
1874 |
emailNotificationFromField.appendChild( option );
|
1875 |
emailNotificationFromField.disabled = true;
|
1876 |
}
|
1877 |
|
1878 |
if ( 0 === nameFieldsAdded ) {
|
1879 |
+
option = document.createElement( 'option' );
|
1880 |
option.innerHTML = ccfSettings.noNameFields;
|
1881 |
emailNotificationFromNameField.appendChild( option );
|
1882 |
emailNotificationFromNameField.disabled = true;
|
1883 |
}
|
1884 |
+
|
1885 |
+
if ( 0 === subjectFieldsAdded ) {
|
1886 |
+
option = document.createElement( 'option' );
|
1887 |
+
option.innerHTML = ccfSettings.noApplicableFields;
|
1888 |
+
emailNotificationSubjectField.appendChild( option );
|
1889 |
+
emailNotificationSubjectField.disabled = true;
|
1890 |
+
}
|
1891 |
},
|
1892 |
|
1893 |
toggleNotificationFields: function() {
|
1903 |
|
1904 |
var emailNotificationFromType = this.el.querySelectorAll( '.form-email-notification-from-type' )[0];
|
1905 |
|
1906 |
+
var emailNotificationSubject = this.el.querySelectorAll( '.email-notification-subject' )[0];
|
1907 |
+
|
1908 |
+
var emailNotificationSubjectField = this.el.querySelectorAll( '.email-notification-subject-field' )[0];
|
1909 |
+
|
1910 |
+
var emailNotificationSubjectType = this.el.querySelectorAll( '.form-email-notification-subject-type' )[0];
|
1911 |
+
|
1912 |
var emailNotificationFromName = this.el.querySelectorAll( '.email-notification-from-name' )[0];
|
1913 |
|
1914 |
var emailNotificationFromNameField = this.el.querySelectorAll( '.email-notification-from-name-field' )[0];
|
1929 |
emailNotificationFromField.style.display = 'block';
|
1930 |
}
|
1931 |
|
1932 |
+
emailNotificationSubject.style.display = 'none';
|
1933 |
+
emailNotificationSubjectField.style.display = 'none';
|
1934 |
+
|
1935 |
+
if ( 'custom' === emailNotificationSubjectType.value ) {
|
1936 |
+
emailNotificationSubject.style.display = 'block';
|
1937 |
+
} else if ( 'field' === emailNotificationSubjectType.value ) {
|
1938 |
+
emailNotificationSubjectField.style.display = 'block';
|
1939 |
+
}
|
1940 |
+
|
1941 |
emailNotificationFromName.style.display = 'none';
|
1942 |
emailNotificationFromNameField.style.display = 'none';
|
1943 |
|
1954 |
emailNotificationFromAddress.style.display = 'none';
|
1955 |
emailNotificationFromField.style.display = 'none';
|
1956 |
|
1957 |
+
emailNotificationSubject.style.display = 'none';
|
1958 |
+
emailNotificationSubjectField.style.display = 'none';
|
1959 |
+
|
1960 |
emailNotificationFromName.style.display = 'none';
|
1961 |
emailNotificationFromNameField.style.display = 'none';
|
1962 |
}
|
1994 |
var emailNotificationFromNameField = this.el.querySelectorAll( '.form-email-notification-from-name-field' )[0].value;
|
1995 |
this.model.set( 'emailNotificationFromNameField', emailNotificationFromNameField );
|
1996 |
|
1997 |
+
var emailNotificationSubjectType = this.el.querySelectorAll( '.form-email-notification-subject-type' )[0].value;
|
1998 |
+
this.model.set( 'emailNotificationSubjectType', emailNotificationSubjectType );
|
1999 |
+
|
2000 |
+
var emailNotificationSubject = this.el.querySelectorAll( '.form-email-notification-subject' )[0].value;
|
2001 |
+
this.model.set( 'emailNotificationSubject', emailNotificationSubject );
|
2002 |
+
|
2003 |
+
var emailNotificationSubjectField = this.el.querySelectorAll( '.form-email-notification-subject-field' )[0].value;
|
2004 |
+
this.model.set( 'emailNotificationSubjectField', emailNotificationSubjectField );
|
2005 |
+
|
2006 |
if ( typeof $promise !== 'undefined' && typeof $promise.promise !== 'undefined' ) {
|
2007 |
$promise.resolve();
|
2008 |
}
|
build/js/form-manager.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
(function(e,t,i,l){"use strict";window.wp=window.wp||{},wp.ccf=wp.ccf||{},wp.ccf.utils=wp.ccf.utils||{},wp.ccf.utils.cleanDateFields=function(e){delete e.date,delete e.date_gmt,delete e.modified,delete e.modified_gmt,delete e.date_tz,delete e.modified_tz},wp.ccf.utils.template=i.memoize(function(e){var t={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g};return i.template(document.getElementById(e).innerHTML,null,t)}),wp.ccf.utils.insertFormShortcode=function(e){var t=wp.ccf.forms.findWhere({ID:e.get("ID")});t||wp.ccf.forms.add(e);var i=tinymce.get(wpActiveEditor),l='[ccf_form id="'+e.get("ID")+'"]';i&&!i.isHidden()?tinymce.activeEditor.execCommand("mceInsertContent",!1,l):document.getElementById(wpActiveEditor).value+=l},wp.ccf.utils.getPrettyPostDate=function(e){return e=moment.utc(e),l.gmtOffset&&(e=e.utcOffset(60*parseInt(l.gmtOffset))),e.format("h:mm a M/D/YYYY")},wp.ccf.utils.wordChop=function(e,t){var i=e.substr(0,t);return i.substr(0,Math.min(i.length,i.lastIndexOf(" "))),i.length<e.length&&(i+="..."),i},wp.ccf.utils.isFieldDate=function(e){return e.date!==void 0||e.hour!==void 0&&e.minute!==void 0&&e["am-pm"]!==void 0?!0:!1},wp.ccf.utils.isFieldName=function(e){return e.name!==void 0||e.last!==void 0?!0:!1},wp.ccf.utils.isFieldEmailConfirm=function(e){return e.email!==void 0||e.confirm!==void 0?!0:!1},wp.ccf.utils.isFieldAddress=function(e){return e.street!==void 0&&e.city!==void 0&&e.zipcode!==void 0&&e.line_two!==void 0?!0:!1},wp.ccf.utils.isFieldFile=function(e){return e.id!==void 0&&e.url!==void 0&&e.file_name!==void 0?!0:!1},wp.ccf.utils.getPrettyFieldEmailConfirm=function(e){return e.email?e.email:e.confirm?e.confirm:"-"},wp.ccf.utils.getPrettyFieldDate=function(e){var t="",i="";if(e.hour&&e.minute&&e["am-pm"]&&(t+=e.hour+":"+e.minute+" "+e["am-pm"]),e.date&&(t+=" "+e.date),!t)return"-";var s=moment.utc(t);return s.isValid()?(e.hour&&e.minute&&e["am-pm"]&&(i+=s.format("h:mm a")),e.date&&(i&&(i+=" "),i+=s.format("M/D/YYYY")),i):l.invalidDate},wp.ccf.utils.getPrettyFieldName=function(e){var t=e.first;return t.length>0&&(t+=" "),e.last&&(t+=e.last),t||(t="-"),t},wp.ccf.utils.getPrettyFieldAddress=function(e){if(!e.street||!e.city)return"-";var t=e.street;return e.line_two&&(t+=" "+e.line_two),t+=", "+e.city,e.state&&(t+=", "+e.state),e.zipcode&&(t+=" "+e.zipcode),e.country&&(t+=" "+e.country),t}})(jQuery,Backbone,_,ccfSettings),function(e,t,i){"use strict";wp.ccf.mixins=wp.ccf.mixins||{},wp.ccf.mixins.subViewable=wp.ccf.mixins.subViewable||{subViews:{},initRenderSubViews:function(e,t,l){this.renderedSubViews||(this.renderedSubViews={});for(var s in this.subViews){var c={el:this.$el.find(".ccf-"+s),parent:this};l&&i.extend(c,l),this.renderedSubViews[s]&&this.renderedSubViews[s].destroy&&this.renderedSubViews[s].destroy(),(t||!this.renderedSubViews[s])&&(this.renderedSubViews[s]=new this.subViews[s](c)),this.renderedSubViews[s].render(),e&&(this.renderedSubViews[s].el.style.display="block")}return this},showView:function(e,t,i){if(this.renderedSubViews!==void 0&&this.renderedSubViews[e]!==void 0){var l=this.renderedSubViews[e];i||l.render(t),l.el.style.display="block",this.currentView=e;for(var s in this.subViews)s!==e&&(this.renderedSubViews[s].el.style.display="none")}}}}(jQuery,Backbone,_,ccfSettings),function(e,t,i,l,s){"use strict";wp.ccf.models=wp.ccf.models||{},wp.ccf.models.Fields=wp.ccf.models.Fields||{};var c=function(e,i,l){return"object"!=typeof i&&""===i&&(i=""),t.Model.prototype.set.call(this,e,i,l)},r=function(e,t,i){return i=i||{},i.emulateHTTP=!0,this.constructor.__super__.sync.call(this,e,t,i)},o=function(e){for(var t in this.attributes)if(-1===i.indexOf(e,t)){var l=this.get(t);"string"==typeof l&&""!==l&&(l=(l+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/“/g,"”").replace(/”/g,"”").replace(/‘/g,"‘").replace(/&/g,"&").replace(/'/g,"'"),this.set(t,l))}return this};wp.ccf.models.FieldChoice=wp.ccf.models.FieldChoice||t.Model.extend({defaults:{label:"",value:"",selected:!1},decode:function(){return o.call(this,[])},set:c}),wp.ccf.models.Form=wp.ccf.models.Form||wp.api.models.Post.extend({urlRoot:s.root+"/ccf/forms",set:c,sync:r,initialize:function(){this.on("sync",this.decode,this)},defaults:function(){var e={fields:new wp.ccf.collections.Fields,type:"ccf_form",status:"publish",description:"",buttonText:"Submit Form",completionActionType:"text",completionRedirectUrl:"",completionMessage:"",sendEmailNotifications:!1,emailNotificationAddresses:l.adminEmail,emailNotificationFromType:"default",emailNotificationFromAddress:"",emailNotificationFromField:"",emailNotificationFromNameType:"custom",emailNotificationFromName:"WordPress",emailNotificationFromNameField:"",pause:!1,pauseMessage:l.pauseMessage};return e=i.defaults(e,this.constructor.__super__.defaults),wp.ccf.utils.cleanDateFields(e),e},decode:function(){var e=i.keys(wp.api.models.Post.prototype.defaults);return e=i.without(e,"title"),o.call(this,e)},getFieldSlugs:function(e){var t=wp.ccf.currentForm.get("fields"),i=[];return t.each(function(t){e&&t.isImmutable||i.push(t.get("slug"))}),i},parse:function(e){var t=this;if(e.fields){var l=t.get("fields");if(l&&l.length>0){for(var s=0;e.fields.length>s;s++){var c=e.fields[s],r=l.findWhere({slug:c.slug});if(r){if(c.choices!==void 0){var o=t.get("choices");if(o&&o.length>0)for(var n=0;c.choices>n;n++){var a=o.at(n);a.set(c.choices[n]),a.decode()}delete e.fields[s].choices}r.set(c),r.decode()}}delete e.fields}else{var d=[];i.each(e.fields,function(e){var t=new wp.ccf.models.Fields[e.type](e);t.decode(),d.push(t)}),e.fields=new wp.ccf.collections.Fields(d,{formId:e.ID})}}return this.constructor.__super__.parse.call(this,e)},toJSON:function(){var e=this.constructor.__super__.toJSON.call(this);return e.fields&&(e.fields=e.fields.toJSON()),e.author&&(e.author=e.author.toJSON()),e}}),wp.ccf.models.Submission=wp.api.models.Submission||wp.api.models.Post.extend({idAttribute:"ID",defaults:{ID:null,data:{}},sync:r}),wp.ccf.models.Field=wp.api.models.Field||wp.api.models.Post.extend({idAttribute:"ID",defaults:{ID:null},set:c,required:function(){return["slug"]},decode:function(){return o.call(this,i.keys(wp.api.models.Post.prototype.defaults))},hasRequiredAttributes:function(){var e=this,t=!0;return i.each(this.required(),function(i){(e.get(i)===void 0||""===e.get(i))&&(t=!1)}),t},sync:r}),wp.ccf.models.StandardField=wp.ccf.models.StandardField||wp.ccf.models.Field.extend({idAttribute:"ID",defaults:function(){var e={label:l.fieldLabel,value:"",placeholder:"",slug:"",type:"",required:!1,className:"",description:""};return i.defaults(e,this.constructor.__super__.defaults)}}),wp.ccf.models.Fields["single-line-text"]=wp.ccf.models.Fields["single-line-text"]||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"single-line-text"};return i.defaults(e,this.constructor.__super__.defaults())}}),wp.ccf.models.Fields.file=wp.ccf.models.Fields.file||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"file",fileExtensions:"",maxFileSize:l.maxFileSize};return i.defaults(e,this.constructor.__super__.defaults())}}),wp.ccf.models.Fields["paragraph-text"]=wp.ccf.models.Fields["paragraph-text"]||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"paragraph-text"};return i.defaults(e,this.constructor.__super__.defaults())}}),wp.ccf.models.Fields.hidden=wp.ccf.models.Fields.hidden||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"hidden"};return i.defaults(e,this.constructor.__super__.defaults())}}),wp.ccf.models.Fields.email=wp.ccf.models.Fields.email||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"email",emailConfirmation:!1};return i.defaults(e,this.constructor.__super__.defaults())}}),wp.ccf.models.Fields.website=wp.ccf.models.Fields.website||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"website",placeholder:"http://"};return i.defaults(e,this.constructor.__super__.defaults())}}),wp.ccf.models.Fields.phone=wp.ccf.models.Fields.phone||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"phone",phoneFormat:"us"};return i.defaults(e,this.constructor.__super__.defaults())}}),wp.ccf.models.Fields.date=wp.ccf.models.Fields.date||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"date",showDate:!0,showTime:!0};return i.defaults(e,this.constructor.__super__.defaults())}}),wp.ccf.models.Fields.name=wp.ccf.models.Fields.name||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"name"};return i.defaults(e,this.constructor.__super__.defaults())}}),wp.ccf.models.Fields.recaptcha=wp.ccf.models.Fields.recaptcha||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"recaptcha",siteKey:"",secretKey:""};return i.defaults(e,this.constructor.__super__.defaults())},required:function(){return["siteKey","secretKey"]},isImmutable:!0}),wp.ccf.models.Fields.address=wp.ccf.models.Fields.address||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"address",addressType:"us"};return i.defaults(e,this.constructor.__super__.defaults())}}),wp.ccf.models.Fields["section-header"]=wp.ccf.models.Fields["section-header"]||wp.ccf.models.Field.extend({defaults:function(){var e={type:"section-header",slug:"",heading:"",subheading:"",className:""};return i.defaults(e,this.constructor.__super__.defaults)},required:function(){return[]},isImmutable:!0}),wp.ccf.models.Fields.html=wp.ccf.models.Fields.html||wp.ccf.models.Field.extend({defaults:function(){var e={type:"html",slug:"",html:"",className:""};return i.defaults(e,this.constructor.__super__.defaults)},required:function(){return[]},isImmutable:!0}),wp.ccf.models.ChoiceableField=wp.ccf.models.ChoiceableField||wp.ccf.models.StandardField.extend({defaults:function(){var e={choices:new wp.ccf.collections.FieldChoices};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(e){if("object"==typeof e&&e.choices){var t=[];i.each(e.choices,function(e){var i=new wp.ccf.models.FieldChoice(e);i.decode(),t.push(i)}),this.set("choices",new wp.ccf.collections.FieldChoices(t))}}}),wp.ccf.models.Fields.radio=wp.ccf.models.Fields.radio||wp.ccf.models.ChoiceableField.extend({defaults:function(){var e={type:"radio"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.checkboxes=wp.ccf.models.Fields.checkboxes||wp.ccf.models.ChoiceableField.extend({defaults:function(){var e={type:"checkboxes"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.dropdown=wp.ccf.models.Fields.dropdown||wp.ccf.models.ChoiceableField.extend({defaults:function(){var e={type:"dropdown"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}})}(jQuery,Backbone,_,ccfSettings,WP_API_Settings),function(e,t,i){"use strict";var l=function(e,t,i){return i=i||{},i.emulateHTTP=!0,this.constructor.__super__.sync.call(this,e,t,i)};wp.ccf.collections=wp.ccf.collections||{},wp.ccf.collections.Forms=wp.ccf.collections.Forms||wp.api.collections.Posts.extend({model:wp.ccf.models.Form,url:WP_API_Settings.root+"/ccf/forms",formsFetching:{},initialize:function(){this.constructor.__super__.initialize(),this.formsFetching={}},sync:l,remove:function(e,t){t=t||{};var l=this.constructor.__super__.remove.call(this,e,t);return t.destroy&&(e instanceof Array?i.each(e,function(e){e.destroy()}):e.destroy()),l}}),wp.ccf.collections.Fields=wp.ccf.collections.Fields||wp.api.collections.Posts.extend({model:wp.ccf.models.Field,url:function(){return WP_API_Settings.root+"/ccf/forms/"+this.formId+"/fields"},initialize:function(e,t){t&&t.formId&&(this.formId=t.formId)},sync:l}),wp.ccf.collections.Submissions=wp.ccf.collections.Submissions||wp.api.collections.Posts.extend({model:wp.ccf.models.Submission,url:function(){return WP_API_Settings.root+"/ccf/forms/"+this.formId+"/submissions"},initialize:function(e,t){this.constructor.__super__.initialize.apply(this,arguments),t&&t.formId&&(this.formId=t.formId)},sync:l}),wp.ccf.collections.FieldChoices=wp.ccf.collections.FieldChoices||t.Collection.extend({model:wp.ccf.models.FieldChoice})}(jQuery,Backbone,_,ccfSettings),function(e,t,i,l){"use strict";wp.ccf.views=wp.ccf.views||{},wp.ccf.views.Fields=wp.ccf.views.Fields||{},wp.ccf.views.FieldChoice=t.View.extend({template:wp.ccf.utils.template("ccf-field-choice-template"),className:"choice",events:{"click .add":"triggerAdd","click .delete":"triggerDelete","blur input":"saveChoice",saveChoice:"saveChoice",sorted:"triggerUpdateSort"},initialize:function(e){this.field=e.field},destroy:function(){wp.ccf.dispatcher.off("mainViewChange",this.saveChoice),this.unbind()},triggerUpdateSort:function(e,t){this.field.get("choices").remove(this.model,{silent:!0}),this.field.get("choices").add(this.model,{at:t,silent:!0})},saveChoice:function(){if(""!==this.el.innerHTML){var e=this.el.querySelectorAll(".choice-label")[0].value,t=this.el.querySelectorAll(".choice-value")[0].value;this.model.set("label",e),this.model.set("value",t);var i=this.el.querySelectorAll(".choice-selected")[0],l=i.checked?!0:!1;return this.model.set("selected",l),this}},render:function(){var e={};return this.model&&(e.choice=this.model.toJSON()),this.el.innerHTML=this.template(e),wp.ccf.dispatcher.on("mainViewChange",this.saveChoice,this),this},triggerAdd:function(){this.field.get("choices").add(new wp.ccf.models.FieldChoice)},triggerDelete:function(){var e=this.field.get("choices");if(e.length>1)e.remove(this.model),this.destroy(),this.remove();else{for(var t=this.el.querySelectorAll(".choice-label, .choice-value"),i=this.el.querySelectorAll(".choice-selected"),l=0;t.length>l;l++)t[l].value="";i[0].checked=!1}}}),wp.ccf.views.FieldBase=wp.ccf.views.FieldBase||t.View.extend({events:{"blur input":"saveField","blur input.field-slug":"checkSlug","blur textarea":"saveField","change select":"saveField",'change input[type="checkbox"]':"saveField"},checkSlug:function(){var e=this.el.querySelectorAll(".field-slug");if(e.length>0){var t=e[0],i=!1;t.parentNode.className=t.value&&!t.value.match(/^[a-zA-Z0-9\-_]+$/)?t.parentNode.className.replace(/ field-error/i,"")+" field-error":t.parentNode.className.replace(/ field-error/i,""),this.collection.length>0&&""!==t.value?(this.collection.each(function(e){e!==this.model&&t.value===e.get("slug")&&(i=!0)},this),t.parentNode.className=i?t.parentNode.className.replace(/ field-duplicate-slug/i,"")+" field-duplicate-slug":t.parentNode.className.replace(/ field-duplicate-slug/i,"")):t.parentNode.className=t.parentNode.className.replace(/ field-duplicate-slug/i,"")}},destroy:function(){this.unbind()},render:function(){return this.el.innerHTML=this.template({field:this.model.toJSON()}),this.checkSlug(),this}}),wp.ccf.views.Fields["single-line-text"]=wp.ccf.views.Fields["single-line-text"]||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-single-line-text-template"),initialize:function(){},saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("value",this.el.querySelectorAll(".field-value")[0].value),this.model.set("placeholder",this.el.querySelectorAll(".field-placeholder")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this):void 0}}),wp.ccf.views.Fields.file=wp.ccf.views.Fields.file||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-file-template"),initialize:function(){},saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this.model.set("fileExtensions",this.el.querySelectorAll(".field-file-extensions")[0].value),this.model.set("maxFileSize",this.el.querySelectorAll(".field-max-file-size")[0].value),this):void 0}}),wp.ccf.views.Fields.recaptcha=wp.ccf.views.Fields.recaptcha||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-recaptcha-template"),initialize:function(){},saveField:function(){return""!==this.el.innerHTML?(this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("siteKey",this.el.querySelectorAll(".field-site-key")[0].value),this.model.set("secretKey",this.el.querySelectorAll(".field-secret-key")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this):void 0}}),wp.ccf.views.Fields["section-header"]=wp.ccf.views.Fields["section-header"]||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-section-header-template"),initialize:function(){},saveField:function(){return""!==this.el.innerHTML?(this.model.set("heading",this.el.querySelectorAll(".field-heading")[0].value),this.model.set("subheading",this.el.querySelectorAll(".field-subheading")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this):void 0}}),wp.ccf.views.Fields.html=wp.ccf.views.Fields.html||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-html-template"),initialize:function(){},saveField:function(){return""!==this.el.innerHTML?(this.model.set("html",this.el.querySelectorAll(".field-html")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this):void 0}}),wp.ccf.views.Fields["paragraph-text"]=wp.ccf.views.Fields["paragraph-text"]||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-paragraph-text-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("value",this.el.querySelectorAll(".field-value")[0].value),this.model.set("placeholder",this.el.querySelectorAll(".field-placeholder")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this):void 0}}),wp.ccf.views.Fields.hidden=wp.ccf.views.Fields.hidden||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-hidden-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("value",this.el.querySelectorAll(".field-value")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this):void 0}}),wp.ccf.views.Fields.date=wp.ccf.views.Fields.date||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-date-template"),saveField:function(){if(""!==this.el.innerHTML){this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value);var e=this.el.querySelectorAll(".field-value");e.length>0&&this.model.set("value",e[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("showDate",this.el.querySelectorAll(".field-show-date")[0].checked?!0:!1);var t=this.model.get("showTime"),i=this.el.querySelectorAll(".field-show-time")[0].checked?!0:!1;return this.model.set("showTime",i),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),i!=t&&this.render(),this}}}),wp.ccf.views.Fields.name=wp.ccf.views.Fields.name||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-name-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this):void 0}}),wp.ccf.views.Fields.website=wp.ccf.views.Fields.website||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-website-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("value",this.el.querySelectorAll(".field-value")[0].value),this.model.set("placeholder",this.el.querySelectorAll(".field-placeholder")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this):void 0}}),wp.ccf.views.Fields.phone=wp.ccf.views.Fields.phone||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-phone-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("value",this.el.querySelectorAll(".field-value")[0].value),this.model.set("placeholder",this.el.querySelectorAll(".field-placeholder")[0].value),this.model.set("phoneFormat",this.el.querySelectorAll(".field-phone-format")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this):void 0}}),wp.ccf.views.Fields.address=wp.ccf.views.Fields.address||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-address-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("addressType",this.el.querySelectorAll(".field-address-type")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this):void 0}}),wp.ccf.views.Fields.email=wp.ccf.views.Fields.email||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-email-template"),saveField:function(){if(""!==this.el.innerHTML){this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value);var e=this.el.querySelectorAll(".field-value");e.length&&this.model.set("value",e[0].value);var t=this.el.querySelectorAll(".field-placeholder");t.length&&this.model.set("placeholder",t[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1);var i=1==this.el.querySelectorAll(".field-email-confirmation")[0].value?!0:!1,l=this.model.get("emailConfirmation");return this.model.set("emailConfirmation",i),l!=i&&this.render(),this}}}),wp.ccf.views.ChoiceableField=wp.ccf.views.ChoiceableField||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-dropdown-template"),initialize:function(){var e=this.model.get("choices");this.listenTo(e,"add",this.addChoice)},addChoice:function(e){var t=new wp.ccf.views.FieldChoice({model:e,field:this.model}).render(),i=this.el.querySelectorAll(".repeatable-choices")[0];i.appendChild(t.el)},saveField:function(){if(""!==this.el.innerHTML){this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1);var t=this.el.querySelectorAll(".repeatable-choices")[0].querySelectorAll(".choice");return i.each(t,function(t){e(t).trigger("saveChoice")}),this}},render:function(){var t=this;t.el.innerHTML=t.template({field:t.model.toJSON()}),t.checkSlug();var i=t.model.get("choices"),l=this.el.querySelectorAll(".repeatable-choices")[0];if(i.length>=1)i.each(function(e){var i=new wp.ccf.views.FieldChoice({model:e,field:t.model}).render();l.appendChild(i.el)});else{var s=new wp.ccf.models.FieldChoice;i.add(s)}return l=this.el.querySelectorAll(".repeatable-choices")[0],e(l).sortable({handle:".move",axis:"y",stop:function(e,t){t.item.trigger("sorted",t.item.index())}}),t}}),wp.ccf.views.Fields.dropdown=wp.ccf.views.Fields.dropdown||wp.ccf.views.ChoiceableField.extend({template:wp.ccf.utils.template("ccf-dropdown-template"),events:function(){return this.constructor.__super__.events}}),wp.ccf.views.Fields.radio=wp.ccf.views.Fields.radio||wp.ccf.views.ChoiceableField.extend({template:wp.ccf.utils.template("ccf-radio-template"),events:function(){return this.constructor.__super__.events}}),wp.ccf.views.Fields.checkboxes=wp.ccf.views.Fields.checkboxes||wp.ccf.views.ChoiceableField.extend({template:wp.ccf.utils.template("ccf-checkboxes-template"),events:function(){return this.constructor.__super__.events}}),wp.ccf.views.FieldSidebar=wp.ccf.views.FieldSidebar||t.View.extend({initialize:function(e){this.currentFieldView=null,this.form=e.form},save:function(e){this.currentFieldView&&""!==this.currentFieldView.el.innerHTML&&this.currentFieldView.saveField(),e&&e instanceof Object&&e.resolve()},fieldRemoved:function(){this.currentFieldView&&(this.form.get("fields").get(this.currentFieldView.model)||this.render())},destroy:function(){wp.ccf.dispatcher.off("saveField",this.save),wp.ccf.dispatcher.off("mainViewChange",this.save),this.unbind()},render:function(e){var t={};if(e){var i=e.get("type");this.currentFieldView&&(this.currentFieldView.saveField(),this.currentFieldView.destroy&&this.currentFieldView.destroy()),this.currentFieldView=new wp.ccf.views.Fields[i]({model:e,collection:this.form.get("fields")}),this.currentFieldView.render(),this.el.innerHTML="",this.el.appendChild(this.currentFieldView.el);var l=this.form.get("fields");this.listenTo(l,"remove",this.fieldRemoved)}else{var s=wp.ccf.utils.template("ccf-empty-field-template");this.el.innerHTML=s(t)}return wp.ccf.dispatcher.on("saveField",this.save,this),wp.ccf.dispatcher.on("mainViewChange",this.save,this),this}}),wp.ccf.views.FieldRowPlaceholder=wp.ccf.views.FieldRowPlaceholder||t.View.extend({template:wp.ccf.utils.template("ccf-field-row-template"),tagName:"div",className:"field",initialize:function(e){this.type=e.type},render:function(){return this.el.innerHTML=this.template({label:l.allLabels[this.type]}),this.el.setAttribute("data-field-type",this.type),this.el.className+=" "+this.type,this}}),wp.ccf.views.FieldRow=wp.ccf.views.FieldRow||t.View.extend({template:wp.ccf.utils.template("ccf-field-row-template"),tagName:"div",className:"field",events:{"click .delete":"triggerDelete","click h4":"triggerEdit",sorted:"triggerUpdateSort"},initialize:function(e){i.bindAll(this,"triggerDelete"),this.form=e.form,this.listenTo(this.model,"change",this.handleChange,this),this.listenTo(this.model,"requirementsNotMet",this.requirementsNotMet,this),this.listenTo(this.model,"requirementsMet",this.requirementsMet,this),this.listenTo(this.model,"duplicateSlug",this.duplicateSlug,this),this.model.attributes.choices&&this.listenTo(this.model.attributes.choices,"change",this.handleChange,this)},duplicateSlug:function(){this.requirementsMet(),this.el.className+=" field-duplicate-slug"},requirementsNotMet:function(){this.requirementsMet(),this.el.className+=" field-incomplete"},requirementsMet:function(){this.el.className=this.el.className.replace(/(field-incomplete|field-duplicate-slug)/i,"")},triggerUpdateSort:function(e,t){this.form.get("fields").remove(this.model),this.form.get("fields").add(this.model,{at:t})},handleChange:function(){this.render()},triggerDelete:function(e){e.stopPropagation(),this.form.get("fields").remove(this.model),this.undelegateEvents(),this.remove()},triggerEdit:function(){var e=this.el.parentNode.querySelectorAll(".ccf-editing");i.each(e,function(e){e.className=e.className.replace(/ccf-editing/i,"")}),this.el.className=this.el.className.replace(/ccf-editing/i,"")+" ccf-editing",wp.ccf.dispatcher.trigger("openEditField",this.model)},render:function(e){this.el.innerHTML=this.template({label:l.allLabels[this.model.get("type")]}),this.el.setAttribute("data-field-type",this.model.get("type"));var t=RegExp(" "+this.model.get("type"),"i");this.el.className=this.el.className.replace(t,"")+" "+this.model.get("type"),e&&(this.el.className=this.el.className.replace(/ instantiated/i,"")+" instantiated");var i=document.getElementById("ccf-"+this.model.get("type")+"-preview-template");if(i){var s=this.el.querySelectorAll(".preview")[0];s.style.display="block",s.innerHTML=wp.ccf.utils.template("ccf-"+this.model.get("type")+"-preview-template")({field:this.model.toJSON()})}return this}}),wp.ccf.views.FormSettings=wp.ccf.views.FormSettings||t.View.extend({template:wp.ccf.utils.template("ccf-form-settings-template"),events:{"blur input":"save","change select":"save","change select.form-completion-action-type":"toggleCompletionFields","change select.form-pause":"togglePauseFields","change select.form-send-email-notifications":"toggleNotificationFields"},initialize:function(e){this.model=e.form},destroy:function(){wp.ccf.dispatcher.off("saveFormSettings",this.save),wp.ccf.dispatcher.off("mainViewChange",this.save)},toggleCompletionFields:function(){var e=this.el.querySelectorAll(".form-completion-action-type")[0].value,t=this.el.querySelectorAll(".completion-message")[0],i=this.el.querySelectorAll(".completion-redirect-url")[0];"text"===e?(t.style.display="block",i.style.display="none"):(t.style.display="none",i.style.display="block")},togglePauseFields:function(){var e=this.el.querySelectorAll(".form-pause")[0].value,t=this.el.querySelectorAll(".pause-message")[0];t.style.display=parseInt(e)?"block":"none"},save:function(e){if(""!==this.el.innerHTML){var t=this.el.querySelectorAll(".form-title")[0].value;this.model.set("title",t);var i=this.el.querySelectorAll(".form-description")[0].value;this.model.set("description",i);var l=this.el.querySelectorAll(".form-button-text")[0].value;this.model.set("buttonText",l);var s=this.el.querySelectorAll(".form-pause")[0].value;this.model.set("pause",parseInt(s)?!0:!1);var c=this.el.querySelectorAll(".form-pause-message")[0].value;this.model.set("pauseMessage",c);var r=this.el.querySelectorAll(".form-completion-message")[0].value;this.model.set("completionMessage",r);var o=this.el.querySelectorAll(".form-completion-redirect-url")[0].value;
|
2 |
-
this.model.set("completionRedirectUrl",o);var n=this.el.querySelectorAll(".form-completion-action-type")[0].value;this.model.set("completionActionType",n),e!==void 0&&e.promise!==void 0&&e.resolve()}},render:function(){var e={form:this.model.toJSON()};return this.el.innerHTML=this.template(e),this.toggleCompletionFields(),this.togglePauseFields(),wp.ccf.dispatcher.on("saveFormSettings",this.save,this),wp.ccf.dispatcher.on("mainViewChange",this.save,this),this}}),wp.ccf.views.FormNotifications=wp.ccf.views.FormNotifications||t.View.extend({template:wp.ccf.utils.template("ccf-form-notifications-template"),events:{"blur input":"save","change select":"save","change select.form-send-email-notifications":"toggleNotificationFields","change select.form-email-notification-from-type":"toggleNotificationFields","change select.form-email-notification-from-name-type":"toggleNotificationFields"},initialize:function(e){this.model=e.form},destroy:function(){wp.ccf.dispatcher.off("saveFormNotifications",this.save),wp.ccf.dispatcher.off("mainViewChange",this.save),this.undelegateEvents(),this.unbind()},updateFromFieldField:function(){var e=this.el.querySelectorAll(".form-email-notification-from-field")[0];e.innerHTML="",e.disabled=!1;var t=this.el.querySelectorAll(".form-email-notification-from-name-field")[0];t.innerHTML="",t.disabled=!1;var i=this.model.get("fields"),s=0,c=0,r=this.model.get("emailNotificationFromField"),o=this.model.get("emailNotificationFromNameField");if(i.length>=1&&i.each(function(i){if("email"===i.get("type")){var l=document.createElement("option");l.innerHTML=i.get("slug"),l.value=i.get("slug"),i.get("slug")===r&&(l.selected=!0),e.appendChild(l),s++}else if("name"===i.get("type")){var l=document.createElement("option");l.innerHTML=i.get("slug"),l.value=i.get("slug"),i.get("slug")===o&&(l.selected=!0),t.appendChild(l),c++}}),0===s){var n=document.createElement("option");n.innerHTML=l.noEmailFields,e.appendChild(n),e.disabled=!0}if(0===c){var n=document.createElement("option");n.innerHTML=l.noNameFields,t.appendChild(n),t.disabled=!0}},toggleNotificationFields:function(){var e,t=this.el.querySelectorAll(".form-send-email-notifications")[0].value,i=this.el.querySelectorAll(".email-notification-setting"),l=this.el.querySelectorAll(".email-notification-from-address")[0],s=this.el.querySelectorAll(".email-notification-from-field")[0],c=this.el.querySelectorAll(".form-email-notification-from-type")[0],r=this.el.querySelectorAll(".email-notification-from-name")[0],o=this.el.querySelectorAll(".email-notification-from-name-field")[0],n=this.el.querySelectorAll(".form-email-notification-from-name-type")[0];if(parseInt(t)){for(e=0;i.length>e;e++)i[e].style.display="block";l.style.display="none",s.style.display="none","custom"===c.value?l.style.display="block":"field"===c.value&&(s.style.display="block"),r.style.display="none",o.style.display="none","custom"===n.value?r.style.display="block":"field"===n.value&&(o.style.display="block")}else{for(e=0;i.length>e;e++)i[e].style.display="none";l.style.display="none",s.style.display="none",r.style.display="none",o.style.display="none"}},save:function(e){if(""!==this.el.innerHTML){var t=this.el.querySelectorAll(".form-send-email-notifications")[0].value;this.model.set("sendEmailNotifications",parseInt(t)?!0:!1);var i=this.el.querySelectorAll(".form-email-notification-addresses")[0].value;this.model.set("emailNotificationAddresses",i);var l=this.el.querySelectorAll(".form-email-notification-from-type")[0].value;this.model.set("emailNotificationFromType",l);var s=this.el.querySelectorAll(".form-email-notification-from-address")[0].value;this.model.set("emailNotificationFromAddress",s);var c=this.el.querySelectorAll(".form-email-notification-from-field")[0].value;this.model.set("emailNotificationFromField",c);var r=this.el.querySelectorAll(".form-email-notification-from-name-type")[0].value;this.model.set("emailNotificationFromNameType",r);var o=this.el.querySelectorAll(".form-email-notification-from-name")[0].value;this.model.set("emailNotificationFromName",o);var n=this.el.querySelectorAll(".form-email-notification-from-name-field")[0].value;this.model.set("emailNotificationFromNameField",n),e!==void 0&&e.promise!==void 0&&e.resolve()}},render:function(){var e={form:this.model.toJSON()},t=this.model.get("fields");return this.el.innerHTML=this.template(e),this.toggleNotificationFields(),this.updateFromFieldField(),wp.ccf.dispatcher.on("saveFormNotifications",this.save,this),wp.ccf.dispatcher.on("mainViewChange",this.save,this),this.listenTo(t,"add",this.updateFromFieldField,this),this.listenTo(t,"remove",this.updateFromFieldField,this),this}}),wp.ccf.views.FormPane=wp.ccf.views.FormPane||t.View.extend(i.defaults({template:wp.ccf.utils.template("ccf-form-pane-template"),subViews:{"field-sidebar":wp.ccf.views.FieldSidebar,"form-settings":wp.ccf.views.FormSettings,"form-notifications":wp.ccf.views.FormNotifications},events:{"click .save-button":"sync","click h2":"accordionClick","click .insert-form-button":"insertForm"},initialize:function(){wp.ccf.dispatcher.on("openEditField",this.openEditField,this)},insertForm:function(){wp.ccf.utils.insertFormShortcode(this.model),wp.ccf.toggle()},accordionClick:function(t){var l=e(t.currentTarget).parents(".accordion-container")[0],s=l.querySelectorAll(".accordion-section");t.currentTarget.parentNode.className.match(/expanded/i)?t.currentTarget.parentNode.className=t.currentTarget.parentNode.className.replace(/expanded/i,""):t.currentTarget.parentNode.className+=" expanded",i.each(s,function(e){e!=t.currentTarget.parentNode&&e.className.match(/expanded/i)&&(e.className=e.className.replace(/expanded/i,""))})},openEditField:function(e){this.renderedSubViews["field-sidebar"].render(e).el.style.display="block"},disable:function(){this.el.querySelectorAll(".save-button")[0].setAttribute("disabled","disabled"),this.el.querySelectorAll(".disabled-overlay")[0].style.display="block"},enable:function(){this.el.querySelectorAll(".save-button")[0].removeAttribute("disabled"),this.el.querySelectorAll(".disabled-overlay")[0].style.display="none"},sync:function(){var t=this,i=e(this.el.querySelectorAll(".spinner")[0]);i.fadeIn(),t.disable();var s=e.Deferred(),c=e.Deferred(),r=e.Deferred();wp.ccf.dispatcher.trigger("saveFormSettings",s),wp.ccf.dispatcher.trigger("saveFormNotifications",r),wp.ccf.dispatcher.trigger("saveField",c),e.when(s,c,r).then(function(){var e=t.model.get("fields"),s=!0,c={};e.each(function(e){var t=e.get("slug");e.hasRequiredAttributes()?t&&!t.match(/^[a-zA-Z0-9\-_]+$/)?(s=!1,e.trigger("requirementsNotMet")):c[e.get("slug")]!==void 0?(s=!1,e.trigger("duplicateSlug"),c[e.get("slug")].trigger("duplicateSlug")):e.trigger("requirementsMet"):(s=!1,e.trigger("requirementsNotMet")),e.get("slug")&&(c[e.get("slug")]=e)}),s?t.model.save({},{context:"edit"}).error(function(){var e="sync";wp.ccf.errorModal.render(e).show()}).done(function(){l.single&&!l.postId&&(window.location=l.adminUrl+"post.php?post="+t.model.get("ID")+"&action=edit#ccf-form/"+t.model.get("ID"))}).complete(function(){i.fadeOut(),t.enable(),wp.ccf.dispatcher.trigger("saveFormComplete",t.model)}):(t.enable(),i.fadeOut())})},enableDisableInsert:function(){var e=this.el.querySelectorAll(".insert-form-button")[0];this.model.get("ID")?e.removeAttribute("disabled"):e.setAttribute("disabled","disabled")},getNextFieldOrd:function(){var e=this.model.get("fields"),t=e.length+1;return e.each(function(e){var i=e.get("slug"),l=/\-([0-9]+)$/g,s=l.exec(i);if(s&&s[1]){var c=parseInt(s[1]);c>=t&&(t=c+1)}}),t},render:function(t){var s=this;s.model=t?t:new wp.ccf.models.Form,this.listenTo(s.model,"change",this.enableDisableInsert,this);var c={labels:l.fieldLabels,form:s.model.toJSON()};window.form=s.model,s.el.innerHTML=this.template(c);var r=s.el.querySelectorAll(".fields")[0];i.each(l.fieldLabels,function(e,t){r.appendChild(new wp.ccf.views.FieldRowPlaceholder({type:t}).render().el)});var o=s.el.querySelectorAll(".structure-fields")[0];i.each(l.structureFieldLabels,function(e,t){o.appendChild(new wp.ccf.views.FieldRowPlaceholder({type:t}).render().el)});var n=s.el.querySelectorAll(".special-fields")[0];i.each(l.specialFieldLabels,function(e,t){n.appendChild(new wp.ccf.views.FieldRowPlaceholder({type:t}).render().el)});var a=s.model.get("fields"),d=s.el.querySelectorAll(".form-content")[0],u=e(d);return e(s.el.querySelectorAll(".left-sidebar")[0].querySelectorAll(".field")).draggable({cursor:"move",distance:2,zIndex:160001,scroll:!1,containment:"document",appendTo:".ccf-main-modal",snap:!1,connectToSortable:".form-content",helper:function(t){var i=e(t.currentTarget),l=e('<div class="field" data-field-type="'+i.attr("data-field-type")+'"><h4>'+i.find(".label").html()+"</h4></div>");return l.css({width:u.width(),opacity:".75",height:i.height()})}}),a.length>=1&&(d.innerHTML="",a.each(function(e){var t=new wp.ccf.views.FieldRow({model:e,form:s.model}).render(!0).el;d.appendChild(t)})),e(d).sortable({axis:"y",distance:2,handle:"h4",placeholder:"field-placeholder",stop:function(e,t){if(!t.item.hasClass("instantiated")){var i=t.item.attr("data-field-type"),l={};wp.ccf.models.Fields[i].prototype.defaults().slug!==void 0&&(l.slug=i+"-"+s.getNextFieldOrd());var c=new wp.ccf.models.Fields[i](l),r=s.model.get("fields");r.add(c),new wp.ccf.views.FieldRow({model:c,el:t.item,form:s.model}).render(!0),t.item.attr("style","")}t.item.trigger("sorted",t.item.index())}}),s.initRenderSubViews(!0,!0,{form:s.model}),s.enableDisableInsert(),s}},wp.ccf.mixins.subViewable)),wp.ccf.views.ExistingFormTableRow=wp.ccf.views.ExistingFormTableRow||t.View.extend({tagName:"tr",template:wp.ccf.utils.template("ccf-existing-form-table-row-template"),events:{"click .edit":"triggerMainViewChange","click .delete":"triggerDelete","click .insert-form-button":"insertForm"},initialize:function(e){this.parent=e.parent},insertForm:function(){wp.ccf.utils.insertFormShortcode(this.model),wp.ccf.toggle()},triggerMainViewChange:function(){wp.ccf.switchToForm(this.model)},triggerDelete:function(){var e,t=this,i=t.parent.collection.state.currentPage;t.model.destroy().done(function(){e=i,e===t.parent.collection.state.totalPages&&e-1===(t.parent.collection.state.totalObjects-1)/l.postsPerPage&&e--,t.parent.showPage(e).done(function(){t.parent.renderPagination()})})},render:function(){return this.$el.html(this.template({form:this.model.toJSON(),utils:{getPrettyPostDate:wp.ccf.utils.getPrettyPostDate}})),this}}),wp.ccf.views.EmptyFormTableRow=wp.ccf.views.EmptyFormTableRow||t.View.extend({tagName:"tr",template:wp.ccf.utils.template("ccf-empty-form-table-row-template"),render:function(){return this.$el.html(this.template()),this}}),wp.ccf.views.ExistingFormTable=wp.ccf.views.ExistingFormTable||t.View.extend({template:wp.ccf.utils.template("ccf-existing-form-table-template"),initialize:function(){this.parent=arguments.parent,this.collection=new wp.ccf.collections.Forms,wp.ccf.dispatcher.on("changeFormTablePage",this.showPage,this),wp.ccf.dispatcher.on("saveFormComplete",this.render,this)},showPage:function(e){var t=this,i=this.collection.fetch({data:{page:e}});return i.error(function(){var e="sync";wp.ccf.errorModal.render(e).show()}),i.done(function(){var e=t.el.querySelectorAll(".rows")[0],i=document.createElement("tbody");i.className="rows",t.collection.length>=1?t.collection.each(function(e){var l=new wp.ccf.views.ExistingFormTableRow({model:e,parent:t}).render();i.appendChild(l.el)},t):i.appendChild((new wp.ccf.views.EmptyFormTableRow).render().el),e.parentNode.replaceChild(i,e)}),i},renderPagination:function(){var e=this.el.querySelectorAll(".ccf-pagination")[0];e.innerHTML="",this.collection.state.totalPages>1&&e.appendChild(new wp.ccf.views.Pagination({parent:this}).render(this.collection.state.totalPages,this.collection.state.currentPage).el)},render:function(){var e=this;return this.el.innerHTML=this.template(),this.el.querySelectorAll(".ccf-pagination")[0],this.showPage(1).done(function(){e.renderPagination()}),this}}),wp.ccf.views.ExistingFormPane=wp.ccf.views.ExistingFormPane||t.View.extend(i.defaults({template:wp.ccf.utils.template("ccf-existing-form-pane-template"),subViews:{"existing-form-table":wp.ccf.views.ExistingFormTable},render:function(){return this.rendered?this:(this.rendered=!0,this.el.innerHTML=this.template(),this.initRenderSubViews(!0),this)}},wp.ccf.mixins.subViewable)),wp.ccf.views.MainModal=wp.ccf.views.MainModal||t.View.extend(i.defaults({tagName:"div",className:"ccf-main-modal",template:wp.ccf.utils.template("ccf-main-modal-template"),events:{"click .close-icon":"hide","click .main-menu a":"menuClick"},subViews:{"form-pane":wp.ccf.views.FormPane},initialize:function(){l.single||(this.subViews["existing-form-pane"]=wp.ccf.views.ExistingFormPane),wp.ccf.dispatcher.on("mainViewChange",this.toggleView,this)},toggleView:function(e){this.showView(e,wp.ccf.currentForm);var t=e;"form-pane"===e&&wp.ccf.currentForm&&(t="existing-form-pane");var l=this.el.querySelectorAll(".menu-item");i.each(l,function(e){var i=e.getAttribute("data-view");e.className=i===t?e.className.replace("selected","")+" selected":e.className.replace("selected","")})},menuClick:function(e){var t=e.target.getAttribute("data-view");"form-pane"===t&&(wp.ccf.currentForm=null),wp.ccf.dispatcher.trigger("mainViewChange",t),e.preventDefault()},render:function(e){return e=e||!1,this.overlay(),this.el.innerHTML=this.template({single:e}),this.initRenderSubViews(),this.showView("form-pane",wp.ccf.currentForm,!0),this},overlay:function(){return this.overlayEl===void 0&&(this.overlayEl=document.createElement("div"),this.overlayEl.className="ccf-main-modal-overlay",document.body.appendChild(this.overlayEl)),this.overlayEl},remove:function(){return document.body.removeChild(this.overlay()),this},show:function(){e(this.overlay()).show(),this.$el.show()},hide:function(){e(this.overlay()).hide(),this.$el.hide()}},wp.ccf.mixins.subViewable)),wp.ccf.views.SubmissionRow=wp.ccf.views.SubmissionRow||t.View.extend({tagName:"tr",template:wp.ccf.utils.template("ccf-submission-row-template"),events:{"click .view":"view","click .delete":"delete"},initialize:function(e){this.parent=e.parent},"delete":function(){var e,t=this,i=t.parent.collection.state.currentPage;t.model.destroy().done(function(){e=i,e===t.parent.collection.state.totalPages&&e-1===(t.parent.collection.state.totalObjects-1)/l.postsPerPage&&e--,t.parent.showPage(e).done(function(){t.parent.renderPagination()})})},view:function(e){var t=e.currentTarget.getAttribute("data-submission-id"),i=e.currentTarget.getAttribute("data-submission-date");tb_show(l.thickboxTitle+" - "+wp.ccf.utils.getPrettyPostDate(i),"#TB_inline?height=500&width=700&inlineId=ccf-submission-content-"+parseInt(t),null)},render:function(){return this.$el.html(this.template({submission:this.model.toJSON(),currentColumns:this.parent.columns,columns:wp.ccf.currentForm.getFieldSlugs(!0),utils:{getPrettyPostDate:wp.ccf.utils.getPrettyPostDate,wordChop:wp.ccf.utils.wordChop,isFieldDate:wp.ccf.utils.isFieldDate,isFieldName:wp.ccf.utils.isFieldName,isFieldFile:wp.ccf.utils.isFieldFile,isFieldAddress:wp.ccf.utils.isFieldAddress,isFieldEmailConfirm:wp.ccf.utils.isFieldEmailConfirm,getPrettyFieldDate:wp.ccf.utils.getPrettyFieldDate,getPrettyFieldAddress:wp.ccf.utils.getPrettyFieldAddress,getPrettyFieldName:wp.ccf.utils.getPrettyFieldName,getPrettyFieldEmailConfirm:wp.ccf.utils.getPrettyFieldEmailConfirm}})),this}}),wp.ccf.views.SubmissionsTable=wp.ccf.views.SubmissionsTable||t.View.extend({template:wp.ccf.utils.template("ccf-submission-table-template"),events:{"click .prev:not(.disabled)":"previousPage","click .next:not(.disabled)":"nextPage","click .first:not(.disabled)":"firstPage","click .last:not(.disabled)":"lastPage"},initialize:function(){this.collection=new wp.ccf.collections.Submissions({},{formId:l.postId}),wp.ccf.dispatcher.on("submissionTableRebuild",this.render,this)},showPage:function(e){var t=this,i=this.collection.fetch({data:{page:e}});return i.error(function(){var e="sync";wp.ccf.errorModal.render(e).show()}),i.done(function(){var e=t.el.querySelectorAll(".submission-rows")[0],i=document.createElement("tbody");i.className="submission-rows",t.collection.length>=1?t.collection.each(function(e){var l=new wp.ccf.views.SubmissionRow({model:e,parent:t}).render();i.appendChild(l.el)},t):i.appendChild(new wp.ccf.views.EmptySubmissionTableRow({parent:t}).render(wp.ccf.currentForm.getFieldSlugs(!0).concat("date")).el),e.parentNode.replaceChild(i,e)}),i},renderPagination:function(){var e=this.el.querySelectorAll(".ccf-pagination")[0];e.innerHTML="",this.collection.state.totalPages>1&&e.appendChild(new wp.ccf.views.Pagination({parent:this}).render(this.collection.state.totalPages,this.collection.state.currentPage).el)},render:function(e){var t=this;return t.columns=e?e:wp.ccf.currentForm.getFieldSlugs(!0).slice(0,4).concat("date"),1>t.columns.length?t.el.innerHTML="":(t.el.innerHTML=t.template({columns:t.columns}),t.el.querySelectorAll(".ccf-pagination")[0],t.showPage(1).done(function(){t.renderPagination()})),t}}),wp.ccf.views.ErrorModal=wp.ccf.views.ErrorModal||t.View.extend({template:wp.ccf.utils.template("ccf-error-modal-template"),tagName:"div",className:"ccf-error-modal",events:{"click .close":"hide"},hide:function(){this.el.className=this.el.className.replace(" show","")},show:function(){this.el.className=this.el.className.replace(" show","")+" show"},toggle:function(){this.el.className.match(" show")?this.hide():this.show()},render:function(e){var t={messageType:""};return e&&(t.messageType=e),this.el.innerHTML=this.template(t),this}}),wp.ccf.views.Pagination=wp.ccf.views.Pagination||t.View.extend({template:wp.ccf.utils.template("ccf-pagination-template"),events:{"click .prev:not(.disabled)":"previousPage","click .next:not(.disabled)":"nextPage","click .first:not(.disabled)":"firstPage","click .last:not(.disabled)":"lastPage"},initialize:function(e){this.parent=e.parent},previousPage:function(){var e=this;e.parent.showPage(e.parent.collection.state.currentPage-1).done(function(){e.render()})},nextPage:function(){var e=this;e.parent.showPage(e.parent.collection.state.currentPage+1).done(function(){e.render()})},firstPage:function(){var e=this;e.parent.showPage(1).done(function(){e.render()})},lastPage:function(){var e=this;e.parent.showPage(e.parent.collection.state.totalPages).done(function(){e.render()})},render:function(){return this.el.innerHTML=this.template({totalPages:this.parent.collection.state.totalPages,currentPage:this.parent.collection.state.currentPage,totalObjects:this.parent.collection.state.totalObjects}),this}}),wp.ccf.views.EmptySubmissionTableRow=wp.ccf.views.EmptySubmissionTableRow||t.View.extend({tagName:"tr",template:wp.ccf.utils.template("ccf-no-submissions-row-template"),initialize:function(e){this.parent=e.parent},render:function(){return this.el.innerHTML=this.template({columns:this.parent.columns}),this}}),wp.ccf.views.SubmissionColumnController=wp.ccf.views.SubmissionColumnController||t.View.extend({template:wp.ccf.utils.template("ccf-submissions-controller-template"),events:{"click input[type=checkbox]":"triggerTableRebuild"},render:function(){this.el.innerHTML=this.template({columns:wp.ccf.currentForm.getFieldSlugs(!0).concat("date")})},triggerTableRebuild:function(){var e=[],t=document.querySelectorAll(".submission-column-checkbox");if(t.length>=1)for(var i=0;t.length>i;i++)t[i].checked&&e.push(t[i].value);wp.ccf.dispatcher.trigger("submissionTableRebuild",e)}})}(jQuery,Backbone,_,ccfSettings),function(e,t){"use strict";wp.ccf.router=wp.ccf.router||t.Router.extend({routes:{"ccf-form":"open","ccf-form/:formId":"open"},open:function(e){wp.ccf.show(e)}})}(jQuery,Backbone,_,ccfSettings),function(e,t,i,l){"use strict";wp.ccf=i.defaults(wp.ccf,{forms:new wp.ccf.collections.Forms,currentForm:null,errorModal:null,_currentFormDeferred:null,dispatcher:{},show:function(e){return this.switchToForm(e),this.instance.show(),this.instance},initErrorModal:function(){this.errorModal=(new wp.ccf.views.ErrorModal).render();var e=document.getElementsByTagName("body")[0];e.appendChild(this.errorModal.el)},switchToForm:function(e){var t=this;if(+e===parseInt(e)){var i=parseInt(e);if(e=t.forms.findWhere({ID:parseInt(i)}),!e){var l;return t.forms.formsFetching[i]!==void 0?(l=t.forms.formsFetching[i],e=null):(e=new wp.ccf.models.Form({ID:i}),l=e.fetch(),t.forms.formsFetching[i]=l),l.done(function(){e?(delete t.forms.formsFetching[i],t.forms.add(e)):e=t.forms.findWhere({ID:i}),t.currentForm=e,wp.ccf.dispatcher.trigger("mainViewChange","form-pane")}),l}t.currentForm=e,wp.ccf.dispatcher.trigger("mainViewChange","form-pane")}else t.currentForm=e,wp.ccf.dispatcher.trigger("mainViewChange","form-pane");return!0},hide:function(){return this.instance.hide(),this.instance},toggle:function(e){return this.switchToForm(e),this.instance.$el.is(":visible")?this.instance.hide():this.instance.show(),this.instance},createSubmissionsTable:function(e){var t=document.querySelectorAll(".ccf-submission-column-controller"),i=new wp.ccf.views.SubmissionsTable({el:e});i.render(),t&&new wp.ccf.views.SubmissionColumnController({el:t}).render()},_setupMainModal:function(e){return this.instance=(new wp.ccf.views.MainModal).render(e),document.getElementsByTagName("body")[0].appendChild(this.instance.el),t.history.start(),this.instance},createManager:function(){var s=this,c=document.querySelectorAll(".ccf-open-form-manager")[0];if(!c)return!1;i.extend(this.dispatcher,t.Events),new wp.ccf.router,s.initErrorModal();var r=!1;if(l.single)if(r=!0,l.postId){var o=parseInt(l.postId);if(s.forms.formsFetching[o]===void 0){var n=new wp.ccf.models.Form({ID:o}),a=n.fetch();s.forms.formsFetching[o]=a,s._currentFormDeferred=a,a.done(function(){delete s.forms.formsFetching[o],s.forms.add(n),s.currentForm=n})}else s._currentFormDeferred=s.forms.formsFetching[o],s._currentFormDeferred.done(function(){s.currentForm=s.forms.findWhere({ID:o})});e.when(s._currentFormDeferred).then(function(){s._setupMainModal(!0),c.style.display="inline-block";var e=document.getElementById("ccf-submissions");if(e){var t=e.querySelectorAll(".inside")[0],i=document.createElement("div");i.className="ccf-submission-icon",i.setAttribute("data-icon","");var r=document.createElement("a");r.href="?action=edit&post="+parseInt(l.postId)+"&download_submissions=1&download_submissions_nonce="+l.downloadSubmissionsNonce,r.className="ccf-submission-icon",r.setAttribute("data-icon","");var o=document.getElementById("show-settings-link");i.onclick=function(){o.click()},e.insertBefore(i,e.firstChild.nextSibling.nextSibling),e.insertBefore(r,e.firstChild.nextSibling.nextSibling),wp.ccf.createSubmissionsTable(t)}})}else s._setupMainModal(!0),c.style.display="inline-block";else s._setupMainModal();var d=function(e){e=e||window.event;var t=e.currentTarget?e.currentTarget:e.srcElement,i=t.getAttribute("data-form-id");wp.ccf.toggle(i)};c.addEventListener?c.addEventListener("click",d,!1):c.attachEvent("onclick",d)}}),wp.ccf.createManager()}(jQuery,Backbone,_,ccfSettings);
|
1 |
+
(function(e,t,i,l){"use strict";window.wp=window.wp||{},wp.ccf=wp.ccf||{},wp.ccf.utils=wp.ccf.utils||{},wp.ccf.utils.cleanDateFields=function(e){delete e.date,delete e.date_gmt,delete e.modified,delete e.modified_gmt,delete e.date_tz,delete e.modified_tz},wp.ccf.utils.template=i.memoize(function(e){var t={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g};return i.template(document.getElementById(e).innerHTML,null,t)}),wp.ccf.utils.insertFormShortcode=function(e){var t=wp.ccf.forms.findWhere({ID:e.get("ID")});t||wp.ccf.forms.add(e);var i=tinymce.get(wpActiveEditor),l='[ccf_form id="'+e.get("ID")+'"]';i&&!i.isHidden()?tinymce.activeEditor.execCommand("mceInsertContent",!1,l):document.getElementById(wpActiveEditor).value+=l},wp.ccf.utils.getPrettyPostDate=function(e){return e=moment.utc(e),l.gmtOffset&&(e=e.utcOffset(60*parseInt(l.gmtOffset))),e.format("h:mm a M/D/YYYY")},wp.ccf.utils.wordChop=function(e,t){var i=e.substr(0,t);return i.substr(0,Math.min(i.length,i.lastIndexOf(" "))),i.length<e.length&&(i+="..."),i},wp.ccf.utils.isFieldDate=function(e){return e.date!==void 0||e.hour!==void 0&&e.minute!==void 0&&e["am-pm"]!==void 0?!0:!1},wp.ccf.utils.isFieldName=function(e){return e.name!==void 0||e.last!==void 0?!0:!1},wp.ccf.utils.isFieldEmailConfirm=function(e){return e.email!==void 0||e.confirm!==void 0?!0:!1},wp.ccf.utils.isFieldAddress=function(e){return e.street!==void 0&&e.city!==void 0&&e.zipcode!==void 0&&e.line_two!==void 0?!0:!1},wp.ccf.utils.isFieldFile=function(e){return e.id!==void 0&&e.url!==void 0&&e.file_name!==void 0?!0:!1},wp.ccf.utils.getPrettyFieldEmailConfirm=function(e){return e.email?e.email:e.confirm?e.confirm:"-"},wp.ccf.utils.getPrettyFieldDate=function(e){var t="",i="";if(e.hour&&e.minute&&e["am-pm"]&&(t+=e.hour+":"+e.minute+" "+e["am-pm"]),e.date&&(t+=" "+e.date),!t)return"-";var s=moment.utc(t);return s.isValid()?(e.hour&&e.minute&&e["am-pm"]&&(i+=s.format("h:mm a")),e.date&&(i&&(i+=" "),i+=s.format("M/D/YYYY")),i):l.invalidDate},wp.ccf.utils.getPrettyFieldName=function(e){var t=e.first;return t.length>0&&(t+=" "),e.last&&(t+=e.last),t||(t="-"),t},wp.ccf.utils.getPrettyFieldAddress=function(e){if(!e.street||!e.city)return"-";var t=e.street;return e.line_two&&(t+=" "+e.line_two),t+=", "+e.city,e.state&&(t+=", "+e.state),e.zipcode&&(t+=" "+e.zipcode),e.country&&(t+=" "+e.country),t}})(jQuery,Backbone,_,ccfSettings),function(e,t,i){"use strict";wp.ccf.mixins=wp.ccf.mixins||{},wp.ccf.mixins.subViewable=wp.ccf.mixins.subViewable||{subViews:{},initRenderSubViews:function(e,t,l){this.renderedSubViews||(this.renderedSubViews={});for(var s in this.subViews){var c={el:this.$el.find(".ccf-"+s),parent:this};l&&i.extend(c,l),this.renderedSubViews[s]&&this.renderedSubViews[s].destroy&&this.renderedSubViews[s].destroy(),(t||!this.renderedSubViews[s])&&(this.renderedSubViews[s]=new this.subViews[s](c)),this.renderedSubViews[s].render(),e&&(this.renderedSubViews[s].el.style.display="block")}return this},showView:function(e,t,i){if(this.renderedSubViews!==void 0&&this.renderedSubViews[e]!==void 0){var l=this.renderedSubViews[e];i||l.render(t),l.el.style.display="block",this.currentView=e;for(var s in this.subViews)s!==e&&(this.renderedSubViews[s].el.style.display="none")}}}}(jQuery,Backbone,_,ccfSettings),function(e,t,i,l,s){"use strict";wp.ccf.models=wp.ccf.models||{},wp.ccf.models.Fields=wp.ccf.models.Fields||{};var c=function(e,i,l){return"object"!=typeof i&&""===i&&(i=""),t.Model.prototype.set.call(this,e,i,l)},r=function(e,t,i){return i=i||{},i.emulateHTTP=!0,this.constructor.__super__.sync.call(this,e,t,i)},o=function(e){for(var t in this.attributes)if(-1===i.indexOf(e,t)){var l=this.get(t);"string"==typeof l&&""!==l&&(l=(l+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/“/g,"”").replace(/”/g,"”").replace(/‘/g,"‘").replace(/&/g,"&").replace(/'/g,"'"),this.set(t,l))}return this};wp.ccf.models.FieldChoice=wp.ccf.models.FieldChoice||t.Model.extend({defaults:{label:"",value:"",selected:!1},decode:function(){return o.call(this,[])},set:c}),wp.ccf.models.Form=wp.ccf.models.Form||wp.api.models.Post.extend({urlRoot:s.root+"/ccf/forms",set:c,sync:r,initialize:function(){this.on("sync",this.decode,this)},defaults:function(){var e={fields:new wp.ccf.collections.Fields,type:"ccf_form",status:"publish",description:"",buttonText:"Submit Form",completionActionType:"text",completionRedirectUrl:"",completionMessage:"",sendEmailNotifications:!1,emailNotificationAddresses:l.adminEmail,emailNotificationFromType:"default",emailNotificationFromAddress:"",emailNotificationFromField:"",emailNotificationSubjectType:"default",emailNotificationSubject:"",emailNotificationSubjectField:"",emailNotificationFromNameType:"custom",emailNotificationFromName:"WordPress",emailNotificationFromNameField:"",pause:!1,pauseMessage:l.pauseMessage};return e=i.defaults(e,this.constructor.__super__.defaults),wp.ccf.utils.cleanDateFields(e),e},decode:function(){var e=i.keys(wp.api.models.Post.prototype.defaults);return e=i.without(e,"title"),o.call(this,e)},getFieldSlugs:function(e){var t=wp.ccf.currentForm.get("fields"),i=[];return t.each(function(t){e&&t.isImmutable||i.push(t.get("slug"))}),i},parse:function(e){var t=this;if(e.fields){var l=t.get("fields");if(l&&l.length>0){for(var s=0;e.fields.length>s;s++){var c=e.fields[s],r=l.findWhere({slug:c.slug});if(r){if(c.choices!==void 0){var o=t.get("choices");if(o&&o.length>0)for(var n=0;c.choices>n;n++){var a=o.at(n);a.set(c.choices[n]),a.decode()}delete e.fields[s].choices}r.set(c),r.decode()}}delete e.fields}else{var d=[];i.each(e.fields,function(e){var t=new wp.ccf.models.Fields[e.type](e);t.decode(),d.push(t)}),e.fields=new wp.ccf.collections.Fields(d,{formId:e.ID})}}return this.constructor.__super__.parse.call(this,e)},toJSON:function(){var e=this.constructor.__super__.toJSON.call(this);return e.fields&&(e.fields=e.fields.toJSON()),e.author&&(e.author=e.author.toJSON()),e}}),wp.ccf.models.Submission=wp.api.models.Submission||wp.api.models.Post.extend({idAttribute:"ID",defaults:{ID:null,data:{}},sync:r}),wp.ccf.models.Field=wp.api.models.Field||wp.api.models.Post.extend({idAttribute:"ID",defaults:{ID:null},set:c,required:function(){return["slug"]},decode:function(){return o.call(this,i.keys(wp.api.models.Post.prototype.defaults))},hasRequiredAttributes:function(){var e=this,t=!0;return i.each(this.required(),function(i){(e.get(i)===void 0||""===e.get(i))&&(t=!1)}),t},sync:r}),wp.ccf.models.StandardField=wp.ccf.models.StandardField||wp.ccf.models.Field.extend({idAttribute:"ID",defaults:function(){var e={label:l.fieldLabel,value:"",placeholder:"",slug:"",type:"",required:!1,className:"",description:""};return i.defaults(e,this.constructor.__super__.defaults)}}),wp.ccf.models.Fields["single-line-text"]=wp.ccf.models.Fields["single-line-text"]||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"single-line-text"};return i.defaults(e,this.constructor.__super__.defaults())}}),wp.ccf.models.Fields.file=wp.ccf.models.Fields.file||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"file",fileExtensions:"",maxFileSize:l.maxFileSize};return i.defaults(e,this.constructor.__super__.defaults())}}),wp.ccf.models.Fields["paragraph-text"]=wp.ccf.models.Fields["paragraph-text"]||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"paragraph-text"};return i.defaults(e,this.constructor.__super__.defaults())}}),wp.ccf.models.Fields.hidden=wp.ccf.models.Fields.hidden||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"hidden"};return i.defaults(e,this.constructor.__super__.defaults())}}),wp.ccf.models.Fields.email=wp.ccf.models.Fields.email||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"email",emailConfirmation:!1};return i.defaults(e,this.constructor.__super__.defaults())}}),wp.ccf.models.Fields.website=wp.ccf.models.Fields.website||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"website",placeholder:"http://"};return i.defaults(e,this.constructor.__super__.defaults())}}),wp.ccf.models.Fields.phone=wp.ccf.models.Fields.phone||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"phone",phoneFormat:"us"};return i.defaults(e,this.constructor.__super__.defaults())}}),wp.ccf.models.Fields.date=wp.ccf.models.Fields.date||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"date",showDate:!0,showTime:!0};return i.defaults(e,this.constructor.__super__.defaults())}}),wp.ccf.models.Fields.name=wp.ccf.models.Fields.name||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"name"};return i.defaults(e,this.constructor.__super__.defaults())}}),wp.ccf.models.Fields.recaptcha=wp.ccf.models.Fields.recaptcha||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"recaptcha",siteKey:"",secretKey:""};return i.defaults(e,this.constructor.__super__.defaults())},required:function(){return["siteKey","secretKey"]},isImmutable:!0}),wp.ccf.models.Fields.address=wp.ccf.models.Fields.address||wp.ccf.models.StandardField.extend({defaults:function(){var e={type:"address",addressType:"us"};return i.defaults(e,this.constructor.__super__.defaults())}}),wp.ccf.models.Fields["section-header"]=wp.ccf.models.Fields["section-header"]||wp.ccf.models.Field.extend({defaults:function(){var e={type:"section-header",slug:"",heading:"",subheading:"",className:""};return i.defaults(e,this.constructor.__super__.defaults)},required:function(){return[]},isImmutable:!0}),wp.ccf.models.Fields.html=wp.ccf.models.Fields.html||wp.ccf.models.Field.extend({defaults:function(){var e={type:"html",slug:"",html:"",className:""};return i.defaults(e,this.constructor.__super__.defaults)},required:function(){return[]},isImmutable:!0}),wp.ccf.models.ChoiceableField=wp.ccf.models.ChoiceableField||wp.ccf.models.StandardField.extend({defaults:function(){var e={choices:new wp.ccf.collections.FieldChoices};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(e){if("object"==typeof e&&e.choices){var t=[];i.each(e.choices,function(e){var i=new wp.ccf.models.FieldChoice(e);i.decode(),t.push(i)}),this.set("choices",new wp.ccf.collections.FieldChoices(t))}}}),wp.ccf.models.Fields.radio=wp.ccf.models.Fields.radio||wp.ccf.models.ChoiceableField.extend({defaults:function(){var e={type:"radio"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.checkboxes=wp.ccf.models.Fields.checkboxes||wp.ccf.models.ChoiceableField.extend({defaults:function(){var e={type:"checkboxes"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}}),wp.ccf.models.Fields.dropdown=wp.ccf.models.Fields.dropdown||wp.ccf.models.ChoiceableField.extend({defaults:function(){var e={type:"dropdown"};return i.defaults(e,this.constructor.__super__.defaults())},initialize:function(){return this.constructor.__super__.initialize.apply(this,arguments)}})}(jQuery,Backbone,_,ccfSettings,WP_API_Settings),function(e,t,i){"use strict";var l=function(e,t,i){return i=i||{},i.emulateHTTP=!0,this.constructor.__super__.sync.call(this,e,t,i)};wp.ccf.collections=wp.ccf.collections||{},wp.ccf.collections.Forms=wp.ccf.collections.Forms||wp.api.collections.Posts.extend({model:wp.ccf.models.Form,url:WP_API_Settings.root+"/ccf/forms",formsFetching:{},initialize:function(){this.constructor.__super__.initialize(),this.formsFetching={}},sync:l,remove:function(e,t){t=t||{};var l=this.constructor.__super__.remove.call(this,e,t);return t.destroy&&(e instanceof Array?i.each(e,function(e){e.destroy()}):e.destroy()),l}}),wp.ccf.collections.Fields=wp.ccf.collections.Fields||wp.api.collections.Posts.extend({model:wp.ccf.models.Field,url:function(){return WP_API_Settings.root+"/ccf/forms/"+this.formId+"/fields"},initialize:function(e,t){t&&t.formId&&(this.formId=t.formId)},sync:l}),wp.ccf.collections.Submissions=wp.ccf.collections.Submissions||wp.api.collections.Posts.extend({model:wp.ccf.models.Submission,url:function(){return WP_API_Settings.root+"/ccf/forms/"+this.formId+"/submissions"},initialize:function(e,t){this.constructor.__super__.initialize.apply(this,arguments),t&&t.formId&&(this.formId=t.formId)},sync:l}),wp.ccf.collections.FieldChoices=wp.ccf.collections.FieldChoices||t.Collection.extend({model:wp.ccf.models.FieldChoice})}(jQuery,Backbone,_,ccfSettings),function(e,t,i,l){"use strict";wp.ccf.views=wp.ccf.views||{},wp.ccf.views.Fields=wp.ccf.views.Fields||{},wp.ccf.views.FieldChoice=t.View.extend({template:wp.ccf.utils.template("ccf-field-choice-template"),className:"choice",events:{"click .add":"triggerAdd","click .delete":"triggerDelete","blur input":"saveChoice",saveChoice:"saveChoice",sorted:"triggerUpdateSort"},initialize:function(e){this.field=e.field},destroy:function(){wp.ccf.dispatcher.off("mainViewChange",this.saveChoice),this.unbind()},triggerUpdateSort:function(e,t){this.field.get("choices").remove(this.model,{silent:!0}),this.field.get("choices").add(this.model,{at:t,silent:!0})},saveChoice:function(){if(""!==this.el.innerHTML){var e=this.el.querySelectorAll(".choice-label")[0].value,t=this.el.querySelectorAll(".choice-value")[0].value;this.model.set("label",e),this.model.set("value",t);var i=this.el.querySelectorAll(".choice-selected")[0],l=i.checked?!0:!1;return this.model.set("selected",l),this}},render:function(){var e={};return this.model&&(e.choice=this.model.toJSON()),this.el.innerHTML=this.template(e),wp.ccf.dispatcher.on("mainViewChange",this.saveChoice,this),this},triggerAdd:function(){this.field.get("choices").add(new wp.ccf.models.FieldChoice)},triggerDelete:function(){var e=this.field.get("choices");if(e.length>1)e.remove(this.model),this.destroy(),this.remove();else{for(var t=this.el.querySelectorAll(".choice-label, .choice-value"),i=this.el.querySelectorAll(".choice-selected"),l=0;t.length>l;l++)t[l].value="";i[0].checked=!1}}}),wp.ccf.views.FieldBase=wp.ccf.views.FieldBase||t.View.extend({events:{"blur input":"saveField","blur input.field-slug":"checkSlug","blur textarea":"saveField","change select":"saveField",'change input[type="checkbox"]':"saveField"},checkSlug:function(){var e=this.el.querySelectorAll(".field-slug");if(e.length>0){var t=e[0],i=!1;t.parentNode.className=t.value&&!t.value.match(/^[a-zA-Z0-9\-_]+$/)?t.parentNode.className.replace(/ field-error/i,"")+" field-error":t.parentNode.className.replace(/ field-error/i,""),this.collection.length>0&&""!==t.value?(this.collection.each(function(e){e!==this.model&&t.value===e.get("slug")&&(i=!0)},this),t.parentNode.className=i?t.parentNode.className.replace(/ field-duplicate-slug/i,"")+" field-duplicate-slug":t.parentNode.className.replace(/ field-duplicate-slug/i,"")):t.parentNode.className=t.parentNode.className.replace(/ field-duplicate-slug/i,"")}},destroy:function(){this.unbind()},render:function(){return this.el.innerHTML=this.template({field:this.model.toJSON()}),this.checkSlug(),this}}),wp.ccf.views.Fields["single-line-text"]=wp.ccf.views.Fields["single-line-text"]||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-single-line-text-template"),initialize:function(){},saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("value",this.el.querySelectorAll(".field-value")[0].value),this.model.set("placeholder",this.el.querySelectorAll(".field-placeholder")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this):void 0}}),wp.ccf.views.Fields.file=wp.ccf.views.Fields.file||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-file-template"),initialize:function(){},saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this.model.set("fileExtensions",this.el.querySelectorAll(".field-file-extensions")[0].value),this.model.set("maxFileSize",this.el.querySelectorAll(".field-max-file-size")[0].value),this):void 0}}),wp.ccf.views.Fields.recaptcha=wp.ccf.views.Fields.recaptcha||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-recaptcha-template"),initialize:function(){},saveField:function(){return""!==this.el.innerHTML?(this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("siteKey",this.el.querySelectorAll(".field-site-key")[0].value),this.model.set("secretKey",this.el.querySelectorAll(".field-secret-key")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this):void 0}}),wp.ccf.views.Fields["section-header"]=wp.ccf.views.Fields["section-header"]||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-section-header-template"),initialize:function(){},saveField:function(){return""!==this.el.innerHTML?(this.model.set("heading",this.el.querySelectorAll(".field-heading")[0].value),this.model.set("subheading",this.el.querySelectorAll(".field-subheading")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this):void 0}}),wp.ccf.views.Fields.html=wp.ccf.views.Fields.html||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-html-template"),initialize:function(){},saveField:function(){return""!==this.el.innerHTML?(this.model.set("html",this.el.querySelectorAll(".field-html")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this):void 0}}),wp.ccf.views.Fields["paragraph-text"]=wp.ccf.views.Fields["paragraph-text"]||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-paragraph-text-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("value",this.el.querySelectorAll(".field-value")[0].value),this.model.set("placeholder",this.el.querySelectorAll(".field-placeholder")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this):void 0}}),wp.ccf.views.Fields.hidden=wp.ccf.views.Fields.hidden||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-hidden-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("value",this.el.querySelectorAll(".field-value")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this):void 0}}),wp.ccf.views.Fields.date=wp.ccf.views.Fields.date||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-date-template"),saveField:function(){if(""!==this.el.innerHTML){this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value);var e=this.el.querySelectorAll(".field-value");e.length>0&&this.model.set("value",e[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("showDate",this.el.querySelectorAll(".field-show-date")[0].checked?!0:!1);var t=this.model.get("showTime"),i=this.el.querySelectorAll(".field-show-time")[0].checked?!0:!1;return this.model.set("showTime",i),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),i!=t&&this.render(),this}}}),wp.ccf.views.Fields.name=wp.ccf.views.Fields.name||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-name-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this):void 0}}),wp.ccf.views.Fields.website=wp.ccf.views.Fields.website||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-website-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("value",this.el.querySelectorAll(".field-value")[0].value),this.model.set("placeholder",this.el.querySelectorAll(".field-placeholder")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this):void 0}}),wp.ccf.views.Fields.phone=wp.ccf.views.Fields.phone||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-phone-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("value",this.el.querySelectorAll(".field-value")[0].value),this.model.set("placeholder",this.el.querySelectorAll(".field-placeholder")[0].value),this.model.set("phoneFormat",this.el.querySelectorAll(".field-phone-format")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this):void 0}}),wp.ccf.views.Fields.address=wp.ccf.views.Fields.address||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-address-template"),saveField:function(){return""!==this.el.innerHTML?(this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("addressType",this.el.querySelectorAll(".field-address-type")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1),this):void 0}}),wp.ccf.views.Fields.email=wp.ccf.views.Fields.email||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-email-template"),saveField:function(){if(""!==this.el.innerHTML){this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value);var e=this.el.querySelectorAll(".field-value");e.length&&this.model.set("value",e[0].value);var t=this.el.querySelectorAll(".field-placeholder");t.length&&this.model.set("placeholder",t[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1);var i=1==this.el.querySelectorAll(".field-email-confirmation")[0].value?!0:!1,l=this.model.get("emailConfirmation");return this.model.set("emailConfirmation",i),l!=i&&this.render(),this}}}),wp.ccf.views.ChoiceableField=wp.ccf.views.ChoiceableField||wp.ccf.views.FieldBase.extend({template:wp.ccf.utils.template("ccf-dropdown-template"),initialize:function(){var e=this.model.get("choices");this.listenTo(e,"add",this.addChoice)},addChoice:function(e){var t=new wp.ccf.views.FieldChoice({model:e,field:this.model}).render(),i=this.el.querySelectorAll(".repeatable-choices")[0];i.appendChild(t.el)},saveField:function(){if(""!==this.el.innerHTML){this.model.set("slug",this.el.querySelectorAll(".field-slug")[0].value),this.model.set("label",this.el.querySelectorAll(".field-label")[0].value),this.model.set("description",this.el.querySelectorAll(".field-description")[0].value),this.model.set("className",this.el.querySelectorAll(".field-class-name")[0].value),this.model.set("required",1==this.el.querySelectorAll(".field-required")[0].value?!0:!1);var t=this.el.querySelectorAll(".repeatable-choices")[0].querySelectorAll(".choice");return i.each(t,function(t){e(t).trigger("saveChoice")}),this}},render:function(){var t=this;t.el.innerHTML=t.template({field:t.model.toJSON()}),t.checkSlug();var i=t.model.get("choices"),l=this.el.querySelectorAll(".repeatable-choices")[0];if(i.length>=1)i.each(function(e){var i=new wp.ccf.views.FieldChoice({model:e,field:t.model}).render();l.appendChild(i.el)});else{var s=new wp.ccf.models.FieldChoice;i.add(s)}return l=this.el.querySelectorAll(".repeatable-choices")[0],e(l).sortable({handle:".move",axis:"y",stop:function(e,t){t.item.trigger("sorted",t.item.index())}}),t}}),wp.ccf.views.Fields.dropdown=wp.ccf.views.Fields.dropdown||wp.ccf.views.ChoiceableField.extend({template:wp.ccf.utils.template("ccf-dropdown-template"),events:function(){return this.constructor.__super__.events}}),wp.ccf.views.Fields.radio=wp.ccf.views.Fields.radio||wp.ccf.views.ChoiceableField.extend({template:wp.ccf.utils.template("ccf-radio-template"),events:function(){return this.constructor.__super__.events}}),wp.ccf.views.Fields.checkboxes=wp.ccf.views.Fields.checkboxes||wp.ccf.views.ChoiceableField.extend({template:wp.ccf.utils.template("ccf-checkboxes-template"),events:function(){return this.constructor.__super__.events}}),wp.ccf.views.FieldSidebar=wp.ccf.views.FieldSidebar||t.View.extend({initialize:function(e){this.currentFieldView=null,this.form=e.form},save:function(e){this.currentFieldView&&""!==this.currentFieldView.el.innerHTML&&this.currentFieldView.saveField(),e&&e instanceof Object&&e.resolve()},fieldRemoved:function(){this.currentFieldView&&(this.form.get("fields").get(this.currentFieldView.model)||this.render())},destroy:function(){wp.ccf.dispatcher.off("saveField",this.save),wp.ccf.dispatcher.off("mainViewChange",this.save),this.unbind()},render:function(e){var t={};if(e){var i=e.get("type");this.currentFieldView&&(this.currentFieldView.saveField(),this.currentFieldView.destroy&&this.currentFieldView.destroy()),this.currentFieldView=new wp.ccf.views.Fields[i]({model:e,collection:this.form.get("fields")}),this.currentFieldView.render(),this.el.innerHTML="",this.el.appendChild(this.currentFieldView.el);var l=this.form.get("fields");this.listenTo(l,"remove",this.fieldRemoved)}else{var s=wp.ccf.utils.template("ccf-empty-field-template");this.el.innerHTML=s(t)}return wp.ccf.dispatcher.on("saveField",this.save,this),wp.ccf.dispatcher.on("mainViewChange",this.save,this),this}}),wp.ccf.views.FieldRowPlaceholder=wp.ccf.views.FieldRowPlaceholder||t.View.extend({template:wp.ccf.utils.template("ccf-field-row-template"),tagName:"div",className:"field",initialize:function(e){this.type=e.type},render:function(){return this.el.innerHTML=this.template({label:l.allLabels[this.type]}),this.el.setAttribute("data-field-type",this.type),this.el.className+=" "+this.type,this}}),wp.ccf.views.FieldRow=wp.ccf.views.FieldRow||t.View.extend({template:wp.ccf.utils.template("ccf-field-row-template"),tagName:"div",className:"field",events:{"click .delete":"triggerDelete","click h4":"triggerEdit",sorted:"triggerUpdateSort"},initialize:function(e){i.bindAll(this,"triggerDelete"),this.form=e.form,this.listenTo(this.model,"change",this.handleChange,this),this.listenTo(this.model,"requirementsNotMet",this.requirementsNotMet,this),this.listenTo(this.model,"requirementsMet",this.requirementsMet,this),this.listenTo(this.model,"duplicateSlug",this.duplicateSlug,this),this.model.attributes.choices&&this.listenTo(this.model.attributes.choices,"change",this.handleChange,this)},duplicateSlug:function(){this.requirementsMet(),this.el.className+=" field-duplicate-slug"},requirementsNotMet:function(){this.requirementsMet(),this.el.className+=" field-incomplete"},requirementsMet:function(){this.el.className=this.el.className.replace(/(field-incomplete|field-duplicate-slug)/i,"")},triggerUpdateSort:function(e,t){this.form.get("fields").remove(this.model),this.form.get("fields").add(this.model,{at:t})},handleChange:function(){this.render()},triggerDelete:function(e){e.stopPropagation(),this.form.get("fields").remove(this.model),this.undelegateEvents(),this.remove()},triggerEdit:function(){var e=this.el.parentNode.querySelectorAll(".ccf-editing");i.each(e,function(e){e.className=e.className.replace(/ccf-editing/i,"")}),this.el.className=this.el.className.replace(/ccf-editing/i,"")+" ccf-editing",wp.ccf.dispatcher.trigger("openEditField",this.model)},render:function(e){this.el.innerHTML=this.template({label:l.allLabels[this.model.get("type")]}),this.el.setAttribute("data-field-type",this.model.get("type"));var t=RegExp(" "+this.model.get("type"),"i");this.el.className=this.el.className.replace(t,"")+" "+this.model.get("type"),e&&(this.el.className=this.el.className.replace(/ instantiated/i,"")+" instantiated");var i=document.getElementById("ccf-"+this.model.get("type")+"-preview-template");if(i){var s=this.el.querySelectorAll(".preview")[0];s.style.display="block",s.innerHTML=wp.ccf.utils.template("ccf-"+this.model.get("type")+"-preview-template")({field:this.model.toJSON()})}return this}}),wp.ccf.views.FormSettings=wp.ccf.views.FormSettings||t.View.extend({template:wp.ccf.utils.template("ccf-form-settings-template"),events:{"blur input":"save","change select":"save","change select.form-completion-action-type":"toggleCompletionFields","change select.form-pause":"togglePauseFields","change select.form-send-email-notifications":"toggleNotificationFields"},initialize:function(e){this.model=e.form},destroy:function(){wp.ccf.dispatcher.off("saveFormSettings",this.save),wp.ccf.dispatcher.off("mainViewChange",this.save)},toggleCompletionFields:function(){var e=this.el.querySelectorAll(".form-completion-action-type")[0].value,t=this.el.querySelectorAll(".completion-message")[0],i=this.el.querySelectorAll(".completion-redirect-url")[0];"text"===e?(t.style.display="block",i.style.display="none"):(t.style.display="none",i.style.display="block")},togglePauseFields:function(){var e=this.el.querySelectorAll(".form-pause")[0].value,t=this.el.querySelectorAll(".pause-message")[0];t.style.display=parseInt(e)?"block":"none"},save:function(e){if(""!==this.el.innerHTML){var t=this.el.querySelectorAll(".form-title")[0].value;this.model.set("title",t);var i=this.el.querySelectorAll(".form-description")[0].value;this.model.set("description",i);var l=this.el.querySelectorAll(".form-button-text")[0].value;this.model.set("buttonText",l);var s=this.el.querySelectorAll(".form-pause")[0].value;this.model.set("pause",parseInt(s)?!0:!1);var c=this.el.querySelectorAll(".form-pause-message")[0].value;this.model.set("pauseMessage",c);var r=this.el.querySelectorAll(".form-completion-message")[0].value;
|
2 |
+
this.model.set("completionMessage",r);var o=this.el.querySelectorAll(".form-completion-redirect-url")[0].value;this.model.set("completionRedirectUrl",o);var n=this.el.querySelectorAll(".form-completion-action-type")[0].value;this.model.set("completionActionType",n),e!==void 0&&e.promise!==void 0&&e.resolve()}},render:function(){var e={form:this.model.toJSON()};return this.el.innerHTML=this.template(e),this.toggleCompletionFields(),this.togglePauseFields(),wp.ccf.dispatcher.on("saveFormSettings",this.save,this),wp.ccf.dispatcher.on("mainViewChange",this.save,this),this}}),wp.ccf.views.FormNotifications=wp.ccf.views.FormNotifications||t.View.extend({template:wp.ccf.utils.template("ccf-form-notifications-template"),events:{"blur input":"save","change select":"save","change select.form-send-email-notifications":"toggleNotificationFields","change select.form-email-notification-from-type":"toggleNotificationFields","change select.form-email-notification-from-name-type":"toggleNotificationFields","change select.form-email-notification-subject-type":"toggleNotificationFields"},initialize:function(e){this.model=e.form},destroy:function(){wp.ccf.dispatcher.off("saveFormNotifications",this.save),wp.ccf.dispatcher.off("mainViewChange",this.save),this.undelegateEvents(),this.unbind()},updateFromFieldField:function(){var e=this.el.querySelectorAll(".form-email-notification-from-field")[0];e.innerHTML="",e.disabled=!1;var t=this.el.querySelectorAll(".form-email-notification-subject-field")[0];t.innerHTML="",t.disabled=!1;var i=this.el.querySelectorAll(".form-email-notification-from-name-field")[0];i.innerHTML="",i.disabled=!1;var s,c=this.model.get("fields"),r=0,o=0,n=0,a=this.model.get("emailNotificationFromField"),d=this.model.get("emailNotificationSubjectField"),u=this.model.get("emailNotificationFromNameField");c.length>=1&&c.each(function(l){"email"===l.get("type")?(s=document.createElement("option"),s.innerHTML=l.get("slug"),s.value=l.get("slug"),l.get("slug")===a&&(s.selected=!0),e.appendChild(s),r++):"name"===l.get("type")?(s=document.createElement("option"),s.innerHTML=l.get("slug"),s.value=l.get("slug"),l.get("slug")===u&&(s.selected=!0),i.appendChild(s),o++):"single-line-text"===l.get("type")&&(s=document.createElement("option"),s.innerHTML=l.get("slug"),s.value=l.get("slug"),l.get("slug")===d&&(s.selected=!0),t.appendChild(s),n++)}),0===r&&(s=document.createElement("option"),s.innerHTML=l.noEmailFields,e.appendChild(s),e.disabled=!0),0===o&&(s=document.createElement("option"),s.innerHTML=l.noNameFields,i.appendChild(s),i.disabled=!0),0===n&&(s=document.createElement("option"),s.innerHTML=l.noApplicableFields,t.appendChild(s),t.disabled=!0)},toggleNotificationFields:function(){var e,t=this.el.querySelectorAll(".form-send-email-notifications")[0].value,i=this.el.querySelectorAll(".email-notification-setting"),l=this.el.querySelectorAll(".email-notification-from-address")[0],s=this.el.querySelectorAll(".email-notification-from-field")[0],c=this.el.querySelectorAll(".form-email-notification-from-type")[0],r=this.el.querySelectorAll(".email-notification-subject")[0],o=this.el.querySelectorAll(".email-notification-subject-field")[0],n=this.el.querySelectorAll(".form-email-notification-subject-type")[0],a=this.el.querySelectorAll(".email-notification-from-name")[0],d=this.el.querySelectorAll(".email-notification-from-name-field")[0],u=this.el.querySelectorAll(".form-email-notification-from-name-type")[0];if(parseInt(t)){for(e=0;i.length>e;e++)i[e].style.display="block";l.style.display="none",s.style.display="none","custom"===c.value?l.style.display="block":"field"===c.value&&(s.style.display="block"),r.style.display="none",o.style.display="none","custom"===n.value?r.style.display="block":"field"===n.value&&(o.style.display="block"),a.style.display="none",d.style.display="none","custom"===u.value?a.style.display="block":"field"===u.value&&(d.style.display="block")}else{for(e=0;i.length>e;e++)i[e].style.display="none";l.style.display="none",s.style.display="none",r.style.display="none",o.style.display="none",a.style.display="none",d.style.display="none"}},save:function(e){if(""!==this.el.innerHTML){var t=this.el.querySelectorAll(".form-send-email-notifications")[0].value;this.model.set("sendEmailNotifications",parseInt(t)?!0:!1);var i=this.el.querySelectorAll(".form-email-notification-addresses")[0].value;this.model.set("emailNotificationAddresses",i);var l=this.el.querySelectorAll(".form-email-notification-from-type")[0].value;this.model.set("emailNotificationFromType",l);var s=this.el.querySelectorAll(".form-email-notification-from-address")[0].value;this.model.set("emailNotificationFromAddress",s);var c=this.el.querySelectorAll(".form-email-notification-from-field")[0].value;this.model.set("emailNotificationFromField",c);var r=this.el.querySelectorAll(".form-email-notification-from-name-type")[0].value;this.model.set("emailNotificationFromNameType",r);var o=this.el.querySelectorAll(".form-email-notification-from-name")[0].value;this.model.set("emailNotificationFromName",o);var n=this.el.querySelectorAll(".form-email-notification-from-name-field")[0].value;this.model.set("emailNotificationFromNameField",n);var a=this.el.querySelectorAll(".form-email-notification-subject-type")[0].value;this.model.set("emailNotificationSubjectType",a);var d=this.el.querySelectorAll(".form-email-notification-subject")[0].value;this.model.set("emailNotificationSubject",d);var u=this.el.querySelectorAll(".form-email-notification-subject-field")[0].value;this.model.set("emailNotificationSubjectField",u),e!==void 0&&e.promise!==void 0&&e.resolve()}},render:function(){var e={form:this.model.toJSON()},t=this.model.get("fields");return this.el.innerHTML=this.template(e),this.toggleNotificationFields(),this.updateFromFieldField(),wp.ccf.dispatcher.on("saveFormNotifications",this.save,this),wp.ccf.dispatcher.on("mainViewChange",this.save,this),this.listenTo(t,"add",this.updateFromFieldField,this),this.listenTo(t,"remove",this.updateFromFieldField,this),this}}),wp.ccf.views.FormPane=wp.ccf.views.FormPane||t.View.extend(i.defaults({template:wp.ccf.utils.template("ccf-form-pane-template"),subViews:{"field-sidebar":wp.ccf.views.FieldSidebar,"form-settings":wp.ccf.views.FormSettings,"form-notifications":wp.ccf.views.FormNotifications},events:{"click .save-button":"sync","click h2":"accordionClick","click .insert-form-button":"insertForm"},initialize:function(){wp.ccf.dispatcher.on("openEditField",this.openEditField,this)},insertForm:function(){wp.ccf.utils.insertFormShortcode(this.model),wp.ccf.toggle()},accordionClick:function(t){var l=e(t.currentTarget).parents(".accordion-container")[0],s=l.querySelectorAll(".accordion-section");t.currentTarget.parentNode.className.match(/expanded/i)?t.currentTarget.parentNode.className=t.currentTarget.parentNode.className.replace(/expanded/i,""):t.currentTarget.parentNode.className+=" expanded",i.each(s,function(e){e!=t.currentTarget.parentNode&&e.className.match(/expanded/i)&&(e.className=e.className.replace(/expanded/i,""))})},openEditField:function(e){this.renderedSubViews["field-sidebar"].render(e).el.style.display="block"},disable:function(){this.el.querySelectorAll(".save-button")[0].setAttribute("disabled","disabled"),this.el.querySelectorAll(".disabled-overlay")[0].style.display="block"},enable:function(){this.el.querySelectorAll(".save-button")[0].removeAttribute("disabled"),this.el.querySelectorAll(".disabled-overlay")[0].style.display="none"},sync:function(){var t=this,i=e(this.el.querySelectorAll(".spinner")[0]);i.fadeIn(),t.disable();var s=e.Deferred(),c=e.Deferred(),r=e.Deferred();wp.ccf.dispatcher.trigger("saveFormSettings",s),wp.ccf.dispatcher.trigger("saveFormNotifications",r),wp.ccf.dispatcher.trigger("saveField",c),e.when(s,c,r).then(function(){var e=t.model.get("fields"),s=!0,c={};e.each(function(e){var t=e.get("slug");e.hasRequiredAttributes()?t&&!t.match(/^[a-zA-Z0-9\-_]+$/)?(s=!1,e.trigger("requirementsNotMet")):c[e.get("slug")]!==void 0?(s=!1,e.trigger("duplicateSlug"),c[e.get("slug")].trigger("duplicateSlug")):e.trigger("requirementsMet"):(s=!1,e.trigger("requirementsNotMet")),e.get("slug")&&(c[e.get("slug")]=e)}),s?t.model.save({},{context:"edit"}).error(function(){var e="sync";wp.ccf.errorModal.render(e).show()}).done(function(){l.single&&!l.postId&&(window.location=l.adminUrl+"post.php?post="+t.model.get("ID")+"&action=edit#ccf-form/"+t.model.get("ID"))}).complete(function(){i.fadeOut(),t.enable(),wp.ccf.dispatcher.trigger("saveFormComplete",t.model)}):(t.enable(),i.fadeOut())})},enableDisableInsert:function(){var e=this.el.querySelectorAll(".insert-form-button")[0];this.model.get("ID")?e.removeAttribute("disabled"):e.setAttribute("disabled","disabled")},getNextFieldOrd:function(){var e=this.model.get("fields"),t=e.length+1;return e.each(function(e){var i=e.get("slug"),l=/\-([0-9]+)$/g,s=l.exec(i);if(s&&s[1]){var c=parseInt(s[1]);c>=t&&(t=c+1)}}),t},render:function(t){var s=this;s.model=t?t:new wp.ccf.models.Form,this.listenTo(s.model,"change",this.enableDisableInsert,this);var c={labels:l.fieldLabels,form:s.model.toJSON()};window.form=s.model,s.el.innerHTML=this.template(c);var r=s.el.querySelectorAll(".fields")[0];i.each(l.fieldLabels,function(e,t){r.appendChild(new wp.ccf.views.FieldRowPlaceholder({type:t}).render().el)});var o=s.el.querySelectorAll(".structure-fields")[0];i.each(l.structureFieldLabels,function(e,t){o.appendChild(new wp.ccf.views.FieldRowPlaceholder({type:t}).render().el)});var n=s.el.querySelectorAll(".special-fields")[0];i.each(l.specialFieldLabels,function(e,t){n.appendChild(new wp.ccf.views.FieldRowPlaceholder({type:t}).render().el)});var a=s.model.get("fields"),d=s.el.querySelectorAll(".form-content")[0],u=e(d);return e(s.el.querySelectorAll(".left-sidebar")[0].querySelectorAll(".field")).draggable({cursor:"move",distance:2,zIndex:160001,scroll:!1,containment:"document",appendTo:".ccf-main-modal",snap:!1,connectToSortable:".form-content",helper:function(t){var i=e(t.currentTarget),l=e('<div class="field" data-field-type="'+i.attr("data-field-type")+'"><h4>'+i.find(".label").html()+"</h4></div>");return l.css({width:u.width(),opacity:".75",height:i.height()})}}),a.length>=1&&(d.innerHTML="",a.each(function(e){var t=new wp.ccf.views.FieldRow({model:e,form:s.model}).render(!0).el;d.appendChild(t)})),e(d).sortable({axis:"y",distance:2,handle:"h4",placeholder:"field-placeholder",stop:function(e,t){if(!t.item.hasClass("instantiated")){var i=t.item.attr("data-field-type"),l={};wp.ccf.models.Fields[i].prototype.defaults().slug!==void 0&&(l.slug=i+"-"+s.getNextFieldOrd());var c=new wp.ccf.models.Fields[i](l),r=s.model.get("fields");r.add(c),new wp.ccf.views.FieldRow({model:c,el:t.item,form:s.model}).render(!0),t.item.attr("style","")}t.item.trigger("sorted",t.item.index())}}),s.initRenderSubViews(!0,!0,{form:s.model}),s.enableDisableInsert(),s}},wp.ccf.mixins.subViewable)),wp.ccf.views.ExistingFormTableRow=wp.ccf.views.ExistingFormTableRow||t.View.extend({tagName:"tr",template:wp.ccf.utils.template("ccf-existing-form-table-row-template"),events:{"click .edit":"triggerMainViewChange","click .delete":"triggerDelete","click .insert-form-button":"insertForm"},initialize:function(e){this.parent=e.parent},insertForm:function(){wp.ccf.utils.insertFormShortcode(this.model),wp.ccf.toggle()},triggerMainViewChange:function(){wp.ccf.switchToForm(this.model)},triggerDelete:function(){var e,t=this,i=t.parent.collection.state.currentPage;t.model.destroy().done(function(){e=i,e===t.parent.collection.state.totalPages&&e-1===(t.parent.collection.state.totalObjects-1)/l.postsPerPage&&e--,t.parent.showPage(e).done(function(){t.parent.renderPagination()})})},render:function(){return this.$el.html(this.template({form:this.model.toJSON(),utils:{getPrettyPostDate:wp.ccf.utils.getPrettyPostDate}})),this}}),wp.ccf.views.EmptyFormTableRow=wp.ccf.views.EmptyFormTableRow||t.View.extend({tagName:"tr",template:wp.ccf.utils.template("ccf-empty-form-table-row-template"),render:function(){return this.$el.html(this.template()),this}}),wp.ccf.views.ExistingFormTable=wp.ccf.views.ExistingFormTable||t.View.extend({template:wp.ccf.utils.template("ccf-existing-form-table-template"),initialize:function(){this.parent=arguments.parent,this.collection=new wp.ccf.collections.Forms,wp.ccf.dispatcher.on("changeFormTablePage",this.showPage,this),wp.ccf.dispatcher.on("saveFormComplete",this.render,this)},showPage:function(e){var t=this,i=this.collection.fetch({data:{page:e}});return i.error(function(){var e="sync";wp.ccf.errorModal.render(e).show()}),i.done(function(){var e=t.el.querySelectorAll(".rows")[0],i=document.createElement("tbody");i.className="rows",t.collection.length>=1?t.collection.each(function(e){var l=new wp.ccf.views.ExistingFormTableRow({model:e,parent:t}).render();i.appendChild(l.el)},t):i.appendChild((new wp.ccf.views.EmptyFormTableRow).render().el),e.parentNode.replaceChild(i,e)}),i},renderPagination:function(){var e=this.el.querySelectorAll(".ccf-pagination")[0];e.innerHTML="",this.collection.state.totalPages>1&&e.appendChild(new wp.ccf.views.Pagination({parent:this}).render(this.collection.state.totalPages,this.collection.state.currentPage).el)},render:function(){var e=this;return this.el.innerHTML=this.template(),this.el.querySelectorAll(".ccf-pagination")[0],this.showPage(1).done(function(){e.renderPagination()}),this}}),wp.ccf.views.ExistingFormPane=wp.ccf.views.ExistingFormPane||t.View.extend(i.defaults({template:wp.ccf.utils.template("ccf-existing-form-pane-template"),subViews:{"existing-form-table":wp.ccf.views.ExistingFormTable},render:function(){return this.rendered?this:(this.rendered=!0,this.el.innerHTML=this.template(),this.initRenderSubViews(!0),this)}},wp.ccf.mixins.subViewable)),wp.ccf.views.MainModal=wp.ccf.views.MainModal||t.View.extend(i.defaults({tagName:"div",className:"ccf-main-modal",template:wp.ccf.utils.template("ccf-main-modal-template"),events:{"click .close-icon":"hide","click .main-menu a":"menuClick"},subViews:{"form-pane":wp.ccf.views.FormPane},initialize:function(){l.single||(this.subViews["existing-form-pane"]=wp.ccf.views.ExistingFormPane),wp.ccf.dispatcher.on("mainViewChange",this.toggleView,this)},toggleView:function(e){this.showView(e,wp.ccf.currentForm);var t=e;"form-pane"===e&&wp.ccf.currentForm&&(t="existing-form-pane");var l=this.el.querySelectorAll(".menu-item");i.each(l,function(e){var i=e.getAttribute("data-view");e.className=i===t?e.className.replace("selected","")+" selected":e.className.replace("selected","")})},menuClick:function(e){var t=e.target.getAttribute("data-view");"form-pane"===t&&(wp.ccf.currentForm=null),wp.ccf.dispatcher.trigger("mainViewChange",t),e.preventDefault()},render:function(e){return e=e||!1,this.overlay(),this.el.innerHTML=this.template({single:e}),this.initRenderSubViews(),this.showView("form-pane",wp.ccf.currentForm,!0),this},overlay:function(){return this.overlayEl===void 0&&(this.overlayEl=document.createElement("div"),this.overlayEl.className="ccf-main-modal-overlay",document.body.appendChild(this.overlayEl)),this.overlayEl},remove:function(){return document.body.removeChild(this.overlay()),this},show:function(){e(this.overlay()).show(),this.$el.show()},hide:function(){e(this.overlay()).hide(),this.$el.hide()}},wp.ccf.mixins.subViewable)),wp.ccf.views.SubmissionRow=wp.ccf.views.SubmissionRow||t.View.extend({tagName:"tr",template:wp.ccf.utils.template("ccf-submission-row-template"),events:{"click .view":"view","click .delete":"delete"},initialize:function(e){this.parent=e.parent},"delete":function(){var e,t=this,i=t.parent.collection.state.currentPage;t.model.destroy().done(function(){e=i,e===t.parent.collection.state.totalPages&&e-1===(t.parent.collection.state.totalObjects-1)/l.postsPerPage&&e--,t.parent.showPage(e).done(function(){t.parent.renderPagination()})})},view:function(e){var t=e.currentTarget.getAttribute("data-submission-id"),i=e.currentTarget.getAttribute("data-submission-date");tb_show(l.thickboxTitle+" - "+wp.ccf.utils.getPrettyPostDate(i),"#TB_inline?height=500&width=700&inlineId=ccf-submission-content-"+parseInt(t),null)},render:function(){return this.$el.html(this.template({submission:this.model.toJSON(),currentColumns:this.parent.columns,columns:wp.ccf.currentForm.getFieldSlugs(!0),utils:{getPrettyPostDate:wp.ccf.utils.getPrettyPostDate,wordChop:wp.ccf.utils.wordChop,isFieldDate:wp.ccf.utils.isFieldDate,isFieldName:wp.ccf.utils.isFieldName,isFieldFile:wp.ccf.utils.isFieldFile,isFieldAddress:wp.ccf.utils.isFieldAddress,isFieldEmailConfirm:wp.ccf.utils.isFieldEmailConfirm,getPrettyFieldDate:wp.ccf.utils.getPrettyFieldDate,getPrettyFieldAddress:wp.ccf.utils.getPrettyFieldAddress,getPrettyFieldName:wp.ccf.utils.getPrettyFieldName,getPrettyFieldEmailConfirm:wp.ccf.utils.getPrettyFieldEmailConfirm}})),this}}),wp.ccf.views.SubmissionsTable=wp.ccf.views.SubmissionsTable||t.View.extend({template:wp.ccf.utils.template("ccf-submission-table-template"),events:{"click .prev:not(.disabled)":"previousPage","click .next:not(.disabled)":"nextPage","click .first:not(.disabled)":"firstPage","click .last:not(.disabled)":"lastPage"},initialize:function(){this.collection=new wp.ccf.collections.Submissions({},{formId:l.postId}),wp.ccf.dispatcher.on("submissionTableRebuild",this.render,this)},showPage:function(e){var t=this,i=this.collection.fetch({data:{page:e}});return i.error(function(){var e="sync";wp.ccf.errorModal.render(e).show()}),i.done(function(){var e=t.el.querySelectorAll(".submission-rows")[0],i=document.createElement("tbody");i.className="submission-rows",t.collection.length>=1?t.collection.each(function(e){var l=new wp.ccf.views.SubmissionRow({model:e,parent:t}).render();i.appendChild(l.el)},t):i.appendChild(new wp.ccf.views.EmptySubmissionTableRow({parent:t}).render(wp.ccf.currentForm.getFieldSlugs(!0).concat("date")).el),e.parentNode.replaceChild(i,e)}),i},renderPagination:function(){var e=this.el.querySelectorAll(".ccf-pagination")[0];e.innerHTML="",this.collection.state.totalPages>1&&e.appendChild(new wp.ccf.views.Pagination({parent:this}).render(this.collection.state.totalPages,this.collection.state.currentPage).el)},render:function(e){var t=this;return t.columns=e?e:wp.ccf.currentForm.getFieldSlugs(!0).slice(0,4).concat("date"),1>t.columns.length?t.el.innerHTML="":(t.el.innerHTML=t.template({columns:t.columns}),t.el.querySelectorAll(".ccf-pagination")[0],t.showPage(1).done(function(){t.renderPagination()})),t}}),wp.ccf.views.ErrorModal=wp.ccf.views.ErrorModal||t.View.extend({template:wp.ccf.utils.template("ccf-error-modal-template"),tagName:"div",className:"ccf-error-modal",events:{"click .close":"hide"},hide:function(){this.el.className=this.el.className.replace(" show","")},show:function(){this.el.className=this.el.className.replace(" show","")+" show"},toggle:function(){this.el.className.match(" show")?this.hide():this.show()},render:function(e){var t={messageType:""};return e&&(t.messageType=e),this.el.innerHTML=this.template(t),this}}),wp.ccf.views.Pagination=wp.ccf.views.Pagination||t.View.extend({template:wp.ccf.utils.template("ccf-pagination-template"),events:{"click .prev:not(.disabled)":"previousPage","click .next:not(.disabled)":"nextPage","click .first:not(.disabled)":"firstPage","click .last:not(.disabled)":"lastPage"},initialize:function(e){this.parent=e.parent},previousPage:function(){var e=this;e.parent.showPage(e.parent.collection.state.currentPage-1).done(function(){e.render()})},nextPage:function(){var e=this;e.parent.showPage(e.parent.collection.state.currentPage+1).done(function(){e.render()})},firstPage:function(){var e=this;e.parent.showPage(1).done(function(){e.render()})},lastPage:function(){var e=this;e.parent.showPage(e.parent.collection.state.totalPages).done(function(){e.render()})},render:function(){return this.el.innerHTML=this.template({totalPages:this.parent.collection.state.totalPages,currentPage:this.parent.collection.state.currentPage,totalObjects:this.parent.collection.state.totalObjects}),this}}),wp.ccf.views.EmptySubmissionTableRow=wp.ccf.views.EmptySubmissionTableRow||t.View.extend({tagName:"tr",template:wp.ccf.utils.template("ccf-no-submissions-row-template"),initialize:function(e){this.parent=e.parent},render:function(){return this.el.innerHTML=this.template({columns:this.parent.columns}),this}}),wp.ccf.views.SubmissionColumnController=wp.ccf.views.SubmissionColumnController||t.View.extend({template:wp.ccf.utils.template("ccf-submissions-controller-template"),events:{"click input[type=checkbox]":"triggerTableRebuild"},render:function(){this.el.innerHTML=this.template({columns:wp.ccf.currentForm.getFieldSlugs(!0).concat("date")})},triggerTableRebuild:function(){var e=[],t=document.querySelectorAll(".submission-column-checkbox");if(t.length>=1)for(var i=0;t.length>i;i++)t[i].checked&&e.push(t[i].value);wp.ccf.dispatcher.trigger("submissionTableRebuild",e)}})}(jQuery,Backbone,_,ccfSettings),function(e,t){"use strict";wp.ccf.router=wp.ccf.router||t.Router.extend({routes:{"ccf-form":"open","ccf-form/:formId":"open"},open:function(e){wp.ccf.show(e)}})}(jQuery,Backbone,_,ccfSettings),function(e,t,i,l){"use strict";wp.ccf=i.defaults(wp.ccf,{forms:new wp.ccf.collections.Forms,currentForm:null,errorModal:null,_currentFormDeferred:null,dispatcher:{},show:function(e){return this.switchToForm(e),this.instance.show(),this.instance},initErrorModal:function(){this.errorModal=(new wp.ccf.views.ErrorModal).render();var e=document.getElementsByTagName("body")[0];e.appendChild(this.errorModal.el)},switchToForm:function(e){var t=this;if(+e===parseInt(e)){var i=parseInt(e);if(e=t.forms.findWhere({ID:parseInt(i)}),!e){var l;return t.forms.formsFetching[i]!==void 0?(l=t.forms.formsFetching[i],e=null):(e=new wp.ccf.models.Form({ID:i}),l=e.fetch(),t.forms.formsFetching[i]=l),l.done(function(){e?(delete t.forms.formsFetching[i],t.forms.add(e)):e=t.forms.findWhere({ID:i}),t.currentForm=e,wp.ccf.dispatcher.trigger("mainViewChange","form-pane")}),l}t.currentForm=e,wp.ccf.dispatcher.trigger("mainViewChange","form-pane")}else t.currentForm=e,wp.ccf.dispatcher.trigger("mainViewChange","form-pane");return!0},hide:function(){return this.instance.hide(),this.instance},toggle:function(e){return this.switchToForm(e),this.instance.$el.is(":visible")?this.instance.hide():this.instance.show(),this.instance},createSubmissionsTable:function(e){var t=document.querySelectorAll(".ccf-submission-column-controller"),i=new wp.ccf.views.SubmissionsTable({el:e});i.render(),t&&new wp.ccf.views.SubmissionColumnController({el:t}).render()},_setupMainModal:function(e){return this.instance=(new wp.ccf.views.MainModal).render(e),document.getElementsByTagName("body")[0].appendChild(this.instance.el),t.history.start(),this.instance},createManager:function(){var s=this,c=document.querySelectorAll(".ccf-open-form-manager")[0];if(!c)return!1;i.extend(this.dispatcher,t.Events),new wp.ccf.router,s.initErrorModal();var r=!1;if(l.single)if(r=!0,l.postId){var o=parseInt(l.postId);if(s.forms.formsFetching[o]===void 0){var n=new wp.ccf.models.Form({ID:o}),a=n.fetch();s.forms.formsFetching[o]=a,s._currentFormDeferred=a,a.done(function(){delete s.forms.formsFetching[o],s.forms.add(n),s.currentForm=n})}else s._currentFormDeferred=s.forms.formsFetching[o],s._currentFormDeferred.done(function(){s.currentForm=s.forms.findWhere({ID:o})});e.when(s._currentFormDeferred).then(function(){s._setupMainModal(!0),c.style.display="inline-block";var e=document.getElementById("ccf-submissions");if(e){var t=e.querySelectorAll(".inside")[0],i=document.createElement("div");i.className="ccf-submission-icon",i.setAttribute("data-icon","");var r=document.createElement("a");r.href="?action=edit&post="+parseInt(l.postId)+"&download_submissions=1&download_submissions_nonce="+l.downloadSubmissionsNonce,r.className="ccf-submission-icon",r.setAttribute("data-icon","");var o=document.getElementById("show-settings-link");i.onclick=function(){o.click()},e.insertBefore(i,e.firstChild.nextSibling.nextSibling),e.insertBefore(r,e.firstChild.nextSibling.nextSibling),wp.ccf.createSubmissionsTable(t)}})}else s._setupMainModal(!0),c.style.display="inline-block";else s._setupMainModal();var d=function(e){e=e||window.event;var t=e.currentTarget?e.currentTarget:e.srcElement,i=t.getAttribute("data-form-id");wp.ccf.toggle(i)};c.addEventListener?c.addEventListener("click",d,!1):c.attachEvent("onclick",d)}}),wp.ccf.createManager()}(jQuery,Backbone,_,ccfSettings);
|
build/js/form.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function(e,t){"use strict";window.wp=window.wp||{},wp.ccf=wp.ccf||{},wp.ccf.validators=wp.ccf.validators||{};var i={},l={};window.ccfRecaptchaOnload=function(){for(var e=document.querySelectorAll(".ccf-recaptcha-wrapper"),l=function(l){grecaptcha.render(e[s],{sitekey:e[s].getAttribute("data-sitekey"),theme:t.recaptcha_theme,callback:function(){i[l]=!0}})},s=0;e.length>s;s++){var r=e[s].getAttribute("data-form-id");l(r)}};var s=function(e){if(this.wrapper=e,this.errors={},e.className.match(" field-required")){this.inputs=this.wrapper.querySelectorAll(".field-input");var i=this.wrapper.querySelectorAll(".error");i.length&&i[0].parentNode.removeChild(i[0]);var l=!1;if(_.each(this.inputs,function(e){(e.checked&&e.value||e.selected)&&(l=!0)}),!l){this.errors[this.inputs[this.inputs.length-1].getAttribute("name")]={required:!0};var s=document.createElement("div");s.className="error required-error",s.innerHTML=t.required,e.appendChild(s)}}},r=function(e,i){return function(l){this.wrapper=l,this.inputs=this.wrapper.querySelectorAll(".field-input"),this.errors={};for(var s=this.wrapper.querySelectorAll(".error"),r=s.length-1;r>=0;r--)s[r].parentNode.removeChild(s[r]);_.each(this.inputs,function(t){var i=t.getAttribute("name");this.errors[i]={},t.getAttribute("aria-required")&&""===t.value&&(this.errors[i].required=t),e&&e.call(this,t)},this),i&&i.call(this);var c;for(var o in this.errors)if(this.errors.hasOwnProperty(o))for(var n in this.errors[o])c=document.createElement("div"),c.className="error "+n+"-error",c.setAttribute("data-field-name",o),c.innerHTML=t[n],this.errors[o][n].parentNode.insertBefore(c,this.errors[o][n].nextSibling)}};wp.ccf.validators["single-line-text"]=wp.ccf.validators["single-line-text"]||r(),wp.ccf.validators["paragraph-text"]=wp.ccf.validators["paragraph-text"]||r(),wp.ccf.validators.name=wp.ccf.validators.name||r(),wp.ccf.validators.email=wp.ccf.validators.email||r(!1,function(){var e=this.inputs[0].value;if(e){2===this.inputs.length&&e!==this.inputs[1].value&&(this.errors[this.inputs[0].getAttribute("name")].match=this.wrapper.lastChild);var t=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;t.test(e)||(this.errors[this.inputs[0].getAttribute("name")].email=this.wrapper.lastChild)}}),wp.ccf.validators.recaptcha=wp.ccf.validators.recaptcha||function(e,l){this.wrapper=e,this.inputs=this.wrapper.querySelectorAll(".g-recaptcha-response"),this.errors={};for(var s=this.wrapper.querySelectorAll(".error"),r=s.length-1;r>=0;r--)s[r].parentNode.removeChild(s[r]);i[l]||(this.errors["g-recaptcha-response"]={},this.errors["g-recaptcha-response"].recaptcha=this.wrapper.lastChild);var c;for(var o in this.errors)if(this.errors.hasOwnProperty(o))for(var n in this.errors[o])c=document.createElement("div"),c.className="error "+n+"-error",c.setAttribute("data-field-name",o),c.innerHTML=t[n],this.errors[o][n].parentNode.insertBefore(c,this.errors[o][n].nextSibling)},wp.ccf.validators.phone=wp.ccf.validators.phone||r(!1,function(){var e=this.inputs[0].value;if(e){var t=/^[0-9+.)(\- ]+$/;if(t.test(e)){if("us"===this.wrapper.getAttribute("data-phone-format")){var i=e.replace(/[^0-9]/gi,"");10!==i.length&&(this.errors[this.inputs[0].getAttribute("name")].digits=this.wrapper.lastChild)}}else this.errors[this.inputs[0].getAttribute("name")].phone=this.wrapper.lastChild}}),wp.ccf.validators.date=wp.ccf.validators.date||function(e){this.wrapper=e,this.errors={},this.inputs=this.wrapper.querySelectorAll(".field-input");for(var i=this.wrapper.querySelectorAll(".error"),l=i.length-1;l>=0;l--)i[l].parentNode.removeChild(i[l]);var s;_.each(this.inputs,function(i){var l=i.getAttribute("name");if(this.errors[l]={},i.getAttribute("aria-required")&&""===i.value&&(this.errors[l].required=!0,s=document.createElement("div"),s.className="error required-error",1===this.inputs.length?(s.innerHTML=t.required,s.className+=" right-error",i.parentNode.insertBefore(s,i.nextSibling)):(s.innerHTML=t[l.replace(/.*\[(.*?)\]/i,"$1")+"_required"],e.appendChild(s))),""!==i.value){var r=l.replace(/^.*\[(.*?)\]$/,"$1");"date"===r?i.value.match(/^([0-9]|\/)+$/)||(s=document.createElement("div"),s.className="error date-error",s.innerHTML=t.date,e.appendChild(s)):"hour"===r?i.value.match(/^[0-9]+$/)||(s=document.createElement("div"),s.className="error hour-error",s.innerHTML=t.hour,e.appendChild(s)):"minute"===r&&(i.value.match(/^[0-9]+$/)||(s=document.createElement("div"),s.className="error minute-error",s.innerHTML=t.minute,e.appendChild(s)))}},this)},wp.ccf.validators.address=wp.ccf.validators.address||r(),wp.ccf.validators.file=wp.ccf.validators.file||function(e){this.wrapper=e,this.inputs=this.wrapper.querySelectorAll(".field-input"),this.errors={};for(var i=this.wrapper.querySelectorAll(".error"),l=i.length-1;l>=0;l--)i[l].parentNode.removeChild(i[l]);_.each(this.inputs,function(e){var t=e.getAttribute("name");this.errors[t]={},e.getAttribute("aria-required")&&""===e.value&&(this.errors[t].required=e)},this);var s=this.inputs[0],r=this.wrapper.getAttribute("data-max-file-size"),c=this.wrapper.getAttribute("data-file-extensions");if(s.value){if(r){var o=1e3*1e3*parseInt(r);if(s.files)s.files[0].size>o&&(this.errors[this.inputs[0].getAttribute("name")].fileSize=this.wrapper.lastChild);else if("undefined"!=typeof ActiveXObject)try{var n=new ActiveXObject("Scripting.FileSystemObject"),a=n.getFile(s.value);a.size>o&&(this.errors[this.inputs[0].getAttribute("name")].fileSize=this.wrapper.lastChild)}catch(d){}}if(c){var f=c.replace(";",",").toLowerCase();if(f=f.replace(/\s+/g,""),f=f.split(","),f.length){var u=s.value.replace(/^.*\.(.+)$/g,"$1").toLowerCase();-1===_.indexOf(f,u)&&(this.errors[this.inputs[0].getAttribute("name")].fileExtension=this.wrapper.lastChild)}}}var p;for(var m in this.errors)if(this.errors.hasOwnProperty(m))for(var h in this.errors[m])p=document.createElement("div"),p.className="error "+h+"-error",p.setAttribute("data-field-name",m),p.innerHTML=t[h],"fileExtension"===h&&c?p.innerHTML+=" ("+c+")":"fileSize"===h&&r&&(p.innerHTML+=" "+r+" MB"),this.errors[m][h].parentNode.insertBefore(p,this.errors[m][h].nextSibling)},wp.ccf.validators.website=wp.ccf.validators.website||r(function(e){if(e.value){var t=/^http(s?)\:\/\/(([a-zA-Z0-9\-\._]+(\.[a-zA-Z0-9\-\._]+)+)|localhost)(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_]*)?([\d\w\.\/\%\+\-\=\&\?\:\\\"\'\,\|\~\;]*)$/;t.test(e.value)||(this.errors[e.getAttribute("name")].website=e)}}),wp.ccf.validators.checkboxes=wp.ccf.validators.checkboxes||s,wp.ccf.validators.dropdown=wp.ccf.validators.dropdown||r(),wp.ccf.validators.radio=wp.ccf.validators.radio||s,wp.ccf.iframeOnload=function(e){l[e]&&l[e]()},wp.ccf.setupDOM=wp.ccf.setupDOM||function(){for(var s=document.querySelectorAll(".ccf-datepicker"),r=0;s.length>r;r++)e(s[r]).datepicker();var c=document.querySelectorAll(".ccf-form-wrapper");c.length>=1&&_.each(c,function(s){function r(t){var i=s.querySelectorAll(".field"),l=[];if(_.each(i,function(e){if(!e.className.match(/ skip-field/i)){var t=e.getAttribute("data-field-type"),i=e.getAttribute("data-field-slug");m[i]=e;var s=new wp.ccf.validators[t](e,n);if(_.size(s.errors)){var r=0;for(var c in s.errors)s.errors.hasOwnProperty(c)&&_.size(s.errors[c])&&r++;r>0&&l.push(s)}}}),!l.length)return o.trigger("ccfFormSuccess"),s.className=s.className.replace(/ loading/i,"")+" loading",f.animate({opacity:100}),!0;t.returnFalse=!1,t.preventDefault&&t.preventDefault(),o.trigger("ccfFormError",l);var r=e(window).scrollTop(),c=r+e(window).height(),a=e(l[0].wrapper),d=a.offset(),u=d.top,p=u+a.height();return u>=r&&c>=p||e("html, body").animate({scrollTop:a.offset().top},500),!1}var c=s.querySelectorAll(".ccf-form")[0],o=e(c),n=parseInt(s.getAttribute("data-form-id")),a=c.querySelectorAll(".ccf-submit-button")[0],d=document.getElementById("ccf_form_frame_"+n),f=e(c.querySelectorAll(".loading-img")[0]),u=e(d),p=e(a),m={};l[n]=function(){var l,s=u.contents().find("body").text();if(!s)return!1;c.className=c.className.replace(/ loading/i,""),f.animate({opacity:0}),i[n]=!1;try{l=e.parseJSON(s)}catch(r){var o=document.createElement("div");return o.className="error unknown-error",o.innerText=t.unknown,a.parentNode.appendChild(o),!1}var d=a.parentNode.querySelectorAll(".error");d.length&&d[0].parentNode.removeChild(d[0]),l.success
|
1 |
+
(function(e,t){"use strict";window.wp=window.wp||{},wp.ccf=wp.ccf||{},wp.ccf.validators=wp.ccf.validators||{};var i={},l={};window.ccfRecaptchaOnload=function(){for(var e=document.querySelectorAll(".ccf-recaptcha-wrapper"),l=function(l){grecaptcha.render(e[s],{sitekey:e[s].getAttribute("data-sitekey"),theme:t.recaptcha_theme,callback:function(){i[l]=!0}})},s=0;e.length>s;s++){var r=e[s].getAttribute("data-form-id");l(r)}};var s=function(e){if(this.wrapper=e,this.errors={},e.className.match(" field-required")){this.inputs=this.wrapper.querySelectorAll(".field-input");var i=this.wrapper.querySelectorAll(".error");i.length&&i[0].parentNode.removeChild(i[0]);var l=!1;if(_.each(this.inputs,function(e){(e.checked&&e.value||e.selected)&&(l=!0)}),!l){this.errors[this.inputs[this.inputs.length-1].getAttribute("name")]={required:!0};var s=document.createElement("div");s.className="error required-error",s.innerHTML=t.required,e.appendChild(s)}}},r=function(e,i){return function(l){this.wrapper=l,this.inputs=this.wrapper.querySelectorAll(".field-input"),this.errors={};for(var s=this.wrapper.querySelectorAll(".error"),r=s.length-1;r>=0;r--)s[r].parentNode.removeChild(s[r]);_.each(this.inputs,function(t){var i=t.getAttribute("name");this.errors[i]={},t.getAttribute("aria-required")&&""===t.value&&(this.errors[i].required=t),e&&e.call(this,t)},this),i&&i.call(this);var c;for(var o in this.errors)if(this.errors.hasOwnProperty(o))for(var n in this.errors[o])c=document.createElement("div"),c.className="error "+n+"-error",c.setAttribute("data-field-name",o),c.innerHTML=t[n],this.errors[o][n].parentNode.insertBefore(c,this.errors[o][n].nextSibling)}};wp.ccf.validators["single-line-text"]=wp.ccf.validators["single-line-text"]||r(),wp.ccf.validators["paragraph-text"]=wp.ccf.validators["paragraph-text"]||r(),wp.ccf.validators.name=wp.ccf.validators.name||r(),wp.ccf.validators.email=wp.ccf.validators.email||r(!1,function(){var e=this.inputs[0].value;if(e){2===this.inputs.length&&e!==this.inputs[1].value&&(this.errors[this.inputs[0].getAttribute("name")].match=this.wrapper.lastChild);var t=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;t.test(e)||(this.errors[this.inputs[0].getAttribute("name")].email=this.wrapper.lastChild)}}),wp.ccf.validators.recaptcha=wp.ccf.validators.recaptcha||function(e,l){this.wrapper=e,this.inputs=this.wrapper.querySelectorAll(".g-recaptcha-response"),this.errors={};for(var s=this.wrapper.querySelectorAll(".error"),r=s.length-1;r>=0;r--)s[r].parentNode.removeChild(s[r]);i[l]||(this.errors["g-recaptcha-response"]={},this.errors["g-recaptcha-response"].recaptcha=this.wrapper.lastChild);var c;for(var o in this.errors)if(this.errors.hasOwnProperty(o))for(var n in this.errors[o])c=document.createElement("div"),c.className="error "+n+"-error",c.setAttribute("data-field-name",o),c.innerHTML=t[n],this.errors[o][n].parentNode.insertBefore(c,this.errors[o][n].nextSibling)},wp.ccf.validators.phone=wp.ccf.validators.phone||r(!1,function(){var e=this.inputs[0].value;if(e){var t=/^[0-9+.)(\- ]+$/;if(t.test(e)){if("us"===this.wrapper.getAttribute("data-phone-format")){var i=e.replace(/[^0-9]/gi,"");10!==i.length&&(this.errors[this.inputs[0].getAttribute("name")].digits=this.wrapper.lastChild)}}else this.errors[this.inputs[0].getAttribute("name")].phone=this.wrapper.lastChild}}),wp.ccf.validators.date=wp.ccf.validators.date||function(e){this.wrapper=e,this.errors={},this.inputs=this.wrapper.querySelectorAll(".field-input");for(var i=this.wrapper.querySelectorAll(".error"),l=i.length-1;l>=0;l--)i[l].parentNode.removeChild(i[l]);var s;_.each(this.inputs,function(i){var l=i.getAttribute("name");if(this.errors[l]={},i.getAttribute("aria-required")&&""===i.value&&(this.errors[l].required=!0,s=document.createElement("div"),s.className="error required-error",1===this.inputs.length?(s.innerHTML=t.required,s.className+=" right-error",i.parentNode.insertBefore(s,i.nextSibling)):(s.innerHTML=t[l.replace(/.*\[(.*?)\]/i,"$1")+"_required"],e.appendChild(s))),""!==i.value){var r=l.replace(/^.*\[(.*?)\]$/,"$1");"date"===r?i.value.match(/^([0-9]|\/)+$/)||(s=document.createElement("div"),s.className="error date-error",s.innerHTML=t.date,e.appendChild(s)):"hour"===r?i.value.match(/^[0-9]+$/)||(s=document.createElement("div"),s.className="error hour-error",s.innerHTML=t.hour,e.appendChild(s)):"minute"===r&&(i.value.match(/^[0-9]+$/)||(s=document.createElement("div"),s.className="error minute-error",s.innerHTML=t.minute,e.appendChild(s)))}},this)},wp.ccf.validators.address=wp.ccf.validators.address||r(),wp.ccf.validators.file=wp.ccf.validators.file||function(e){this.wrapper=e,this.inputs=this.wrapper.querySelectorAll(".field-input"),this.errors={};for(var i=this.wrapper.querySelectorAll(".error"),l=i.length-1;l>=0;l--)i[l].parentNode.removeChild(i[l]);_.each(this.inputs,function(e){var t=e.getAttribute("name");this.errors[t]={},e.getAttribute("aria-required")&&""===e.value&&(this.errors[t].required=e)},this);var s=this.inputs[0],r=this.wrapper.getAttribute("data-max-file-size"),c=this.wrapper.getAttribute("data-file-extensions");if(s.value){if(r){var o=1e3*1e3*parseInt(r);if(s.files)s.files[0].size>o&&(this.errors[this.inputs[0].getAttribute("name")].fileSize=this.wrapper.lastChild);else if("undefined"!=typeof ActiveXObject)try{var n=new ActiveXObject("Scripting.FileSystemObject"),a=n.getFile(s.value);a.size>o&&(this.errors[this.inputs[0].getAttribute("name")].fileSize=this.wrapper.lastChild)}catch(d){}}if(c){var f=c.replace(";",",").toLowerCase();if(f=f.replace(/\s+/g,""),f=f.split(","),f.length){var u=s.value.replace(/^.*\.(.+)$/g,"$1").toLowerCase();-1===_.indexOf(f,u)&&(this.errors[this.inputs[0].getAttribute("name")].fileExtension=this.wrapper.lastChild)}}}var p;for(var m in this.errors)if(this.errors.hasOwnProperty(m))for(var h in this.errors[m])p=document.createElement("div"),p.className="error "+h+"-error",p.setAttribute("data-field-name",m),p.innerHTML=t[h],"fileExtension"===h&&c?p.innerHTML+=" ("+c+")":"fileSize"===h&&r&&(p.innerHTML+=" "+r+" MB"),this.errors[m][h].parentNode.insertBefore(p,this.errors[m][h].nextSibling)},wp.ccf.validators.website=wp.ccf.validators.website||r(function(e){if(e.value){var t=/^http(s?)\:\/\/(([a-zA-Z0-9\-\._]+(\.[a-zA-Z0-9\-\._]+)+)|localhost)(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_]*)?([\d\w\.\/\%\+\-\=\&\?\:\\\"\'\,\|\~\;]*)$/;t.test(e.value)||(this.errors[e.getAttribute("name")].website=e)}}),wp.ccf.validators.checkboxes=wp.ccf.validators.checkboxes||s,wp.ccf.validators.dropdown=wp.ccf.validators.dropdown||r(),wp.ccf.validators.radio=wp.ccf.validators.radio||s,wp.ccf.iframeOnload=function(e){l[e]&&l[e]()},wp.ccf.setupDOM=wp.ccf.setupDOM||function(){for(var s=document.querySelectorAll(".ccf-datepicker"),r=0;s.length>r;r++)e(s[r]).datepicker();var c=document.querySelectorAll(".ccf-form-wrapper");c.length>=1&&_.each(c,function(s){function r(t){var i=s.querySelectorAll(".field"),l=[];if(_.each(i,function(e){if(!e.className.match(/ skip-field/i)){var t=e.getAttribute("data-field-type"),i=e.getAttribute("data-field-slug");m[i]=e;var s=new wp.ccf.validators[t](e,n);if(_.size(s.errors)){var r=0;for(var c in s.errors)s.errors.hasOwnProperty(c)&&_.size(s.errors[c])&&r++;r>0&&l.push(s)}}}),!l.length)return o.trigger("ccfFormSuccess"),s.className=s.className.replace(/ loading/i,"")+" loading",f.animate({opacity:100}),!0;t.returnFalse=!1,t.preventDefault&&t.preventDefault(),o.trigger("ccfFormError",l);var r=e(window).scrollTop(),c=r+e(window).height(),a=e(l[0].wrapper),d=a.offset(),u=d.top,p=u+a.height();return u>=r&&c>=p||e("html, body").animate({scrollTop:a.offset().top},500),!1}var c=s.querySelectorAll(".ccf-form")[0],o=e(c),n=parseInt(s.getAttribute("data-form-id")),a=c.querySelectorAll(".ccf-submit-button")[0],d=document.getElementById("ccf_form_frame_"+n),f=e(c.querySelectorAll(".loading-img")[0]),u=e(d),p=e(a),m={};l[n]=function(){var l,s=u.contents().find("body").text();if(!s)return!1;c.className=c.className.replace(/ loading/i,""),f.animate({opacity:0}),i[n]=!1;try{l=e.parseJSON(s)}catch(r){var o=document.createElement("div");return o.className="error unknown-error",o.innerText=t.unknown,a.parentNode.appendChild(o),!1}var d=a.parentNode.querySelectorAll(".error");if(d.length&&d[0].parentNode.removeChild(d[0]),l.success)if("text"===l.action_type&&l.completion_message){c.innerHTML="";var p=document.createElement("div");p.innerHTML=l.completion_message,p.className="ccf-form-complete",c.appendChild(p),e("html, body").animate({scrollTop:e(c).offset().top},500)}else"redirect"===l.action_type&&l.completion_redirect_url&&(document.location=l.completion_redirect_url);else l.field_errors&&_.each(l.field_errors,function(e,t){var i=m[t].querySelectorAll(".field-input");for(var l in e)if(e.hasOwnProperty(l)){var s=document.createElement("div");s.className="error "+l+"-error",s.innerHTML=e[l],1===i.length?i[i.length-1].parentNode.insertBefore(s,i[i.length-1].nextSibling):m[t].appendChild(s)}})},p.on("click",function(e){return e.preventDefault(),c.target="ccf_form_frame_"+n,c.action=t.ajaxurl,o.submit(),!1}),o.on("submit",r)})},e(document).ready(wp.ccf.setupDOM)})(jQuery,ccfSettings);
|
classes/class-ccf-api.php
CHANGED
@@ -415,10 +415,15 @@ class CCF_API extends WP_JSON_Posts {
|
|
415 |
$_post['pause'] = (bool) get_post_meta( $post['ID'], 'ccf_form_pause', true );
|
416 |
$_post['pauseMessage'] = esc_html( get_post_meta( $post['ID'], 'ccf_form_pause_message', true ) );
|
417 |
$_post['emailNotificationAddresses'] = esc_html( get_post_meta( $post['ID'], 'ccf_form_email_notification_addresses', true ) );
|
|
|
418 |
$_post['emailNotificationFromType'] = esc_html( get_post_meta( $post['ID'], 'ccf_form_email_notification_from_type', true ) );
|
419 |
$_post['emailNotificationFromAddress'] = esc_html( get_post_meta( $post['ID'], 'ccf_form_email_notification_from_address', true ) );
|
420 |
$_post['emailNotificationFromField'] = esc_html( get_post_meta( $post['ID'], 'ccf_form_email_notification_from_field', true ) );
|
421 |
|
|
|
|
|
|
|
|
|
422 |
$_post['emailNotificationFromNameType'] = esc_html( get_post_meta( $post['ID'], 'ccf_form_email_notification_from_name_type', true ) );
|
423 |
$_post['emailNotificationFromName'] = esc_html( get_post_meta( $post['ID'], 'ccf_form_email_notification_from_name', true ) );
|
424 |
$_post['emailNotificationFromNameField'] = esc_html( get_post_meta( $post['ID'], 'ccf_form_email_notification_from_name_field', true ) );
|
@@ -596,6 +601,18 @@ class CCF_API extends WP_JSON_Posts {
|
|
596 |
update_post_meta( $result, 'ccf_form_email_notification_from_field', sanitize_text_field( $data['emailNotificationFromField'] ) );
|
597 |
}
|
598 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
599 |
if ( isset( $data['emailNotificationFromNameType'] ) ) {
|
600 |
update_post_meta( $result, 'ccf_form_email_notification_from_name_type', sanitize_text_field( $data['emailNotificationFromNameType'] ) );
|
601 |
}
|
@@ -910,6 +927,18 @@ class CCF_API extends WP_JSON_Posts {
|
|
910 |
update_post_meta( $result, 'ccf_form_email_notification_from_name_field', sanitize_text_field( $data['emailNotificationFromNameField'] ) );
|
911 |
}
|
912 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
913 |
$response = json_ensure_response( $this->get_post( $result ) );
|
914 |
|
915 |
$response->set_status( 201 );
|
415 |
$_post['pause'] = (bool) get_post_meta( $post['ID'], 'ccf_form_pause', true );
|
416 |
$_post['pauseMessage'] = esc_html( get_post_meta( $post['ID'], 'ccf_form_pause_message', true ) );
|
417 |
$_post['emailNotificationAddresses'] = esc_html( get_post_meta( $post['ID'], 'ccf_form_email_notification_addresses', true ) );
|
418 |
+
|
419 |
$_post['emailNotificationFromType'] = esc_html( get_post_meta( $post['ID'], 'ccf_form_email_notification_from_type', true ) );
|
420 |
$_post['emailNotificationFromAddress'] = esc_html( get_post_meta( $post['ID'], 'ccf_form_email_notification_from_address', true ) );
|
421 |
$_post['emailNotificationFromField'] = esc_html( get_post_meta( $post['ID'], 'ccf_form_email_notification_from_field', true ) );
|
422 |
|
423 |
+
$_post['emailNotificationSubjectType'] = esc_html( get_post_meta( $post['ID'], 'ccf_form_email_notification_subject_type', true ) );
|
424 |
+
$_post['emailNotificationSubject'] = esc_html( get_post_meta( $post['ID'], 'ccf_form_email_notification_subject', true ) );
|
425 |
+
$_post['emailNotificationSubjectField'] = esc_html( get_post_meta( $post['ID'], 'ccf_form_email_notification_subject_field', true ) );
|
426 |
+
|
427 |
$_post['emailNotificationFromNameType'] = esc_html( get_post_meta( $post['ID'], 'ccf_form_email_notification_from_name_type', true ) );
|
428 |
$_post['emailNotificationFromName'] = esc_html( get_post_meta( $post['ID'], 'ccf_form_email_notification_from_name', true ) );
|
429 |
$_post['emailNotificationFromNameField'] = esc_html( get_post_meta( $post['ID'], 'ccf_form_email_notification_from_name_field', true ) );
|
601 |
update_post_meta( $result, 'ccf_form_email_notification_from_field', sanitize_text_field( $data['emailNotificationFromField'] ) );
|
602 |
}
|
603 |
|
604 |
+
if ( isset( $data['emailNotificationSubjectType'] ) ) {
|
605 |
+
update_post_meta( $result, 'ccf_form_email_notification_subject_type', sanitize_text_field( $data['emailNotificationSubjectType'] ) );
|
606 |
+
}
|
607 |
+
|
608 |
+
if ( isset( $data['emailNotificationSubject'] ) ) {
|
609 |
+
update_post_meta( $result, 'ccf_form_email_notification_subject', sanitize_text_field( $data['emailNotificationSubject'] ) );
|
610 |
+
}
|
611 |
+
|
612 |
+
if ( isset( $data['emailNotificationSubjectField'] ) ) {
|
613 |
+
update_post_meta( $result, 'ccf_form_email_notification_subject_field', sanitize_text_field( $data['emailNotificationSubjectField'] ) );
|
614 |
+
}
|
615 |
+
|
616 |
if ( isset( $data['emailNotificationFromNameType'] ) ) {
|
617 |
update_post_meta( $result, 'ccf_form_email_notification_from_name_type', sanitize_text_field( $data['emailNotificationFromNameType'] ) );
|
618 |
}
|
927 |
update_post_meta( $result, 'ccf_form_email_notification_from_name_field', sanitize_text_field( $data['emailNotificationFromNameField'] ) );
|
928 |
}
|
929 |
|
930 |
+
if ( isset( $data['emailNotificationSubjectType'] ) ) {
|
931 |
+
update_post_meta( $result, 'ccf_form_email_notification_subject_type', sanitize_text_field( $data['emailNotificationSubjectType'] ) );
|
932 |
+
}
|
933 |
+
|
934 |
+
if ( isset( $data['emailNotificationSubject'] ) ) {
|
935 |
+
update_post_meta( $result, 'ccf_form_email_notification_subject', sanitize_text_field( $data['emailNotificationSubject'] ) );
|
936 |
+
}
|
937 |
+
|
938 |
+
if ( isset( $data['emailNotificationSubjectField'] ) ) {
|
939 |
+
update_post_meta( $result, 'ccf_form_email_notification_subject_field', sanitize_text_field( $data['emailNotificationSubjectField'] ) );
|
940 |
+
}
|
941 |
+
|
942 |
$response = json_ensure_response( $this->get_post( $result ) );
|
943 |
|
944 |
$response->set_status( 201 );
|
classes/class-ccf-form-handler.php
CHANGED
@@ -811,7 +811,7 @@ class CCF_Form_Handler {
|
|
811 |
} else {
|
812 |
$name_field = get_post_meta( $form_id, 'ccf_form_email_notification_from_name_field', true );
|
813 |
|
814 |
-
if ( ! empty( $name_field ) && is_array( $submission[$name_field] ) ) {
|
815 |
if ( ! empty( $submission[$name_field]['first'] ) || ! empty( $submission[$name_field]['last'] ) ) {
|
816 |
$name = $submission[$name_field]['first'] . ' ' . $submission[$name_field]['last'];
|
817 |
}
|
@@ -842,12 +842,24 @@ class CCF_Form_Handler {
|
|
842 |
$headers[] = 'Reply-To: ' . sanitize_email( $email );
|
843 |
}
|
844 |
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
849 |
}
|
|
|
850 |
|
|
|
851 |
$subject = apply_filters( 'ccf_email_subject', $subject, $form_id, $email, $form_page );
|
852 |
wp_mail( $email, $subject, apply_filters( 'ccf_email_content', $message, $form_id, $email, $form_page ), apply_filters( 'ccf_email_headers', $headers, $form_id, $email, $form_page ) );
|
853 |
}
|
811 |
} else {
|
812 |
$name_field = get_post_meta( $form_id, 'ccf_form_email_notification_from_name_field', true );
|
813 |
|
814 |
+
if ( ! empty( $name_field ) && ! empty( $submission[$name_field] ) && is_array( $submission[$name_field] ) ) {
|
815 |
if ( ! empty( $submission[$name_field]['first'] ) || ! empty( $submission[$name_field]['last'] ) ) {
|
816 |
$name = $submission[$name_field]['first'] . ' ' . $submission[$name_field]['last'];
|
817 |
}
|
842 |
$headers[] = 'Reply-To: ' . sanitize_email( $email );
|
843 |
}
|
844 |
|
845 |
+
$email_notification_subject_type = get_post_meta( $form_id, 'ccf_form_email_notification_subject_type', true );
|
846 |
+
|
847 |
+
$subject = sprintf( __( '%s: Form Submission', 'custom-contact-forms' ), wp_specialchars_decode( get_bloginfo( 'name' ) ) );
|
848 |
+
if ( ! empty( $form->post_title ) ) {
|
849 |
+
$subject .= sprintf( __( ' to "%s"', 'custom-contact-forms' ), wp_specialchars_decode( $form->post_title ) );
|
850 |
+
}
|
851 |
+
|
852 |
+
if ( 'custom' === $email_notification_subject_type ) {
|
853 |
+
$subject = get_post_meta( $form_id, 'ccf_form_email_notification_subject', true );
|
854 |
+
} elseif ( 'field' === $email_notification_subject_type ) {
|
855 |
+
$subject_field = get_post_meta( $form_id, 'ccf_form_email_notification_subject_field', true );
|
856 |
+
|
857 |
+
if ( ! empty( $subject_field ) && ! empty( $submission[$subject_field] ) ) {
|
858 |
+
$subject = $submission[$subject_field];
|
859 |
}
|
860 |
+
}
|
861 |
|
862 |
+
foreach ( $email_addresses as $email ) {
|
863 |
$subject = apply_filters( 'ccf_email_subject', $subject, $form_id, $email, $form_page );
|
864 |
wp_mail( $email, $subject, apply_filters( 'ccf_email_content', $message, $form_id, $email, $form_page ), apply_filters( 'ccf_email_headers', $headers, $form_id, $email, $form_page ) );
|
865 |
}
|
classes/class-ccf-form-manager.php
CHANGED
@@ -244,6 +244,33 @@ class CCF_Form_Manager {
|
|
244 |
<select name="email_notification_from_name_field" class="form-email-notification-from-name-field" id="ccf_form_email_notification_from_name_field">
|
245 |
</select>
|
246 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
</div>
|
248 |
</script>
|
249 |
|
@@ -1540,6 +1567,7 @@ class CCF_Form_Manager {
|
|
1540 |
'maxFileSize' => floor( wp_max_upload_size() / 1000 / 1000 ),
|
1541 |
'noEmailFields' => esc_html__( 'You have no email fields', 'custom-contact-forms' ),
|
1542 |
'noNameFields' => esc_html__( 'You have no name fields', 'custom-contact-forms' ),
|
|
|
1543 |
'invalidDate' => esc_html__( 'Invalid date', 'custom-contact-forms' ),
|
1544 |
'allLabels' => array_merge( $field_labels, $structure_field_labels, $special_field_labels ),
|
1545 |
'fieldLabel' => esc_html__( 'Field Label', 'custom-contact-forms' ),
|
244 |
<select name="email_notification_from_name_field" class="form-email-notification-from-name-field" id="ccf_form_email_notification_from_name_field">
|
245 |
</select>
|
246 |
</p>
|
247 |
+
|
248 |
+
|
249 |
+
|
250 |
+
|
251 |
+
|
252 |
+
|
253 |
+
<p class="email-notification-setting">
|
254 |
+
<label for="ccf_form_email_notification_subject_type"><?php esc_html_e( 'Email Subject Type:', 'custom-contact-forms' ); ?></label>
|
255 |
+
<select name="email_notification_subject_type" class="form-email-notification-subject-type" id="ccf_form_email_notification_subject_type">
|
256 |
+
<option value="default"><?php esc_html_e( 'Default', 'custom-contact-forms' ); ?></option>
|
257 |
+
<option value="custom" <# if ( 'custom' === form.emailNotificationSubjectType ) { #>selected<# } #>><?php esc_html_e( 'Custom Subject', 'custom-contact-forms' ); ?></option>
|
258 |
+
<option value="field" <# if ( 'field' === form.emailNotificationSubjectType ) { #>selected<# } #>><?php esc_html_e( 'Form Field', 'custom-contact-forms' ); ?></option>
|
259 |
+
</select>
|
260 |
+
|
261 |
+
<span class="explain"><?php esc_html_e( 'You can set the notification emails subject line to be the CCF default, custom text, or pull the subject from a field in the form.', 'custom-contact-forms' ); ?></span>
|
262 |
+
</p>
|
263 |
+
|
264 |
+
<p class="email-notification-subject">
|
265 |
+
<label for="ccf_form_email_notification_subject"><?php esc_html_e( 'Custom Email Subject:', 'custom-contact-forms' ); ?></label>
|
266 |
+
<input class="widefat form-email-notification-subject" id="ccf_form_email_notification_subject" name="email-notification-subject" value="{{ form.emailNotificationSubject }}">
|
267 |
+
</p>
|
268 |
+
|
269 |
+
<p class="email-notification-subject-field">
|
270 |
+
<label for="ccf_form_email_notification_subject_field"><?php esc_html_e( 'Pull Email Subject Dynamically from Field:', 'custom-contact-forms' ); ?></label>
|
271 |
+
<select name="email_notification_subject_field" class="form-email-notification-subject-field" id="ccf_form_email_notification_subject_field">
|
272 |
+
</select>
|
273 |
+
</p>
|
274 |
</div>
|
275 |
</script>
|
276 |
|
1567 |
'maxFileSize' => floor( wp_max_upload_size() / 1000 / 1000 ),
|
1568 |
'noEmailFields' => esc_html__( 'You have no email fields', 'custom-contact-forms' ),
|
1569 |
'noNameFields' => esc_html__( 'You have no name fields', 'custom-contact-forms' ),
|
1570 |
+
'noApplicableFields' => esc_html__( 'You have no applicable fields', 'custom-contact-forms' ),
|
1571 |
'invalidDate' => esc_html__( 'Invalid date', 'custom-contact-forms' ),
|
1572 |
'allLabels' => array_merge( $field_labels, $structure_field_labels, $special_field_labels ),
|
1573 |
'fieldLabel' => esc_html__( 'Field Label', 'custom-contact-forms' ),
|
custom-contact-forms.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: http://www.taylorlovett.com
|
5 |
* Description: Build beautiful custom forms the WordPress way. View live previews of your forms while you build them.
|
6 |
* Author: Taylor Lovett
|
7 |
-
* Version: 6.
|
8 |
* Author URI: http://www.taylorlovett.com
|
9 |
*/
|
10 |
|
4 |
* Plugin URI: http://www.taylorlovett.com
|
5 |
* Description: Build beautiful custom forms the WordPress way. View live previews of your forms while you build them.
|
6 |
* Author: Taylor Lovett
|
7 |
+
* Version: 6.9.0
|
8 |
* Author URI: http://www.taylorlovett.com
|
9 |
*/
|
10 |
|
js/form.js
CHANGED
@@ -413,7 +413,11 @@
|
|
413 |
|
414 |
if ( data.success ) {
|
415 |
if ( 'text' === data.action_type && data.completion_message ) {
|
416 |
-
form.innerHTML =
|
|
|
|
|
|
|
|
|
417 |
|
418 |
$( 'html, body' ).animate( {
|
419 |
scrollTop: $( form ).offset().top
|
413 |
|
414 |
if ( data.success ) {
|
415 |
if ( 'text' === data.action_type && data.completion_message ) {
|
416 |
+
form.innerHTML = '';
|
417 |
+
var completionWrapper = document.createElement( 'div' );
|
418 |
+
completionWrapper.innerHTML = data.completion_message;
|
419 |
+
completionWrapper.className = 'ccf-form-complete';
|
420 |
+
form.appendChild( completionWrapper );
|
421 |
|
422 |
$( 'html, body' ).animate( {
|
423 |
scrollTop: $( form ).offset().top
|
js/manager/models.js
CHANGED
@@ -101,6 +101,9 @@
|
|
101 |
emailNotificationFromType: 'default',
|
102 |
emailNotificationFromAddress: '',
|
103 |
emailNotificationFromField: '',
|
|
|
|
|
|
|
104 |
emailNotificationFromNameType: 'custom',
|
105 |
emailNotificationFromName: 'WordPress',
|
106 |
emailNotificationFromNameField: '',
|
101 |
emailNotificationFromType: 'default',
|
102 |
emailNotificationFromAddress: '',
|
103 |
emailNotificationFromField: '',
|
104 |
+
emailNotificationSubjectType: 'default',
|
105 |
+
emailNotificationSubject: '',
|
106 |
+
emailNotificationSubjectField: '',
|
107 |
emailNotificationFromNameType: 'custom',
|
108 |
emailNotificationFromName: 'WordPress',
|
109 |
emailNotificationFromNameField: '',
|
js/manager/views.js
CHANGED
@@ -883,7 +883,8 @@
|
|
883 |
'change select': 'save',
|
884 |
'change select.form-send-email-notifications': 'toggleNotificationFields',
|
885 |
'change select.form-email-notification-from-type': 'toggleNotificationFields',
|
886 |
-
'change select.form-email-notification-from-name-type': 'toggleNotificationFields'
|
|
|
887 |
},
|
888 |
|
889 |
initialize: function( options ) {
|
@@ -902,21 +903,28 @@
|
|
902 |
emailNotificationFromField.innerHTML = '';
|
903 |
emailNotificationFromField.disabled = false;
|
904 |
|
|
|
|
|
|
|
|
|
905 |
var emailNotificationFromNameField = this.el.querySelectorAll( '.form-email-notification-from-name-field' )[0];
|
906 |
emailNotificationFromNameField.innerHTML = '';
|
907 |
emailNotificationFromNameField.disabled = false;
|
908 |
|
909 |
-
var fields = this.model.get( 'fields'),
|
910 |
addressFieldsAdded = 0,
|
911 |
-
nameFieldsAdded = 0
|
|
|
912 |
|
913 |
var addressField = this.model.get( 'emailNotificationFromField' );
|
914 |
-
var
|
|
|
|
|
915 |
|
916 |
if ( fields.length >= 1 ) {
|
917 |
fields.each( function( field ) {
|
918 |
if ( 'email' === field.get( 'type' ) ) {
|
919 |
-
|
920 |
option.innerHTML = field.get( 'slug' );
|
921 |
option.value = field.get( 'slug' );
|
922 |
|
@@ -928,7 +936,7 @@
|
|
928 |
|
929 |
addressFieldsAdded++;
|
930 |
} else if ( 'name' === field.get( 'type' ) ) {
|
931 |
-
|
932 |
option.innerHTML = field.get( 'slug' );
|
933 |
option.value = field.get( 'slug' );
|
934 |
|
@@ -939,23 +947,44 @@
|
|
939 |
emailNotificationFromNameField.appendChild( option );
|
940 |
|
941 |
nameFieldsAdded++;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
942 |
}
|
943 |
});
|
944 |
}
|
945 |
|
946 |
if ( 0 === addressFieldsAdded ) {
|
947 |
-
|
948 |
option.innerHTML = ccfSettings.noEmailFields;
|
949 |
emailNotificationFromField.appendChild( option );
|
950 |
emailNotificationFromField.disabled = true;
|
951 |
}
|
952 |
|
953 |
if ( 0 === nameFieldsAdded ) {
|
954 |
-
|
955 |
option.innerHTML = ccfSettings.noNameFields;
|
956 |
emailNotificationFromNameField.appendChild( option );
|
957 |
emailNotificationFromNameField.disabled = true;
|
958 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
959 |
},
|
960 |
|
961 |
toggleNotificationFields: function() {
|
@@ -971,6 +1000,12 @@
|
|
971 |
|
972 |
var emailNotificationFromType = this.el.querySelectorAll( '.form-email-notification-from-type' )[0];
|
973 |
|
|
|
|
|
|
|
|
|
|
|
|
|
974 |
var emailNotificationFromName = this.el.querySelectorAll( '.email-notification-from-name' )[0];
|
975 |
|
976 |
var emailNotificationFromNameField = this.el.querySelectorAll( '.email-notification-from-name-field' )[0];
|
@@ -991,6 +1026,15 @@
|
|
991 |
emailNotificationFromField.style.display = 'block';
|
992 |
}
|
993 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
994 |
emailNotificationFromName.style.display = 'none';
|
995 |
emailNotificationFromNameField.style.display = 'none';
|
996 |
|
@@ -1007,6 +1051,9 @@
|
|
1007 |
emailNotificationFromAddress.style.display = 'none';
|
1008 |
emailNotificationFromField.style.display = 'none';
|
1009 |
|
|
|
|
|
|
|
1010 |
emailNotificationFromName.style.display = 'none';
|
1011 |
emailNotificationFromNameField.style.display = 'none';
|
1012 |
}
|
@@ -1044,6 +1091,15 @@
|
|
1044 |
var emailNotificationFromNameField = this.el.querySelectorAll( '.form-email-notification-from-name-field' )[0].value;
|
1045 |
this.model.set( 'emailNotificationFromNameField', emailNotificationFromNameField );
|
1046 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1047 |
if ( typeof $promise !== 'undefined' && typeof $promise.promise !== 'undefined' ) {
|
1048 |
$promise.resolve();
|
1049 |
}
|
883 |
'change select': 'save',
|
884 |
'change select.form-send-email-notifications': 'toggleNotificationFields',
|
885 |
'change select.form-email-notification-from-type': 'toggleNotificationFields',
|
886 |
+
'change select.form-email-notification-from-name-type': 'toggleNotificationFields',
|
887 |
+
'change select.form-email-notification-subject-type': 'toggleNotificationFields'
|
888 |
},
|
889 |
|
890 |
initialize: function( options ) {
|
903 |
emailNotificationFromField.innerHTML = '';
|
904 |
emailNotificationFromField.disabled = false;
|
905 |
|
906 |
+
var emailNotificationSubjectField = this.el.querySelectorAll( '.form-email-notification-subject-field' )[0];
|
907 |
+
emailNotificationSubjectField.innerHTML = '';
|
908 |
+
emailNotificationSubjectField.disabled = false;
|
909 |
+
|
910 |
var emailNotificationFromNameField = this.el.querySelectorAll( '.form-email-notification-from-name-field' )[0];
|
911 |
emailNotificationFromNameField.innerHTML = '';
|
912 |
emailNotificationFromNameField.disabled = false;
|
913 |
|
914 |
+
var fields = this.model.get( 'fields' ),
|
915 |
addressFieldsAdded = 0,
|
916 |
+
nameFieldsAdded = 0,
|
917 |
+
subjectFieldsAdded = 0;
|
918 |
|
919 |
var addressField = this.model.get( 'emailNotificationFromField' );
|
920 |
+
var subjectField = this.model.get( 'emailNotificationSubjectField' );
|
921 |
+
var nameField = this.model.get( 'emailNotificationFromNameField' ),
|
922 |
+
option;
|
923 |
|
924 |
if ( fields.length >= 1 ) {
|
925 |
fields.each( function( field ) {
|
926 |
if ( 'email' === field.get( 'type' ) ) {
|
927 |
+
option = document.createElement( 'option' );
|
928 |
option.innerHTML = field.get( 'slug' );
|
929 |
option.value = field.get( 'slug' );
|
930 |
|
936 |
|
937 |
addressFieldsAdded++;
|
938 |
} else if ( 'name' === field.get( 'type' ) ) {
|
939 |
+
option = document.createElement( 'option' );
|
940 |
option.innerHTML = field.get( 'slug' );
|
941 |
option.value = field.get( 'slug' );
|
942 |
|
947 |
emailNotificationFromNameField.appendChild( option );
|
948 |
|
949 |
nameFieldsAdded++;
|
950 |
+
} else if ( 'single-line-text' === field.get( 'type' ) ) {
|
951 |
+
// @Todo: add more applicable fields
|
952 |
+
|
953 |
+
option = document.createElement( 'option' );
|
954 |
+
option.innerHTML = field.get( 'slug' );
|
955 |
+
option.value = field.get( 'slug' );
|
956 |
+
|
957 |
+
if ( field.get( 'slug' ) === subjectField ) {
|
958 |
+
option.selected = true;
|
959 |
+
}
|
960 |
+
|
961 |
+
emailNotificationSubjectField.appendChild( option );
|
962 |
+
|
963 |
+
subjectFieldsAdded++;
|
964 |
}
|
965 |
});
|
966 |
}
|
967 |
|
968 |
if ( 0 === addressFieldsAdded ) {
|
969 |
+
option = document.createElement( 'option' );
|
970 |
option.innerHTML = ccfSettings.noEmailFields;
|
971 |
emailNotificationFromField.appendChild( option );
|
972 |
emailNotificationFromField.disabled = true;
|
973 |
}
|
974 |
|
975 |
if ( 0 === nameFieldsAdded ) {
|
976 |
+
option = document.createElement( 'option' );
|
977 |
option.innerHTML = ccfSettings.noNameFields;
|
978 |
emailNotificationFromNameField.appendChild( option );
|
979 |
emailNotificationFromNameField.disabled = true;
|
980 |
}
|
981 |
+
|
982 |
+
if ( 0 === subjectFieldsAdded ) {
|
983 |
+
option = document.createElement( 'option' );
|
984 |
+
option.innerHTML = ccfSettings.noApplicableFields;
|
985 |
+
emailNotificationSubjectField.appendChild( option );
|
986 |
+
emailNotificationSubjectField.disabled = true;
|
987 |
+
}
|
988 |
},
|
989 |
|
990 |
toggleNotificationFields: function() {
|
1000 |
|
1001 |
var emailNotificationFromType = this.el.querySelectorAll( '.form-email-notification-from-type' )[0];
|
1002 |
|
1003 |
+
var emailNotificationSubject = this.el.querySelectorAll( '.email-notification-subject' )[0];
|
1004 |
+
|
1005 |
+
var emailNotificationSubjectField = this.el.querySelectorAll( '.email-notification-subject-field' )[0];
|
1006 |
+
|
1007 |
+
var emailNotificationSubjectType = this.el.querySelectorAll( '.form-email-notification-subject-type' )[0];
|
1008 |
+
|
1009 |
var emailNotificationFromName = this.el.querySelectorAll( '.email-notification-from-name' )[0];
|
1010 |
|
1011 |
var emailNotificationFromNameField = this.el.querySelectorAll( '.email-notification-from-name-field' )[0];
|
1026 |
emailNotificationFromField.style.display = 'block';
|
1027 |
}
|
1028 |
|
1029 |
+
emailNotificationSubject.style.display = 'none';
|
1030 |
+
emailNotificationSubjectField.style.display = 'none';
|
1031 |
+
|
1032 |
+
if ( 'custom' === emailNotificationSubjectType.value ) {
|
1033 |
+
emailNotificationSubject.style.display = 'block';
|
1034 |
+
} else if ( 'field' === emailNotificationSubjectType.value ) {
|
1035 |
+
emailNotificationSubjectField.style.display = 'block';
|
1036 |
+
}
|
1037 |
+
|
1038 |
emailNotificationFromName.style.display = 'none';
|
1039 |
emailNotificationFromNameField.style.display = 'none';
|
1040 |
|
1051 |
emailNotificationFromAddress.style.display = 'none';
|
1052 |
emailNotificationFromField.style.display = 'none';
|
1053 |
|
1054 |
+
emailNotificationSubject.style.display = 'none';
|
1055 |
+
emailNotificationSubjectField.style.display = 'none';
|
1056 |
+
|
1057 |
emailNotificationFromName.style.display = 'none';
|
1058 |
emailNotificationFromNameField.style.display = 'none';
|
1059 |
}
|
1091 |
var emailNotificationFromNameField = this.el.querySelectorAll( '.form-email-notification-from-name-field' )[0].value;
|
1092 |
this.model.set( 'emailNotificationFromNameField', emailNotificationFromNameField );
|
1093 |
|
1094 |
+
var emailNotificationSubjectType = this.el.querySelectorAll( '.form-email-notification-subject-type' )[0].value;
|
1095 |
+
this.model.set( 'emailNotificationSubjectType', emailNotificationSubjectType );
|
1096 |
+
|
1097 |
+
var emailNotificationSubject = this.el.querySelectorAll( '.form-email-notification-subject' )[0].value;
|
1098 |
+
this.model.set( 'emailNotificationSubject', emailNotificationSubject );
|
1099 |
+
|
1100 |
+
var emailNotificationSubjectField = this.el.querySelectorAll( '.form-email-notification-subject-field' )[0].value;
|
1101 |
+
this.model.set( 'emailNotificationSubjectField', emailNotificationSubjectField );
|
1102 |
+
|
1103 |
if ( typeof $promise !== 'undefined' && typeof $promise.promise !== 'undefined' ) {
|
1104 |
$promise.resolve();
|
1105 |
}
|
languages/custom-contact-forms-da_DK.mo
ADDED
Binary file
|
languages/custom-contact-forms-da_DK.po
ADDED
@@ -0,0 +1,1425 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2014 Taylor Lovett
|
2 |
+
# This file is distributed under the same license as the Editorial Access Manager package.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"Project-Id-Version: Custom Contact Forms\n"
|
6 |
+
"Report-Msgid-Bugs-To: https://github.com/tlovett1/custom-contact-forms/issues\n"
|
7 |
+
"POT-Creation-Date: 2015-08-31 09:26-0500\n"
|
8 |
+
"PO-Revision-Date: 2015-09-13 00:06+0200\n"
|
9 |
+
"Last-Translator: Taylor Lovett <tlovett88@gmail.com>\n"
|
10 |
+
"Language: da\n"
|
11 |
+
"MIME-Version: 1.0\n"
|
12 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
+
"Content-Transfer-Encoding: 8bit\n"
|
14 |
+
"X-Generator: Poedit 1.8.4\n"
|
15 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
16 |
+
"X-Poedit-Basepath: .\n"
|
17 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,"
|
19 |
+
"_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;esc_html_e;esc_html__;esc_attr__;"
|
20 |
+
"esc_attr_e\n"
|
21 |
+
"X-Textdomain-Support: yes\n"
|
22 |
+
"Language-Team: \n"
|
23 |
+
"X-Poedit-SearchPath-0: ..\n"
|
24 |
+
|
25 |
+
#: ../classes/class-ccf-api.php:160
|
26 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-comments.php:82
|
27 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-customposttype.php:130
|
28 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-customposttype.php:151
|
29 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-customposttype.php:157
|
30 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-customposttype.php:176
|
31 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-media.php:72
|
32 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-media.php:143
|
33 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-media.php:149
|
34 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-media.php:168
|
35 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta-posts.php:30
|
36 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-pages.php:69
|
37 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-pages.php:88
|
38 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-pages.php:106
|
39 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:74
|
40 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:271
|
41 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:329
|
42 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:374
|
43 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:749
|
44 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:777
|
45 |
+
msgid "Invalid post ID."
|
46 |
+
msgstr "Ugyldigt indlæg ID."
|
47 |
+
|
48 |
+
#: ../classes/class-ccf-api.php:164
|
49 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-comments.php:86
|
50 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:285
|
51 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:527
|
52 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:539
|
53 |
+
msgid "Sorry, you cannot read this post."
|
54 |
+
msgstr "Desværre, du kan ikke læse dette indlæg."
|
55 |
+
|
56 |
+
#: ../classes/class-ccf-api.php:220
|
57 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:122
|
58 |
+
#, php-format
|
59 |
+
msgid "The post type \"%s\" is not valid"
|
60 |
+
msgstr "Indlæg type \"%s\" er ikke gyldigt"
|
61 |
+
|
62 |
+
#: ../classes/class-ccf-api.php:447 ../classes/class-ccf-api.php:762
|
63 |
+
#: ../classes/class-ccf-api.php:787 ../classes/class-ccf-api.php:816
|
64 |
+
#: ../classes/class-ccf-api.php:933
|
65 |
+
msgid "Invalid form ID."
|
66 |
+
msgstr "Ugyldig formular ID."
|
67 |
+
|
68 |
+
#: ../classes/class-ccf-api.php:452 ../classes/class-ccf-api.php:747
|
69 |
+
#: ../classes/class-ccf-api.php:767
|
70 |
+
msgid "Sorry, you cannot view forms."
|
71 |
+
msgstr "Desværre, du kan ikke se formularer."
|
72 |
+
|
73 |
+
#: ../classes/class-ccf-api.php:793 ../classes/class-ccf-api.php:822
|
74 |
+
msgid "Invalid form."
|
75 |
+
msgstr "Ugyldig formular."
|
76 |
+
|
77 |
+
#: ../classes/class-ccf-api.php:797
|
78 |
+
msgid "Sorry, you cannot view this form."
|
79 |
+
msgstr "Desværre, du kan ikke se denne formular."
|
80 |
+
|
81 |
+
#: ../classes/class-ccf-api.php:944
|
82 |
+
msgid "The form cannot be deleted."
|
83 |
+
msgstr "Formularen kan ikke slettes."
|
84 |
+
|
85 |
+
#: ../classes/class-ccf-api.php:948
|
86 |
+
msgid "Permanently deleted form"
|
87 |
+
msgstr "Formular slettet permanent"
|
88 |
+
|
89 |
+
#: ../classes/class-ccf-api.php:951
|
90 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:391
|
91 |
+
msgid "Deleted post"
|
92 |
+
msgstr "Indlæg slettet"
|
93 |
+
|
94 |
+
#: ../classes/class-ccf-choice-cpt.php:29
|
95 |
+
msgid "Form Field Choices"
|
96 |
+
msgstr "Formular Felter Valg"
|
97 |
+
|
98 |
+
#: ../classes/class-ccf-custom-contact-forms.php:71
|
99 |
+
#, php-format
|
100 |
+
msgid ""
|
101 |
+
"Custom Contact Forms will not work unless pretty permalinks (not default) are enabled. "
|
102 |
+
"Please update your <a href=\"%s\">permalinks settings</a>."
|
103 |
+
msgstr ""
|
104 |
+
"Custom Contact Forms virker ikke medmindre pæne permanente links (ikke standard) er "
|
105 |
+
"aktiveret. Opdater venligst dine <a href=\"%s\">permanente links indstillinger</a>."
|
106 |
+
|
107 |
+
#: ../classes/class-ccf-custom-contact-forms.php:89
|
108 |
+
#, php-format
|
109 |
+
msgid "<a href=\"%s\">Forms and Submissions</a>"
|
110 |
+
msgstr "<a href=\"%s\">Formularer og Indlæg</a>"
|
111 |
+
|
112 |
+
#: ../classes/class-ccf-export.php:58 ../classes/class-ccf-form-cpt.php:576
|
113 |
+
msgid "Forms and Submissions"
|
114 |
+
msgstr "Formularer og Indlæg"
|
115 |
+
|
116 |
+
#: ../classes/class-ccf-export.php:90
|
117 |
+
msgid "Import"
|
118 |
+
msgstr "Importer"
|
119 |
+
|
120 |
+
#: ../classes/class-ccf-field-cpt.php:30
|
121 |
+
msgid "Form Fields"
|
122 |
+
msgstr "Formular Felter"
|
123 |
+
|
124 |
+
#: ../classes/class-ccf-field-renderer.php:122
|
125 |
+
#, php-format
|
126 |
+
msgid "Allowed file extensions are %s. "
|
127 |
+
msgstr "Tilladte filtyper er %s."
|
128 |
+
|
129 |
+
#: ../classes/class-ccf-field-renderer.php:124
|
130 |
+
#, php-format
|
131 |
+
msgid "Max file size is %d MB. "
|
132 |
+
msgstr "Maks fil størrelse er %d MB."
|
133 |
+
|
134 |
+
#: ../classes/class-ccf-field-renderer.php:556 ../classes/class-ccf-form-manager.php:1151
|
135 |
+
#: ../classes/class-ccf-form-manager.php:1176
|
136 |
+
msgid "Street Address"
|
137 |
+
msgstr "Adresse"
|
138 |
+
|
139 |
+
#: ../classes/class-ccf-field-renderer.php:560 ../classes/class-ccf-form-manager.php:1155
|
140 |
+
#: ../classes/class-ccf-form-manager.php:1180
|
141 |
+
msgid "Address Line 2"
|
142 |
+
msgstr "Adresse linje 2"
|
143 |
+
|
144 |
+
#: ../classes/class-ccf-field-renderer.php:567 ../classes/class-ccf-form-manager.php:1159
|
145 |
+
#: ../classes/class-ccf-form-manager.php:1184
|
146 |
+
msgid "City"
|
147 |
+
msgstr "By"
|
148 |
+
|
149 |
+
#: ../classes/class-ccf-field-renderer.php:580 ../classes/class-ccf-form-manager.php:1167
|
150 |
+
msgid "State"
|
151 |
+
msgstr "Stat"
|
152 |
+
|
153 |
+
#: ../classes/class-ccf-field-renderer.php:588 ../classes/class-ccf-form-manager.php:1171
|
154 |
+
msgid "ZIP Code"
|
155 |
+
msgstr "Postnummer"
|
156 |
+
|
157 |
+
#: ../classes/class-ccf-field-renderer.php:598 ../classes/class-ccf-form-manager.php:1188
|
158 |
+
msgid "State / Region / Province"
|
159 |
+
msgstr "Stat / Region / Provins"
|
160 |
+
|
161 |
+
#: ../classes/class-ccf-field-renderer.php:606 ../classes/class-ccf-form-manager.php:1192
|
162 |
+
msgid "ZIP / Postal Code"
|
163 |
+
msgstr "Postnummer"
|
164 |
+
|
165 |
+
#: ../classes/class-ccf-field-renderer.php:618 ../classes/class-ccf-form-manager.php:1200
|
166 |
+
msgid "Country"
|
167 |
+
msgstr "Land"
|
168 |
+
|
169 |
+
#: ../classes/class-ccf-field-renderer.php:793 ../classes/class-ccf-form-manager.php:1211
|
170 |
+
msgid "email@example.com"
|
171 |
+
msgstr "email@eksempel.dk"
|
172 |
+
|
173 |
+
#: ../classes/class-ccf-field-renderer.php:803 ../classes/class-ccf-form-manager.php:1215
|
174 |
+
#: ../classes/class-ccf-form-manager.php:1516
|
175 |
+
msgid "Email"
|
176 |
+
msgstr "Email"
|
177 |
+
|
178 |
+
#: ../classes/class-ccf-field-renderer.php:810 ../classes/class-ccf-form-manager.php:1219
|
179 |
+
msgid "Confirm Email"
|
180 |
+
msgstr "Bekræft Email"
|
181 |
+
|
182 |
+
#: ../classes/class-ccf-field-renderer.php:876 ../classes/class-ccf-form-manager.php:1087
|
183 |
+
msgid "First"
|
184 |
+
msgstr "Fornavn"
|
185 |
+
|
186 |
+
#: ../classes/class-ccf-field-renderer.php:883 ../classes/class-ccf-form-manager.php:1091
|
187 |
+
msgid "Last"
|
188 |
+
msgstr "Efternavn"
|
189 |
+
|
190 |
+
#: ../classes/class-ccf-field-renderer.php:955 ../classes/class-ccf-field-renderer.php:976
|
191 |
+
#: ../classes/class-ccf-form-manager.php:1106 ../classes/class-ccf-form-manager.php:1127
|
192 |
+
msgid "HH"
|
193 |
+
msgstr "TT"
|
194 |
+
|
195 |
+
#: ../classes/class-ccf-field-renderer.php:959 ../classes/class-ccf-field-renderer.php:980
|
196 |
+
#: ../classes/class-ccf-form-manager.php:1110 ../classes/class-ccf-form-manager.php:1131
|
197 |
+
msgid "MM"
|
198 |
+
msgstr "MM"
|
199 |
+
|
200 |
+
#: ../classes/class-ccf-field-renderer.php:963 ../classes/class-ccf-field-renderer.php:984
|
201 |
+
#: ../classes/class-ccf-form-manager.php:1114 ../classes/class-ccf-form-manager.php:1135
|
202 |
+
msgid "AM"
|
203 |
+
msgstr "AM"
|
204 |
+
|
205 |
+
#: ../classes/class-ccf-field-renderer.php:964 ../classes/class-ccf-field-renderer.php:985
|
206 |
+
#: ../classes/class-ccf-form-manager.php:1115 ../classes/class-ccf-form-manager.php:1136
|
207 |
+
msgid "PM"
|
208 |
+
msgstr "PM"
|
209 |
+
|
210 |
+
#: ../classes/class-ccf-field-renderer.php:971 ../classes/class-ccf-form-cpt.php:510
|
211 |
+
#: ../classes/class-ccf-form-manager.php:274 ../classes/class-ccf-form-manager.php:287
|
212 |
+
#: ../classes/class-ccf-form-manager.php:1122 ../classes/class-ccf-form-manager.php:1305
|
213 |
+
#: ../classes/class-ccf-form-manager.php:1319 ../classes/class-ccf-form-manager.php:1457
|
214 |
+
msgid "Date"
|
215 |
+
msgstr "Dato"
|
216 |
+
|
217 |
+
#: ../classes/class-ccf-form-cpt.php:277
|
218 |
+
msgid "Form Submission Columns"
|
219 |
+
msgstr "Formular Indlæg Kolonner"
|
220 |
+
|
221 |
+
#: ../classes/class-ccf-form-cpt.php:326 ../classes/class-ccf-form-cpt.php:344
|
222 |
+
#: ../classes/class-ccf-form-cpt.php:508 ../classes/class-ccf-form-manager.php:277
|
223 |
+
#: ../classes/class-ccf-form-manager.php:290
|
224 |
+
msgid "Submissions"
|
225 |
+
msgstr "Indlæg"
|
226 |
+
|
227 |
+
#: ../classes/class-ccf-form-cpt.php:340
|
228 |
+
msgid "At a Glance"
|
229 |
+
msgstr "Overblink"
|
230 |
+
|
231 |
+
#: ../classes/class-ccf-form-cpt.php:341
|
232 |
+
msgid "Preview"
|
233 |
+
msgstr "Forhåndsvisning"
|
234 |
+
|
235 |
+
#: ../classes/class-ccf-form-cpt.php:361
|
236 |
+
msgid "Save your new form to see a preview."
|
237 |
+
msgstr "Gem din nye formular for at se en forhåndsvisning"
|
238 |
+
|
239 |
+
#: ../classes/class-ccf-form-cpt.php:398
|
240 |
+
msgid "Created on:"
|
241 |
+
msgstr "Oprettet den:"
|
242 |
+
|
243 |
+
#: ../classes/class-ccf-form-cpt.php:401
|
244 |
+
msgid "Author:"
|
245 |
+
msgstr "Forfatter:"
|
246 |
+
|
247 |
+
#: ../classes/class-ccf-form-cpt.php:404
|
248 |
+
msgid "Number of fields:"
|
249 |
+
msgstr "Antal felter:"
|
250 |
+
|
251 |
+
#: ../classes/class-ccf-form-cpt.php:407
|
252 |
+
msgid "Number of submissions:"
|
253 |
+
msgstr "Antal indlæg:"
|
254 |
+
|
255 |
+
#: ../classes/class-ccf-form-cpt.php:413
|
256 |
+
msgid "Move to Trash"
|
257 |
+
msgstr "Flyt til papirkurv"
|
258 |
+
|
259 |
+
#: ../classes/class-ccf-form-cpt.php:417
|
260 |
+
msgid "Export"
|
261 |
+
msgstr "Eksporter"
|
262 |
+
|
263 |
+
#: ../classes/class-ccf-form-cpt.php:446 ../classes/class-ccf-form-manager.php:1247
|
264 |
+
msgid "(No title)"
|
265 |
+
msgstr "(Ingen titel)"
|
266 |
+
|
267 |
+
#: ../classes/class-ccf-form-cpt.php:451
|
268 |
+
msgid "Manage Form"
|
269 |
+
msgstr "Administrer Formular"
|
270 |
+
|
271 |
+
#: ../classes/class-ccf-form-cpt.php:506
|
272 |
+
msgid "Form Title"
|
273 |
+
msgstr "Formular Titel"
|
274 |
+
|
275 |
+
#: ../classes/class-ccf-form-cpt.php:507 ../classes/class-ccf-form-manager.php:275
|
276 |
+
#: ../classes/class-ccf-form-manager.php:288
|
277 |
+
msgid "Author"
|
278 |
+
msgstr "Forfatter"
|
279 |
+
|
280 |
+
#: ../classes/class-ccf-form-cpt.php:509 ../classes/class-ccf-form-manager.php:276
|
281 |
+
#: ../classes/class-ccf-form-manager.php:289
|
282 |
+
msgid "Number of Fields"
|
283 |
+
msgstr "Antal felter"
|
284 |
+
|
285 |
+
#: ../classes/class-ccf-form-cpt.php:543
|
286 |
+
msgid "Unpublished"
|
287 |
+
msgstr "Kladde"
|
288 |
+
|
289 |
+
#: ../classes/class-ccf-form-cpt.php:545
|
290 |
+
msgid "Y/m/d g:i:s A"
|
291 |
+
msgstr "d/m/Y G:i:s"
|
292 |
+
|
293 |
+
#: ../classes/class-ccf-form-cpt.php:552
|
294 |
+
#, php-format
|
295 |
+
msgid "%s ago"
|
296 |
+
msgstr "%s siden"
|
297 |
+
|
298 |
+
#: ../classes/class-ccf-form-cpt.php:554
|
299 |
+
msgid "Y/m/d"
|
300 |
+
msgstr "d/m/Y"
|
301 |
+
|
302 |
+
#: ../classes/class-ccf-form-cpt.php:570 ../classes/class-ccf-form-cpt.php:582
|
303 |
+
msgid "Forms"
|
304 |
+
msgstr "Formularer"
|
305 |
+
|
306 |
+
#: ../classes/class-ccf-form-cpt.php:571
|
307 |
+
msgid "Form"
|
308 |
+
msgstr "Formular"
|
309 |
+
|
310 |
+
#: ../classes/class-ccf-form-cpt.php:572 ../classes/class-ccf-form-cpt.php:575
|
311 |
+
#: ../classes/class-ccf-form-manager.php:81
|
312 |
+
msgid "New Form"
|
313 |
+
msgstr "Ny Formular"
|
314 |
+
|
315 |
+
#: ../classes/class-ccf-form-cpt.php:573
|
316 |
+
msgid "Add New Form"
|
317 |
+
msgstr "Tilføj Ny Formular"
|
318 |
+
|
319 |
+
#: ../classes/class-ccf-form-cpt.php:574
|
320 |
+
msgid "Edit Form"
|
321 |
+
msgstr "Rediger Formular"
|
322 |
+
|
323 |
+
#: ../classes/class-ccf-form-cpt.php:577
|
324 |
+
msgid "View Form"
|
325 |
+
msgstr "Vis Formular"
|
326 |
+
|
327 |
+
#: ../classes/class-ccf-form-cpt.php:578
|
328 |
+
msgid "Search Forms"
|
329 |
+
msgstr "Søg Formularer"
|
330 |
+
|
331 |
+
#: ../classes/class-ccf-form-cpt.php:579
|
332 |
+
msgid "No forms found."
|
333 |
+
msgstr "Ingen formularer fundet."
|
334 |
+
|
335 |
+
#: ../classes/class-ccf-form-cpt.php:580
|
336 |
+
msgid "No forms found in trash."
|
337 |
+
msgstr "Ingen formularer fundet i papirkurven."
|
338 |
+
|
339 |
+
#: ../classes/class-ccf-form-handler.php:127 ../classes/class-ccf-form-handler.php:208
|
340 |
+
#: ../classes/class-ccf-form-handler.php:245 ../classes/class-ccf-form-handler.php:323
|
341 |
+
#: ../classes/class-ccf-form-handler.php:327 ../classes/class-ccf-form-handler.php:331
|
342 |
+
#: ../classes/class-ccf-form-handler.php:335 ../classes/class-ccf-form-handler.php:340
|
343 |
+
#: ../classes/class-ccf-form-handler.php:365 ../classes/class-ccf-form-handler.php:373
|
344 |
+
#: ../classes/class-ccf-form-handler.php:381 ../classes/class-ccf-form-handler.php:435
|
345 |
+
#: ../classes/class-ccf-form-renderer.php:49
|
346 |
+
msgid "This field is required."
|
347 |
+
msgstr "Dette felt er påkrævet."
|
348 |
+
|
349 |
+
#: ../classes/class-ccf-form-handler.php:138
|
350 |
+
#, php-format
|
351 |
+
msgid "This file is too big (%d MB max)"
|
352 |
+
msgstr "Denne fil er for stor (%d MB maks)"
|
353 |
+
|
354 |
+
#: ../classes/class-ccf-form-handler.php:142
|
355 |
+
msgid "An upload error occurred."
|
356 |
+
msgstr "Der opstod en upload fejl."
|
357 |
+
|
358 |
+
#: ../classes/class-ccf-form-handler.php:164
|
359 |
+
msgid "File contains an invalid extension."
|
360 |
+
msgstr "Filen indeholder en ugyldig filtype."
|
361 |
+
|
362 |
+
#: ../classes/class-ccf-form-handler.php:261 ../classes/class-ccf-form-renderer.php:56
|
363 |
+
msgid "Your reCAPTCHA response was incorrect."
|
364 |
+
msgstr "Dit reCAPTCHA svar var forkert."
|
365 |
+
|
366 |
+
#: ../classes/class-ccf-form-handler.php:280
|
367 |
+
msgid "This field is required"
|
368 |
+
msgstr "Dette felt er påkrævet"
|
369 |
+
|
370 |
+
#: ../classes/class-ccf-form-handler.php:285
|
371 |
+
msgid "This phone number is too short"
|
372 |
+
msgstr "Dette telefonnummer er for kort"
|
373 |
+
|
374 |
+
#: ../classes/class-ccf-form-handler.php:288
|
375 |
+
msgid "ccf_field_phoneFormat"
|
376 |
+
msgstr "ccf_field_phoneFormat"
|
377 |
+
|
378 |
+
#: ../classes/class-ccf-form-handler.php:291
|
379 |
+
msgid "This phone number contains invalid characters."
|
380 |
+
msgstr "Dette telefonnummer indeholder ugyldige tegn."
|
381 |
+
|
382 |
+
#: ../classes/class-ccf-form-handler.php:297
|
383 |
+
msgid "This phone number is not 10 digits."
|
384 |
+
msgstr "Dette telefonnummer er ikke 10 cifre."
|
385 |
+
|
386 |
+
#: ../classes/class-ccf-form-handler.php:368 ../classes/class-ccf-form-handler.php:384
|
387 |
+
msgid "This is not a valid email"
|
388 |
+
msgstr "Dette er ikke en valid email"
|
389 |
+
|
390 |
+
#: ../classes/class-ccf-form-handler.php:376 ../classes/class-ccf-form-renderer.php:54
|
391 |
+
msgid "Emails do not match."
|
392 |
+
msgstr "Emails er ikke ens."
|
393 |
+
|
394 |
+
#: ../classes/class-ccf-form-handler.php:409
|
395 |
+
msgid "First name is required."
|
396 |
+
msgstr "Fornavn er påkrævet."
|
397 |
+
|
398 |
+
#: ../classes/class-ccf-form-handler.php:413
|
399 |
+
msgid "Last name is required."
|
400 |
+
msgstr "Efternavn er påkrævet."
|
401 |
+
|
402 |
+
#: ../classes/class-ccf-form-handler.php:438 ../classes/class-ccf-form-renderer.php:66
|
403 |
+
msgid "This is not a valid URL. URL's must start with http(s)://"
|
404 |
+
msgstr "Dette er ikke en gyldig URL. URL's skal starte med http(s)://"
|
405 |
+
|
406 |
+
#: ../classes/class-ccf-form-handler.php:466 ../classes/class-ccf-form-handler.php:498
|
407 |
+
#: ../classes/class-ccf-form-renderer.php:50
|
408 |
+
msgid "Date is required."
|
409 |
+
msgstr "Dato er påkrævet."
|
410 |
+
|
411 |
+
#: ../classes/class-ccf-form-handler.php:469 ../classes/class-ccf-form-handler.php:501
|
412 |
+
#: ../classes/class-ccf-form-renderer.php:61
|
413 |
+
msgid "This date is not valid."
|
414 |
+
msgstr "Denne dato er ikke gyldig."
|
415 |
+
|
416 |
+
#: ../classes/class-ccf-form-handler.php:474 ../classes/class-ccf-form-handler.php:506
|
417 |
+
#: ../classes/class-ccf-form-renderer.php:51
|
418 |
+
msgid "Hour is required."
|
419 |
+
msgstr "Time er påkrævet."
|
420 |
+
|
421 |
+
#: ../classes/class-ccf-form-handler.php:477 ../classes/class-ccf-form-handler.php:509
|
422 |
+
#: ../classes/class-ccf-form-renderer.php:60
|
423 |
+
msgid "This is not a valid hour."
|
424 |
+
msgstr "Dette er ikke en gyldig time."
|
425 |
+
|
426 |
+
#: ../classes/class-ccf-form-handler.php:482 ../classes/class-ccf-form-handler.php:514
|
427 |
+
#: ../classes/class-ccf-form-renderer.php:52
|
428 |
+
msgid "Minute is required."
|
429 |
+
msgstr "Minut er påkrævet."
|
430 |
+
|
431 |
+
#: ../classes/class-ccf-form-handler.php:485 ../classes/class-ccf-form-handler.php:517
|
432 |
+
#: ../classes/class-ccf-form-renderer.php:62
|
433 |
+
msgid "This is not a valid minute."
|
434 |
+
msgstr "Dette er ikke et gyldigt minut."
|
435 |
+
|
436 |
+
#: ../classes/class-ccf-form-handler.php:490 ../classes/class-ccf-form-handler.php:522
|
437 |
+
#: ../classes/class-ccf-form-renderer.php:53
|
438 |
+
msgid "AM/PM is required."
|
439 |
+
msgstr "AM/PM er påkrævet."
|
440 |
+
|
441 |
+
#: ../classes/class-ccf-form-handler.php:708
|
442 |
+
msgid "*Hidden Field*"
|
443 |
+
msgstr "*Skjult Felt*"
|
444 |
+
|
445 |
+
#: ../classes/class-ccf-form-handler.php:782
|
446 |
+
msgid "Form submitted from"
|
447 |
+
msgstr "Formular afsendt fra"
|
448 |
+
|
449 |
+
#: ../classes/class-ccf-form-handler.php:791
|
450 |
+
msgid "Form submitter IP"
|
451 |
+
msgstr "Formular afsender IP"
|
452 |
+
|
453 |
+
#: ../classes/class-ccf-form-handler.php:846
|
454 |
+
#, php-format
|
455 |
+
msgid "%s: Form Submission"
|
456 |
+
msgstr "%s: Formular Afsender"
|
457 |
+
|
458 |
+
#: ../classes/class-ccf-form-handler.php:848
|
459 |
+
#, php-format
|
460 |
+
msgid " to \"%s\""
|
461 |
+
msgstr " til \"%s\""
|
462 |
+
|
463 |
+
#: ../classes/class-ccf-form-handler.php:863 ../classes/class-ccf-form-renderer.php:134
|
464 |
+
msgid "Thank you for your submission."
|
465 |
+
msgstr "Tak for dit indlæg."
|
466 |
+
|
467 |
+
#: ../classes/class-ccf-form-manager.php:63
|
468 |
+
msgid "Custom Contact Forms is experiencing issues."
|
469 |
+
msgstr "Custom Contact Froms oplever problemer."
|
470 |
+
|
471 |
+
#: ../classes/class-ccf-form-manager.php:67
|
472 |
+
#, php-format
|
473 |
+
msgid ""
|
474 |
+
"There is an issue with synchronizing data. Please try deactivating all other plugins "
|
475 |
+
"and activating the TwentyFifteen theme. If this fixes the problem, you have a plugin or "
|
476 |
+
"theme conflict. If it does not, please post in the <a href=\"%s\">support forums</a> or "
|
477 |
+
"<a href=\"%s\">Github</a>."
|
478 |
+
msgstr ""
|
479 |
+
"Der er problemer med synkronisering af data. Prøv venligst at deaktivere alle andre "
|
480 |
+
"plugins og aktiver TwentyFifteen tema. Hvis dette løser problemet, har du plugin eller "
|
481 |
+
"tema konflikt. Hvis det ikke løser problemet, skriv venligst i <a href=\"%s\">support "
|
482 |
+
"forumet</a> eller <a href=\"%s\">Github</a>."
|
483 |
+
|
484 |
+
#: ../classes/class-ccf-form-manager.php:78
|
485 |
+
msgid "Manage Forms"
|
486 |
+
msgstr "Administrer Formularer"
|
487 |
+
|
488 |
+
#: ../classes/class-ccf-form-manager.php:82
|
489 |
+
msgid "Existing Forms"
|
490 |
+
msgstr "Eksisterende Formularer"
|
491 |
+
|
492 |
+
#: ../classes/class-ccf-form-manager.php:106
|
493 |
+
msgid "Standard Fields"
|
494 |
+
msgstr "Standard Felter"
|
495 |
+
|
496 |
+
#: ../classes/class-ccf-form-manager.php:112
|
497 |
+
msgid "Special Fields"
|
498 |
+
msgstr "Special Felter"
|
499 |
+
|
500 |
+
#: ../classes/class-ccf-form-manager.php:118
|
501 |
+
msgid "Structure"
|
502 |
+
msgstr "Opbygning"
|
503 |
+
|
504 |
+
#: ../classes/class-ccf-form-manager.php:127
|
505 |
+
msgid "← Drag fields from the left here."
|
506 |
+
msgstr "← Træk felter fra venstre her."
|
507 |
+
|
508 |
+
#: ../classes/class-ccf-form-manager.php:133 ../classes/class-ccf-form-manager.php:1250
|
509 |
+
msgid "Insert into post"
|
510 |
+
msgstr "Indsæt i indlæg"
|
511 |
+
|
512 |
+
#: ../classes/class-ccf-form-manager.php:134
|
513 |
+
msgid "Save Form"
|
514 |
+
msgstr "Gem Formular"
|
515 |
+
|
516 |
+
#: ../classes/class-ccf-form-manager.php:140
|
517 |
+
msgid "Form Settings"
|
518 |
+
msgstr "Formular Indstillinger"
|
519 |
+
|
520 |
+
#: ../classes/class-ccf-form-manager.php:143
|
521 |
+
msgid "Form Title:"
|
522 |
+
msgstr "Formular Titel:"
|
523 |
+
|
524 |
+
#: ../classes/class-ccf-form-manager.php:148
|
525 |
+
msgid "Form Description:"
|
526 |
+
msgstr "Formular Beskrivelse:"
|
527 |
+
|
528 |
+
#: ../classes/class-ccf-form-manager.php:153
|
529 |
+
msgid "Button Text:"
|
530 |
+
msgstr "Knap Tekst:"
|
531 |
+
|
532 |
+
#: ../classes/class-ccf-form-manager.php:158
|
533 |
+
msgid "On form completion:"
|
534 |
+
msgstr "Ved formular afslutning:"
|
535 |
+
|
536 |
+
#: ../classes/class-ccf-form-manager.php:161
|
537 |
+
msgid "Show text"
|
538 |
+
msgstr "Vis tekst"
|
539 |
+
|
540 |
+
#: ../classes/class-ccf-form-manager.php:162
|
541 |
+
msgid "Redirect"
|
542 |
+
msgstr "Omdiriger"
|
543 |
+
|
544 |
+
#: ../classes/class-ccf-form-manager.php:166
|
545 |
+
msgid "Redirect URL:"
|
546 |
+
msgstr "Omdiriger URL:"
|
547 |
+
|
548 |
+
#: ../classes/class-ccf-form-manager.php:170
|
549 |
+
msgid "Completion Message:"
|
550 |
+
msgstr "Afslutnings Besked:"
|
551 |
+
|
552 |
+
#: ../classes/class-ccf-form-manager.php:174
|
553 |
+
msgid "Pause form:"
|
554 |
+
msgstr "Pause formular:"
|
555 |
+
|
556 |
+
#: ../classes/class-ccf-form-manager.php:177 ../classes/class-ccf-form-manager.php:196
|
557 |
+
#: ../classes/class-ccf-form-manager.php:328 ../classes/class-ccf-form-manager.php:378
|
558 |
+
#: ../classes/class-ccf-form-manager.php:454 ../classes/class-ccf-form-manager.php:544
|
559 |
+
#: ../classes/class-ccf-form-manager.php:609 ../classes/class-ccf-form-manager.php:651
|
560 |
+
#: ../classes/class-ccf-form-manager.php:712 ../classes/class-ccf-form-manager.php:759
|
561 |
+
#: ../classes/class-ccf-form-manager.php:801 ../classes/class-ccf-form-manager.php:808
|
562 |
+
#: ../classes/class-ccf-form-manager.php:859 ../classes/class-ccf-form-manager.php:902
|
563 |
+
#: ../classes/class-ccf-form-manager.php:945
|
564 |
+
msgid "No"
|
565 |
+
msgstr "Nej"
|
566 |
+
|
567 |
+
#: ../classes/class-ccf-form-manager.php:178 ../classes/class-ccf-form-manager.php:195
|
568 |
+
#: ../classes/class-ccf-form-manager.php:327 ../classes/class-ccf-form-manager.php:377
|
569 |
+
#: ../classes/class-ccf-form-manager.php:453 ../classes/class-ccf-form-manager.php:543
|
570 |
+
#: ../classes/class-ccf-form-manager.php:608 ../classes/class-ccf-form-manager.php:650
|
571 |
+
#: ../classes/class-ccf-form-manager.php:711 ../classes/class-ccf-form-manager.php:758
|
572 |
+
#: ../classes/class-ccf-form-manager.php:800 ../classes/class-ccf-form-manager.php:807
|
573 |
+
#: ../classes/class-ccf-form-manager.php:858 ../classes/class-ccf-form-manager.php:901
|
574 |
+
#: ../classes/class-ccf-form-manager.php:944
|
575 |
+
msgid "Yes"
|
576 |
+
msgstr "Ja"
|
577 |
+
|
578 |
+
#: ../classes/class-ccf-form-manager.php:182
|
579 |
+
msgid "Pause Message:"
|
580 |
+
msgstr "Pause Besked:"
|
581 |
+
|
582 |
+
#: ../classes/class-ccf-form-manager.php:189
|
583 |
+
msgid "Form Notifications"
|
584 |
+
msgstr "Formular Advisering"
|
585 |
+
|
586 |
+
#: ../classes/class-ccf-form-manager.php:192
|
587 |
+
msgid "Send Email Notifications:"
|
588 |
+
msgstr "Send Email Advisering"
|
589 |
+
|
590 |
+
#: ../classes/class-ccf-form-manager.php:201
|
591 |
+
msgid "\"To\" Email Addresses (comma separated):"
|
592 |
+
msgstr "\"Til\" Email Adresser (kommasepareret):"
|
593 |
+
|
594 |
+
#: ../classes/class-ccf-form-manager.php:206
|
595 |
+
msgid "\"From\" Email Address Type:"
|
596 |
+
msgstr "\"Fra\" Email Adresse Type:"
|
597 |
+
|
598 |
+
#: ../classes/class-ccf-form-manager.php:208
|
599 |
+
msgid "WordPress Default"
|
600 |
+
msgstr "WordPress Standard"
|
601 |
+
|
602 |
+
#: ../classes/class-ccf-form-manager.php:209
|
603 |
+
msgid "Custom Email"
|
604 |
+
msgstr "Brugerdefineret Email"
|
605 |
+
|
606 |
+
#: ../classes/class-ccf-form-manager.php:210 ../classes/class-ccf-form-manager.php:231
|
607 |
+
msgid "Form Field"
|
608 |
+
msgstr "Formular Felt"
|
609 |
+
|
610 |
+
#: ../classes/class-ccf-form-manager.php:213
|
611 |
+
msgid ""
|
612 |
+
"You can set the notification emails from address to be the WP default, a custom email "
|
613 |
+
"address, or pull the address from a field in the form."
|
614 |
+
msgstr ""
|
615 |
+
"Du kan sætte advisering emails fra adresse til at være WP standard, en brugerdefineret "
|
616 |
+
"email adresse, eller trække adressen fra et felt i formularen."
|
617 |
+
|
618 |
+
#: ../classes/class-ccf-form-manager.php:217
|
619 |
+
msgid "Custom \"From\" Email Address:"
|
620 |
+
msgstr "Brugerdefineret \"Fra\" Email Adresse:"
|
621 |
+
|
622 |
+
#: ../classes/class-ccf-form-manager.php:222
|
623 |
+
msgid "Pull \"From\" Email Dynamically from Field:"
|
624 |
+
msgstr "Træk \"Fra\" Email dynamisk fra felt:"
|
625 |
+
|
626 |
+
#: ../classes/class-ccf-form-manager.php:228
|
627 |
+
msgid "\"From\" Name Type:"
|
628 |
+
msgstr "\"Fra\" Navn Type:"
|
629 |
+
|
630 |
+
#: ../classes/class-ccf-form-manager.php:230
|
631 |
+
msgid "Custom Name"
|
632 |
+
msgstr "Brugerdefineret Navn"
|
633 |
+
|
634 |
+
#: ../classes/class-ccf-form-manager.php:234
|
635 |
+
msgid ""
|
636 |
+
"You can set the notification emails from name to be a custom name or pull the name from "
|
637 |
+
"a field in the form."
|
638 |
+
msgstr ""
|
639 |
+
"Du kan indstille advisering emails fra navn til at være et brugerdefineret navn eller "
|
640 |
+
"trække navnet fra et felt i formularen."
|
641 |
+
|
642 |
+
#: ../classes/class-ccf-form-manager.php:238
|
643 |
+
msgid "Custom \"From\" Name:"
|
644 |
+
msgstr "Brugerdefineret \"Fra\" Navn:"
|
645 |
+
|
646 |
+
#: ../classes/class-ccf-form-manager.php:243
|
647 |
+
msgid "Pull \"From\" Name Dynamically from Field:"
|
648 |
+
msgstr "Træk \"Fra\" Navn dynamisk fra felt:"
|
649 |
+
|
650 |
+
#: ../classes/class-ccf-form-manager.php:257
|
651 |
+
msgid "items"
|
652 |
+
msgstr "emner"
|
653 |
+
|
654 |
+
#: ../classes/class-ccf-form-manager.php:272 ../classes/class-ccf-form-manager.php:285
|
655 |
+
msgid "ID"
|
656 |
+
msgstr "ID"
|
657 |
+
|
658 |
+
#: ../classes/class-ccf-form-manager.php:273 ../classes/class-ccf-form-manager.php:286
|
659 |
+
msgid "Title"
|
660 |
+
msgstr "Titel"
|
661 |
+
|
662 |
+
#: ../classes/class-ccf-form-manager.php:300
|
663 |
+
msgid "<span>←</span> Click on a field to edit it."
|
664 |
+
msgstr "<span>←</span> Klik på et felt for at redigere det."
|
665 |
+
|
666 |
+
#: ../classes/class-ccf-form-manager.php:309 ../classes/class-ccf-form-manager.php:353
|
667 |
+
#: ../classes/class-ccf-form-manager.php:435 ../classes/class-ccf-form-manager.php:525
|
668 |
+
msgid "Internal Unique Slug"
|
669 |
+
msgstr "Intern Unik Slug"
|
670 |
+
|
671 |
+
#: ../classes/class-ccf-form-manager.php:313 ../classes/class-ccf-form-manager.php:357
|
672 |
+
#: ../classes/class-ccf-form-manager.php:400 ../classes/class-ccf-form-manager.php:439
|
673 |
+
#: ../classes/class-ccf-form-manager.php:529 ../classes/class-ccf-form-manager.php:598
|
674 |
+
#: ../classes/class-ccf-form-manager.php:634 ../classes/class-ccf-form-manager.php:690
|
675 |
+
#: ../classes/class-ccf-form-manager.php:741 ../classes/class-ccf-form-manager.php:784
|
676 |
+
#: ../classes/class-ccf-form-manager.php:848 ../classes/class-ccf-form-manager.php:891
|
677 |
+
#: ../classes/class-ccf-form-manager.php:934
|
678 |
+
msgid "Label:"
|
679 |
+
msgstr "Etiket:"
|
680 |
+
|
681 |
+
#: ../classes/class-ccf-form-manager.php:317 ../classes/class-ccf-form-manager.php:361
|
682 |
+
#: ../classes/class-ccf-form-manager.php:404 ../classes/class-ccf-form-manager.php:443
|
683 |
+
#: ../classes/class-ccf-form-manager.php:533 ../classes/class-ccf-form-manager.php:602
|
684 |
+
#: ../classes/class-ccf-form-manager.php:638 ../classes/class-ccf-form-manager.php:694
|
685 |
+
#: ../classes/class-ccf-form-manager.php:745 ../classes/class-ccf-form-manager.php:788
|
686 |
+
#: ../classes/class-ccf-form-manager.php:852 ../classes/class-ccf-form-manager.php:895
|
687 |
+
#: ../classes/class-ccf-form-manager.php:938
|
688 |
+
msgid "Description:"
|
689 |
+
msgstr "Beskrivelse:"
|
690 |
+
|
691 |
+
#: ../classes/class-ccf-form-manager.php:321 ../classes/class-ccf-form-manager.php:447
|
692 |
+
#: ../classes/class-ccf-form-manager.php:537 ../classes/class-ccf-form-manager.php:573
|
693 |
+
#: ../classes/class-ccf-form-manager.php:643 ../classes/class-ccf-form-manager.php:698
|
694 |
+
#: ../classes/class-ccf-form-manager.php:793
|
695 |
+
msgid "Initial Value:"
|
696 |
+
msgstr "Startværdi:"
|
697 |
+
|
698 |
+
#: ../classes/class-ccf-form-manager.php:325 ../classes/class-ccf-form-manager.php:375
|
699 |
+
#: ../classes/class-ccf-form-manager.php:451 ../classes/class-ccf-form-manager.php:541
|
700 |
+
#: ../classes/class-ccf-form-manager.php:606 ../classes/class-ccf-form-manager.php:648
|
701 |
+
#: ../classes/class-ccf-form-manager.php:709 ../classes/class-ccf-form-manager.php:756
|
702 |
+
#: ../classes/class-ccf-form-manager.php:798 ../classes/class-ccf-form-manager.php:856
|
703 |
+
#: ../classes/class-ccf-form-manager.php:899 ../classes/class-ccf-form-manager.php:942
|
704 |
+
msgid "Required:"
|
705 |
+
msgstr "Påkrævet:"
|
706 |
+
|
707 |
+
#: ../classes/class-ccf-form-manager.php:334 ../classes/class-ccf-form-manager.php:384
|
708 |
+
#: ../classes/class-ccf-form-manager.php:420 ../classes/class-ccf-form-manager.php:460
|
709 |
+
#: ../classes/class-ccf-form-manager.php:485 ../classes/class-ccf-form-manager.php:510
|
710 |
+
#: ../classes/class-ccf-form-manager.php:550 ../classes/class-ccf-form-manager.php:579
|
711 |
+
#: ../classes/class-ccf-form-manager.php:615 ../classes/class-ccf-form-manager.php:665
|
712 |
+
#: ../classes/class-ccf-form-manager.php:718 ../classes/class-ccf-form-manager.php:765
|
713 |
+
#: ../classes/class-ccf-form-manager.php:814 ../classes/class-ccf-form-manager.php:872
|
714 |
+
#: ../classes/class-ccf-form-manager.php:915 ../classes/class-ccf-form-manager.php:958
|
715 |
+
msgid "Advanced"
|
716 |
+
msgstr "Avanceret"
|
717 |
+
|
718 |
+
#: ../classes/class-ccf-form-manager.php:337 ../classes/class-ccf-form-manager.php:387
|
719 |
+
#: ../classes/class-ccf-form-manager.php:423 ../classes/class-ccf-form-manager.php:463
|
720 |
+
#: ../classes/class-ccf-form-manager.php:488 ../classes/class-ccf-form-manager.php:513
|
721 |
+
#: ../classes/class-ccf-form-manager.php:553 ../classes/class-ccf-form-manager.php:582
|
722 |
+
#: ../classes/class-ccf-form-manager.php:618 ../classes/class-ccf-form-manager.php:668
|
723 |
+
#: ../classes/class-ccf-form-manager.php:721 ../classes/class-ccf-form-manager.php:768
|
724 |
+
#: ../classes/class-ccf-form-manager.php:817 ../classes/class-ccf-form-manager.php:875
|
725 |
+
#: ../classes/class-ccf-form-manager.php:918 ../classes/class-ccf-form-manager.php:961
|
726 |
+
msgid "Class Name:"
|
727 |
+
msgstr "Klasse Navn:"
|
728 |
+
|
729 |
+
#: ../classes/class-ccf-form-manager.php:341 ../classes/class-ccf-form-manager.php:467
|
730 |
+
#: ../classes/class-ccf-form-manager.php:557 ../classes/class-ccf-form-manager.php:673
|
731 |
+
#: ../classes/class-ccf-form-manager.php:725 ../classes/class-ccf-form-manager.php:822
|
732 |
+
msgid "Placeholder Text:"
|
733 |
+
msgstr "Eksempeltekst:"
|
734 |
+
|
735 |
+
#: ../classes/class-ccf-form-manager.php:365
|
736 |
+
msgid "Allowed File Extensions (comma separate):"
|
737 |
+
msgstr "Tilladte Filtyper (kommasepareret):"
|
738 |
+
|
739 |
+
#: ../classes/class-ccf-form-manager.php:367
|
740 |
+
msgid ""
|
741 |
+
"If left blank, will default to all extensions registered by WordPress. If you use a "
|
742 |
+
"file extension or mime type not <a href=\"http://codex.wordpress.org/Function_Reference/"
|
743 |
+
"get_allowed_mime_types\">whitelisted by WordPress</a>, you will need to filter and "
|
744 |
+
"manually whitelist the new extension."
|
745 |
+
msgstr ""
|
746 |
+
"Hvis tom, vil standard være alle udvidelser der er registreret af WordPress. Hvis du "
|
747 |
+
"bruger en filtype eller mimetype som ikke er <a href=\"http://codex.wordpress.org/"
|
748 |
+
"Function_Reference/get_allowed_mime_types\">whitelisted af WordPress</a>, skal du "
|
749 |
+
"filtrere og manuelt whileliste den nye udvidelse."
|
750 |
+
|
751 |
+
#: ../classes/class-ccf-form-manager.php:370
|
752 |
+
msgid "Max File Size (in MB):"
|
753 |
+
msgstr "Maks filstørrelse (i MB):"
|
754 |
+
|
755 |
+
#: ../classes/class-ccf-form-manager.php:372
|
756 |
+
#, php-format
|
757 |
+
msgid "If left blank, will default to %d MB. Maximum allowed by server is %d MB."
|
758 |
+
msgstr "Hvis blank, vil standard være %d MB. Maksimum tilladt af serveren er %d MB."
|
759 |
+
|
760 |
+
#: ../classes/class-ccf-form-manager.php:398
|
761 |
+
msgid ""
|
762 |
+
"reCAPTCHA is a simple captcha service provided by Google. <a target=\"_blank\" href="
|
763 |
+
"\"https://www.google.com/recaptcha/intro/index.html\">Learn more</a>"
|
764 |
+
msgstr ""
|
765 |
+
"reCAPTCHA er en simpel captcha service leveret af Google. <a target=\"_blank\" href="
|
766 |
+
"\"https://www.google.com/recaptcha/intro/index.html\">Læs mere</a>"
|
767 |
+
|
768 |
+
#: ../classes/class-ccf-form-manager.php:408
|
769 |
+
msgid "Site Key:"
|
770 |
+
msgstr "Side Nøgle:"
|
771 |
+
|
772 |
+
#: ../classes/class-ccf-form-manager.php:410 ../classes/class-ccf-form-manager.php:415
|
773 |
+
msgid "Don't have one?"
|
774 |
+
msgstr "Har du ikke en?"
|
775 |
+
|
776 |
+
#: ../classes/class-ccf-form-manager.php:413
|
777 |
+
msgid "Secret Key:"
|
778 |
+
msgstr "Hemmelig Nøgle:"
|
779 |
+
|
780 |
+
#: ../classes/class-ccf-form-manager.php:476 ../classes/class-ccf-form-manager.php:497
|
781 |
+
#: ../classes/class-ccf-form-manager.php:522 ../classes/class-ccf-form-manager.php:566
|
782 |
+
#: ../classes/class-ccf-form-manager.php:591 ../classes/class-ccf-form-manager.php:627
|
783 |
+
#: ../classes/class-ccf-form-manager.php:683 ../classes/class-ccf-form-manager.php:734
|
784 |
+
#: ../classes/class-ccf-form-manager.php:777 ../classes/class-ccf-form-manager.php:841
|
785 |
+
#: ../classes/class-ccf-form-manager.php:884 ../classes/class-ccf-form-manager.php:927
|
786 |
+
msgid "Basic"
|
787 |
+
msgstr "Grundlæggende"
|
788 |
+
|
789 |
+
#: ../classes/class-ccf-form-manager.php:479
|
790 |
+
msgid "HTML Content:"
|
791 |
+
msgstr "HTML Indhold:"
|
792 |
+
|
793 |
+
#: ../classes/class-ccf-form-manager.php:500
|
794 |
+
msgid "Heading:"
|
795 |
+
msgstr "Overskrift:"
|
796 |
+
|
797 |
+
#: ../classes/class-ccf-form-manager.php:504
|
798 |
+
msgid "Sub Heading:"
|
799 |
+
msgstr "Underoverskrift:"
|
800 |
+
|
801 |
+
#: ../classes/class-ccf-form-manager.php:569 ../classes/class-ccf-form-manager.php:594
|
802 |
+
#: ../classes/class-ccf-form-manager.php:630 ../classes/class-ccf-form-manager.php:686
|
803 |
+
#: ../classes/class-ccf-form-manager.php:737 ../classes/class-ccf-form-manager.php:780
|
804 |
+
#: ../classes/class-ccf-form-manager.php:844 ../classes/class-ccf-form-manager.php:887
|
805 |
+
#: ../classes/class-ccf-form-manager.php:930
|
806 |
+
msgid "Internal Unique Slug (a-z, 0-9, -, _):"
|
807 |
+
msgstr "Intern Unik Slug (a-z, 0-9, -, _):"
|
808 |
+
|
809 |
+
#: ../classes/class-ccf-form-manager.php:656
|
810 |
+
msgid "Enable Date Select"
|
811 |
+
msgstr "Aktiver Dato Vælg"
|
812 |
+
|
813 |
+
#: ../classes/class-ccf-form-manager.php:660
|
814 |
+
msgid "Enable Time Select"
|
815 |
+
msgstr "Aktiver Tid Vælg"
|
816 |
+
|
817 |
+
#: ../classes/class-ccf-form-manager.php:702
|
818 |
+
msgid "Format:"
|
819 |
+
msgstr "Format:"
|
820 |
+
|
821 |
+
#: ../classes/class-ccf-form-manager.php:705 ../classes/class-ccf-form-manager.php:752
|
822 |
+
msgid "International"
|
823 |
+
msgstr "International"
|
824 |
+
|
825 |
+
#: ../classes/class-ccf-form-manager.php:749
|
826 |
+
msgid "Type:"
|
827 |
+
msgstr "Type:"
|
828 |
+
|
829 |
+
#: ../classes/class-ccf-form-manager.php:751
|
830 |
+
msgid "United States"
|
831 |
+
msgstr "Forenede Stater"
|
832 |
+
|
833 |
+
#: ../classes/class-ccf-form-manager.php:805
|
834 |
+
msgid "Require Confirmation:"
|
835 |
+
msgstr "Kræv Bekræftelse:"
|
836 |
+
|
837 |
+
#: ../classes/class-ccf-form-manager.php:833
|
838 |
+
msgid "Label"
|
839 |
+
msgstr "Etiket"
|
840 |
+
|
841 |
+
#: ../classes/class-ccf-form-manager.php:834
|
842 |
+
msgid "Value"
|
843 |
+
msgstr "Værdi"
|
844 |
+
|
845 |
+
#: ../classes/class-ccf-form-manager.php:863 ../classes/class-ccf-form-manager.php:906
|
846 |
+
#: ../classes/class-ccf-form-manager.php:949
|
847 |
+
msgid "Manage field choices:"
|
848 |
+
msgstr "Administerer felt valg:"
|
849 |
+
|
850 |
+
#: ../classes/class-ccf-form-manager.php:867 ../classes/class-ccf-form-manager.php:910
|
851 |
+
#: ../classes/class-ccf-form-manager.php:953
|
852 |
+
msgid ""
|
853 |
+
"Note: If an option does not have a \"value\", it will not be considered a valid "
|
854 |
+
"selection if the field is required. The \"value\" is what's read, stored, and displayed "
|
855 |
+
"in the submission."
|
856 |
+
msgstr ""
|
857 |
+
"Bemærk: Hvis en option ikke har en \"værdi\", vil det ikke blive betragtet som et "
|
858 |
+
"gyldigt valg hvis feltet er påkrævet. \"Værdien\" er hvad der læses, gemmes og vises i "
|
859 |
+
"indsendelsen."
|
860 |
+
|
861 |
+
#: ../classes/class-ccf-form-manager.php:970
|
862 |
+
msgid "You currently have no forms. Add some!"
|
863 |
+
msgstr "Du har i øjeblikket ingen formularer. Tilføj nogle!"
|
864 |
+
|
865 |
+
#: ../classes/class-ccf-form-manager.php:993
|
866 |
+
msgid "Allowed file extensions are {{ extensions }}. "
|
867 |
+
msgstr "Tilladte filtyper er {{ extensions }}."
|
868 |
+
|
869 |
+
#: ../classes/class-ccf-form-manager.php:995
|
870 |
+
msgid "Max file size is {{ file_size }} MB. "
|
871 |
+
msgstr "Maks filstørrelse er {{ file_size }} MB."
|
872 |
+
|
873 |
+
#: ../classes/class-ccf-form-manager.php:1020 ../classes/class-ccf-form-manager.php:1036
|
874 |
+
#: ../classes/class-ccf-form-manager.php:1054
|
875 |
+
msgid "An example choice"
|
876 |
+
msgstr "Et eksempel valg"
|
877 |
+
|
878 |
+
#: ../classes/class-ccf-form-manager.php:1072
|
879 |
+
msgid "Arbitrary block of HTML."
|
880 |
+
msgstr "Vilkårlig blok af HTML."
|
881 |
+
|
882 |
+
#: ../classes/class-ccf-form-manager.php:1078
|
883 |
+
msgid "Section Heading"
|
884 |
+
msgstr "Afsnitsoverskrift"
|
885 |
+
|
886 |
+
#: ../classes/class-ccf-form-manager.php:1080
|
887 |
+
msgid "This is the sub-heading text."
|
888 |
+
msgstr "Dette er underoverskrifts teksten."
|
889 |
+
|
890 |
+
#: ../classes/class-ccf-form-manager.php:1249
|
891 |
+
msgid "Edit"
|
892 |
+
msgstr "Rediger"
|
893 |
+
|
894 |
+
#: ../classes/class-ccf-form-manager.php:1251
|
895 |
+
msgid "Trash"
|
896 |
+
msgstr "Papirkurv"
|
897 |
+
|
898 |
+
#: ../classes/class-ccf-form-manager.php:1294
|
899 |
+
msgid "There is a problem with this form. Is it trashed or deleted?"
|
900 |
+
msgstr "Der er et problem med formularen. Er den smidt i papirkurven eller slettet?"
|
901 |
+
|
902 |
+
#: ../classes/class-ccf-form-manager.php:1436
|
903 |
+
msgid "IP Address"
|
904 |
+
msgstr "IP Adresse"
|
905 |
+
|
906 |
+
#: ../classes/class-ccf-form-manager.php:1448
|
907 |
+
msgid "There are no submissions."
|
908 |
+
msgstr "Der er ingen indlæg."
|
909 |
+
|
910 |
+
#: ../classes/class-ccf-form-manager.php:1477
|
911 |
+
msgid "Add Form"
|
912 |
+
msgstr "Tilføj Formular"
|
913 |
+
|
914 |
+
#: ../classes/class-ccf-form-manager.php:1501
|
915 |
+
msgid "Single Line Text"
|
916 |
+
msgstr "Enkelt Linje Tekst"
|
917 |
+
|
918 |
+
#: ../classes/class-ccf-form-manager.php:1502
|
919 |
+
msgid "Dropdown"
|
920 |
+
msgstr "Dropdown"
|
921 |
+
|
922 |
+
#: ../classes/class-ccf-form-manager.php:1503
|
923 |
+
msgid "Checkboxes"
|
924 |
+
msgstr "Afkrydsningsfelter"
|
925 |
+
|
926 |
+
#: ../classes/class-ccf-form-manager.php:1504
|
927 |
+
msgid "Radio Buttons"
|
928 |
+
msgstr "Radio Buttons"
|
929 |
+
|
930 |
+
#: ../classes/class-ccf-form-manager.php:1505
|
931 |
+
msgid "Paragraph Text"
|
932 |
+
msgstr "Afsnits Tekst"
|
933 |
+
|
934 |
+
#: ../classes/class-ccf-form-manager.php:1506
|
935 |
+
msgid "Hidden"
|
936 |
+
msgstr "Skjult"
|
937 |
+
|
938 |
+
#: ../classes/class-ccf-form-manager.php:1507
|
939 |
+
msgid "File Upload"
|
940 |
+
msgstr "Fil Upload"
|
941 |
+
|
942 |
+
#: ../classes/class-ccf-form-manager.php:1511
|
943 |
+
msgid "HTML"
|
944 |
+
msgstr "HTML"
|
945 |
+
|
946 |
+
#: ../classes/class-ccf-form-manager.php:1512
|
947 |
+
msgid "Section Header"
|
948 |
+
msgstr "Sektions Overskrift"
|
949 |
+
|
950 |
+
#: ../classes/class-ccf-form-manager.php:1517
|
951 |
+
msgid "Name"
|
952 |
+
msgstr "Navn"
|
953 |
+
|
954 |
+
#: ../classes/class-ccf-form-manager.php:1518
|
955 |
+
msgid "Date/Time"
|
956 |
+
msgstr "Dato/Tid"
|
957 |
+
|
958 |
+
#: ../classes/class-ccf-form-manager.php:1519
|
959 |
+
msgid "Website"
|
960 |
+
msgstr "Webside"
|
961 |
+
|
962 |
+
#: ../classes/class-ccf-form-manager.php:1520
|
963 |
+
msgid "Address"
|
964 |
+
msgstr "Adresse"
|
965 |
+
|
966 |
+
#: ../classes/class-ccf-form-manager.php:1521
|
967 |
+
msgid "Phone"
|
968 |
+
msgstr "Telefon"
|
969 |
+
|
970 |
+
#: ../classes/class-ccf-form-manager.php:1522
|
971 |
+
msgid "reCAPTCHA"
|
972 |
+
msgstr "reCAPTCHA"
|
973 |
+
|
974 |
+
#: ../classes/class-ccf-form-manager.php:1541
|
975 |
+
msgid "You have no email fields"
|
976 |
+
msgstr "Du har ingen email felter"
|
977 |
+
|
978 |
+
#: ../classes/class-ccf-form-manager.php:1542
|
979 |
+
msgid "You have no name fields"
|
980 |
+
msgstr "Du har ingen navne felter"
|
981 |
+
|
982 |
+
#: ../classes/class-ccf-form-manager.php:1543
|
983 |
+
msgid "Invalid date"
|
984 |
+
msgstr "Ugyldig dato"
|
985 |
+
|
986 |
+
#: ../classes/class-ccf-form-manager.php:1545
|
987 |
+
msgid "Field Label"
|
988 |
+
msgstr "Felt Etiket"
|
989 |
+
|
990 |
+
#: ../classes/class-ccf-form-manager.php:1546
|
991 |
+
msgid "Form Submission"
|
992 |
+
msgstr "Formular Indlæg"
|
993 |
+
|
994 |
+
#: ../classes/class-ccf-form-manager.php:1547 ../classes/class-ccf-form-renderer.php:120
|
995 |
+
msgid "This form is paused right now. Check back later!"
|
996 |
+
msgstr "Denne formular er sat på pause lige nu. Check tilbage senere!"
|
997 |
+
|
998 |
+
#: ../classes/class-ccf-form-renderer.php:55
|
999 |
+
msgid "This is not a valid email address."
|
1000 |
+
msgstr "Detter er ikke en gyldig email adresse."
|
1001 |
+
|
1002 |
+
#: ../classes/class-ccf-form-renderer.php:58
|
1003 |
+
msgid "This is not a valid phone number."
|
1004 |
+
msgstr "Dette er ikke et gyldigt telefonnummer."
|
1005 |
+
|
1006 |
+
#: ../classes/class-ccf-form-renderer.php:59
|
1007 |
+
msgid "This phone number is not 10 digits"
|
1008 |
+
msgstr "Dette telefonnummer er ikke 10 cifre"
|
1009 |
+
|
1010 |
+
#: ../classes/class-ccf-form-renderer.php:63
|
1011 |
+
msgid "This is not an allowed file extension"
|
1012 |
+
msgstr "Detter er ikke en tilladt filtype"
|
1013 |
+
|
1014 |
+
#: ../classes/class-ccf-form-renderer.php:64
|
1015 |
+
msgid "This file is bigger than"
|
1016 |
+
msgstr "Denne fil er større end"
|
1017 |
+
|
1018 |
+
#: ../classes/class-ccf-form-renderer.php:65
|
1019 |
+
msgid "An unknown error occured."
|
1020 |
+
msgstr "Der skete en ukendt fejl."
|
1021 |
+
|
1022 |
+
#: ../classes/class-ccf-submission-cpt.php:41
|
1023 |
+
msgid "Form Submissions"
|
1024 |
+
msgstr "Formular Indsendelser"
|
1025 |
+
|
1026 |
+
#: ../classes/class-ccf-upgrader.php:37
|
1027 |
+
msgid ""
|
1028 |
+
"Did you just upgrade to a post 6.0 version of Custom Contact Forms? If so, you might "
|
1029 |
+
"need to upgrade your database to use your old forms. Please backup your database before "
|
1030 |
+
"running the upgrade."
|
1031 |
+
msgstr ""
|
1032 |
+
"Har du lige opgraderet til en version nyere end 6.0 af Custom Contact Forms? Hvis det "
|
1033 |
+
"er tilfældet, skal du muligvis opgradere din database for at bruge dine gamle "
|
1034 |
+
"formularer. Venligst backup din database før du kører opgraderingen."
|
1035 |
+
|
1036 |
+
#: ../classes/class-ccf-upgrader.php:38
|
1037 |
+
msgid "Upgrade"
|
1038 |
+
msgstr "Opgrader"
|
1039 |
+
|
1040 |
+
#: ../classes/class-ccf-upgrader.php:39
|
1041 |
+
msgid "Dismiss"
|
1042 |
+
msgstr "Afvis"
|
1043 |
+
|
1044 |
+
#: ../classes/class-ccf-upgrader.php:61
|
1045 |
+
msgid "Database update complete."
|
1046 |
+
msgstr "Database opgradering gennemført."
|
1047 |
+
|
1048 |
+
#: ../classes/class-ccf-widget.php:17
|
1049 |
+
msgid "Add a custom contact form to a sidebar."
|
1050 |
+
msgstr "Tilføj en tilpasset kontaktformular til et sidepanel."
|
1051 |
+
|
1052 |
+
#: ../classes/class-ccf-widget.php:18
|
1053 |
+
msgid "Custom Contact Form"
|
1054 |
+
msgstr "Tilpasset Kontaktformular"
|
1055 |
+
|
1056 |
+
#: ../classes/class-ccf-widget.php:64
|
1057 |
+
msgid "Title:"
|
1058 |
+
msgstr "Titel:"
|
1059 |
+
|
1060 |
+
#: ../classes/class-ccf-widget.php:71
|
1061 |
+
msgid "Choose a form:"
|
1062 |
+
msgstr "Vælg en formular:"
|
1063 |
+
|
1064 |
+
#: ../classes/class-ccf-widget.php:80
|
1065 |
+
msgid "Untitled"
|
1066 |
+
msgstr "Unavngivet"
|
1067 |
+
|
1068 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-comments.php:42
|
1069 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-comments.php:48
|
1070 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-comments.php:108
|
1071 |
+
msgid "Invalid comment ID."
|
1072 |
+
msgstr "Ugyldig kommentar ID."
|
1073 |
+
|
1074 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-comments.php:52
|
1075 |
+
msgid "Sorry, you are not allowed to delete this comment."
|
1076 |
+
msgstr "Beklager, du har ikke tilladelse til at slette denne kommentar."
|
1077 |
+
|
1078 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-comments.php:58
|
1079 |
+
msgid "The comment cannot be deleted."
|
1080 |
+
msgstr "Denne kommentar kan ikke slettes."
|
1081 |
+
|
1082 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-comments.php:62
|
1083 |
+
msgid "Permanently deleted comment"
|
1084 |
+
msgstr "Kommentar slettet permanent "
|
1085 |
+
|
1086 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-comments.php:65
|
1087 |
+
msgid "Deleted comment"
|
1088 |
+
msgstr "Kommentar slettet"
|
1089 |
+
|
1090 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-customposttype.php:33
|
1091 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:29
|
1092 |
+
msgid "The route base must be overridden"
|
1093 |
+
msgstr "Route base skal overskrives"
|
1094 |
+
|
1095 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-customposttype.php:37
|
1096 |
+
msgid "The post type must be overridden"
|
1097 |
+
msgstr "Indlæg type skal overskrives"
|
1098 |
+
|
1099 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-customposttype.php:115
|
1100 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-customposttype.php:136
|
1101 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-customposttype.php:161
|
1102 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-customposttype.php:182
|
1103 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-media.php:35
|
1104 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-media.php:78
|
1105 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-media.php:153
|
1106 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-media.php:174
|
1107 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-media.php:205
|
1108 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:768
|
1109 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:788
|
1110 |
+
msgid "Invalid post type"
|
1111 |
+
msgstr "Ugyldig indlæg type"
|
1112 |
+
|
1113 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-media.php:210
|
1114 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:803
|
1115 |
+
msgid "Sorry, you are not allowed to post on this site."
|
1116 |
+
msgstr "Beklager, du har ikke tilladelse til at tilføje indlæg på denne side."
|
1117 |
+
|
1118 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-media.php:215
|
1119 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:795
|
1120 |
+
msgid "Sorry, you are not allowed to edit this post."
|
1121 |
+
msgstr "Beklager, du har ikke tilladelse til at redigere dette indlæg."
|
1122 |
+
|
1123 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-media.php:288
|
1124 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-media.php:371
|
1125 |
+
msgid "No data supplied"
|
1126 |
+
msgstr "Ingen data leveret"
|
1127 |
+
|
1128 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-media.php:292
|
1129 |
+
msgid "No Content-Type supplied"
|
1130 |
+
msgstr "Ingen Content-Type leveret"
|
1131 |
+
|
1132 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-media.php:296
|
1133 |
+
msgid "No Content-Disposition supplied"
|
1134 |
+
msgstr "Ingen Content-Disposition leveret"
|
1135 |
+
|
1136 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-media.php:315
|
1137 |
+
msgid "Invalid Content-Disposition supplied"
|
1138 |
+
msgstr "Ugyldig Content-Disposition leveret"
|
1139 |
+
|
1140 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-media.php:323
|
1141 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-media.php:378
|
1142 |
+
msgid "Content hash did not match expected"
|
1143 |
+
msgstr "Indhold hash matchede ikke det forventede"
|
1144 |
+
|
1145 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-media.php:336
|
1146 |
+
msgid "Could not open file handle"
|
1147 |
+
msgstr "Kunne ikke åbne filhåndtering"
|
1148 |
+
|
1149 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-media.php:414
|
1150 |
+
msgid "Invalid featured image."
|
1151 |
+
msgstr "Ugyldig fremhævet billede."
|
1152 |
+
|
1153 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta-posts.php:34
|
1154 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:655
|
1155 |
+
msgid "Sorry, you cannot edit this post"
|
1156 |
+
msgstr "Beklager, du kan ikke redigere dette indlæg"
|
1157 |
+
|
1158 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:33
|
1159 |
+
msgid "The object type must be overridden"
|
1160 |
+
msgstr "Objekttypen skal overskrives"
|
1161 |
+
|
1162 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:134
|
1163 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:241
|
1164 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:388
|
1165 |
+
msgid "Invalid meta ID."
|
1166 |
+
msgstr "Ugyldig meta ID."
|
1167 |
+
|
1168 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:138
|
1169 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:245
|
1170 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:392
|
1171 |
+
msgid "Meta does not belong to this object"
|
1172 |
+
msgstr "Meta tilhører ikke dette objekt."
|
1173 |
+
|
1174 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:159
|
1175 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:272
|
1176 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:276
|
1177 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:349
|
1178 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:402
|
1179 |
+
#, php-format
|
1180 |
+
msgid "%s is marked as a protected field."
|
1181 |
+
msgstr "%s er makreret som et beskyttet felt."
|
1182 |
+
|
1183 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:169
|
1184 |
+
#, php-format
|
1185 |
+
msgid "%s contains serialized data."
|
1186 |
+
msgstr "%s indeholder serialized data."
|
1187 |
+
|
1188 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:257
|
1189 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:338
|
1190 |
+
msgid "Invalid meta key."
|
1191 |
+
msgstr "Ugyldig metanøgle."
|
1192 |
+
|
1193 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:263
|
1194 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:398
|
1195 |
+
msgid "Invalid existing meta data for action."
|
1196 |
+
msgstr "Ugyldig eksisterende metadata for handling."
|
1197 |
+
|
1198 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:268
|
1199 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:345
|
1200 |
+
msgid "Invalid provided meta data for action."
|
1201 |
+
msgstr "Ugyldig forsyntet metadata for handling."
|
1202 |
+
|
1203 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:289
|
1204 |
+
msgid "Could not update meta."
|
1205 |
+
msgstr "Kunne ikke opdatere meta."
|
1206 |
+
|
1207 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:330
|
1208 |
+
msgid "Missing meta key."
|
1209 |
+
msgstr "Manglende meta nøgle."
|
1210 |
+
|
1211 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:334
|
1212 |
+
msgid "Missing meta value."
|
1213 |
+
msgstr "Manglende meta værdi."
|
1214 |
+
|
1215 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:358
|
1216 |
+
msgid "Could not add meta."
|
1217 |
+
msgstr "Kunne ikke tilføje meta."
|
1218 |
+
|
1219 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:406
|
1220 |
+
msgid "Could not delete meta."
|
1221 |
+
msgstr "Kunne ikke slette meta."
|
1222 |
+
|
1223 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-meta.php:409
|
1224 |
+
msgid "Deleted meta"
|
1225 |
+
msgstr "Meta slettet"
|
1226 |
+
|
1227 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:78
|
1228 |
+
msgid "Sorry, you cannot view the revisions for this post."
|
1229 |
+
msgstr "Beklager, du kan ikke få vist revisionerne for dette indlæg."
|
1230 |
+
|
1231 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:347
|
1232 |
+
msgid "There is a revision of this post that is more recent."
|
1233 |
+
msgstr "Der er en revision af dette indlæg der er nyere."
|
1234 |
+
|
1235 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:378
|
1236 |
+
msgid "Sorry, you are not allowed to delete this post."
|
1237 |
+
msgstr "Beklager, du har ikke tilladelse til at slette dette indlæg."
|
1238 |
+
|
1239 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:384
|
1240 |
+
msgid "The post cannot be deleted."
|
1241 |
+
msgstr "Dette indlæg kan ikke slettes."
|
1242 |
+
|
1243 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:388
|
1244 |
+
msgid "Permanently deleted post"
|
1245 |
+
msgstr "Indlæg slettet permanent"
|
1246 |
+
|
1247 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:431
|
1248 |
+
msgid "Cannot view post type"
|
1249 |
+
msgstr "Kan ikke vist indlæg type"
|
1250 |
+
|
1251 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:665
|
1252 |
+
msgid "Sorry, you cannot view this revision"
|
1253 |
+
msgstr "Beklager, du kan ikke se denne revision"
|
1254 |
+
|
1255 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:701
|
1256 |
+
msgid "There is no excerpt because this is a protected post."
|
1257 |
+
msgstr "Der er ingen uddrag fordi dette er et beskyttet indlæg."
|
1258 |
+
|
1259 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:799
|
1260 |
+
msgid "The post type may not be changed."
|
1261 |
+
msgstr "Indlæg typen kan ikke ændres."
|
1262 |
+
|
1263 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:817
|
1264 |
+
msgid "Sorry, you are not allowed to create private posts in this post type"
|
1265 |
+
msgstr ""
|
1266 |
+
"Beklager, du har ikke tilladelse til at oprette private indlæg i denne indlægs type."
|
1267 |
+
|
1268 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:823
|
1269 |
+
msgid "Sorry, you are not allowed to publish posts in this post type"
|
1270 |
+
msgstr "Beklager, du har ikke tilladelse til at udgive indlæg i denne indlægs type"
|
1271 |
+
|
1272 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:864
|
1273 |
+
msgid "Invalid author object."
|
1274 |
+
msgstr "Ugyldigt forfatter objekt."
|
1275 |
+
|
1276 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:874
|
1277 |
+
msgid "You are not allowed to edit posts as this user."
|
1278 |
+
msgstr "Du har ikke tilladelse til at redigere indlæg som denne bruger."
|
1279 |
+
|
1280 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:880
|
1281 |
+
msgid "Invalid author ID."
|
1282 |
+
msgstr "Ugyldigt forfatter ID."
|
1283 |
+
|
1284 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:892
|
1285 |
+
msgid "Sorry, you are not allowed to create password protected posts in this post type"
|
1286 |
+
msgstr ""
|
1287 |
+
"Beklager, du har ikke tillladelse til at oprette password beskyttede indlæg i denne "
|
1288 |
+
"indlægs type"
|
1289 |
+
|
1290 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:909
|
1291 |
+
msgid "Invalid post parent ID."
|
1292 |
+
msgstr "Ugyldigt indlæg forælder ID."
|
1293 |
+
|
1294 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:935
|
1295 |
+
msgid "Invalid post format."
|
1296 |
+
msgstr "Ugyldigt indlæg format."
|
1297 |
+
|
1298 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-server.php:196
|
1299 |
+
msgid "The JSON API is disabled on this site."
|
1300 |
+
msgstr "JSON API er deaktiveret på denne side."
|
1301 |
+
|
1302 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-server.php:201
|
1303 |
+
msgid "JSONP support is disabled on this site."
|
1304 |
+
msgstr "JSONP understøttelse er deaktiveret på denne side."
|
1305 |
+
|
1306 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-server.php:207
|
1307 |
+
msgid "The JSONP callback function is invalid."
|
1308 |
+
msgstr "JSONP callback funktionen er ugyldig."
|
1309 |
+
|
1310 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-server.php:371
|
1311 |
+
msgid "Unsupported request method"
|
1312 |
+
msgstr "Ikke understøttet anmodning metode"
|
1313 |
+
|
1314 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-server.php:390
|
1315 |
+
msgid "The handler for the route is invalid"
|
1316 |
+
msgstr "Handler for ruten er ugyldig"
|
1317 |
+
|
1318 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-server.php:450
|
1319 |
+
msgid "No route was found matching the URL and request method"
|
1320 |
+
msgstr "Ingen rute blev fundet som matcher URL'en og anmodnings metoden"
|
1321 |
+
|
1322 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-server.php:502
|
1323 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-users.php:252
|
1324 |
+
#, php-format
|
1325 |
+
msgid "Missing parameter %s"
|
1326 |
+
msgstr "Manglende paramter %s"
|
1327 |
+
|
1328 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-taxonomies.php:106
|
1329 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-taxonomies.php:212
|
1330 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-taxonomies.php:288
|
1331 |
+
msgid "Invalid taxonomy ID."
|
1332 |
+
msgstr "Ugyldig taksonomi ID."
|
1333 |
+
|
1334 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-taxonomies.php:138
|
1335 |
+
msgid "Cannot view taxonomy"
|
1336 |
+
msgstr "Kan ikke vise taksonomi"
|
1337 |
+
|
1338 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-taxonomies.php:294
|
1339 |
+
msgid "Invalid term ID."
|
1340 |
+
msgstr "Ugyldig begreb ID."
|
1341 |
+
|
1342 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-users.php:56
|
1343 |
+
msgid "Sorry, you are not allowed to list users."
|
1344 |
+
msgstr "Beklager, du har ikke tilladelse til at vise brugere."
|
1345 |
+
|
1346 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-users.php:97
|
1347 |
+
msgid "You are not currently logged in."
|
1348 |
+
msgstr "Du er ikke logget ind."
|
1349 |
+
|
1350 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-users.php:130
|
1351 |
+
msgid "Sorry, you are not allowed to view this user."
|
1352 |
+
msgstr "Beklager, du har ikke tilladelse til at se denne bruger."
|
1353 |
+
|
1354 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-users.php:136
|
1355 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-users.php:234
|
1356 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-users.php:433
|
1357 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-users.php:444
|
1358 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-users.php:452
|
1359 |
+
msgid "Invalid user ID."
|
1360 |
+
msgstr "Ugyldig bruger ID."
|
1361 |
+
|
1362 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-users.php:238
|
1363 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-users.php:355
|
1364 |
+
msgid "Sorry, you are not allowed to edit this user."
|
1365 |
+
msgstr "Beklager, du har ikke tilladelse til at redigere denne bruger."
|
1366 |
+
|
1367 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-users.php:245
|
1368 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-users.php:383
|
1369 |
+
msgid "Sorry, you are not allowed to create users."
|
1370 |
+
msgstr "Beklager, du har ikke tilladelse til at oprette brugere."
|
1371 |
+
|
1372 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-users.php:294
|
1373 |
+
msgid "Invalid user URL."
|
1374 |
+
msgstr "Ugyldig bruger URL."
|
1375 |
+
|
1376 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-users.php:350
|
1377 |
+
msgid "User ID must be supplied."
|
1378 |
+
msgstr "Bruger ID skal angives."
|
1379 |
+
|
1380 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-users.php:360
|
1381 |
+
msgid "User ID is invalid."
|
1382 |
+
msgstr "Bruger ID er ugyldigt."
|
1383 |
+
|
1384 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-users.php:387
|
1385 |
+
msgid "Cannot create existing user."
|
1386 |
+
msgstr "Kan ikke oprette eksisterende bruger."
|
1387 |
+
|
1388 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-users.php:438
|
1389 |
+
msgid "Sorry, you are not allowed to delete this user."
|
1390 |
+
msgstr "Beklager, du har ikke tilladelse til at slette denne bruger."
|
1391 |
+
|
1392 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-users.php:461
|
1393 |
+
msgid "The user cannot be deleted."
|
1394 |
+
msgstr "Brugeren kan ikke slettes."
|
1395 |
+
|
1396 |
+
#: ../vendor/wp-api/wp-api/lib/class-wp-json-users.php:463
|
1397 |
+
msgid "Deleted user"
|
1398 |
+
msgstr "Bruger slettet"
|
1399 |
+
|
1400 |
+
#: ../vendor/wp-api/wp-api/plugin.php:375
|
1401 |
+
msgid "Cookie nonce is invalid"
|
1402 |
+
msgstr "Cookie nonce er ugyldig"
|
1403 |
+
|
1404 |
+
#: ../vendor/wp-api/wp-api/plugin.php:686
|
1405 |
+
#, php-format
|
1406 |
+
msgid "%1$s (since %2$s; use %3$s instead)"
|
1407 |
+
msgstr "%1$s (siden %2$s; use %3$s i stedet for)"
|
1408 |
+
|
1409 |
+
#: ../vendor/wp-api/wp-api/plugin.php:689 ../vendor/wp-api/wp-api/plugin.php:707
|
1410 |
+
#, php-format
|
1411 |
+
msgid "%1$s (since %2$s; no alternative available)"
|
1412 |
+
msgstr "%1$s (siden %2$s; intet alternativ til rådighed)"
|
1413 |
+
|
1414 |
+
#: ../vendor/wp-api/wp-api/plugin.php:704
|
1415 |
+
#, php-format
|
1416 |
+
msgid "%1$s (since %2$s; %3$s)"
|
1417 |
+
msgstr "%1$s (siden %2$s; %3$s)"
|
1418 |
+
|
1419 |
+
#: ../vendor/wp-api/wp-api/tests/helper.php:61
|
1420 |
+
msgid "No report data available"
|
1421 |
+
msgstr "Ingen report data tilgængelig"
|
1422 |
+
|
1423 |
+
#: ../vendor/wp-api/wp-api/tests/helper.php:65
|
1424 |
+
msgid "The CodeCoverage classes are missing"
|
1425 |
+
msgstr "CodeCoverage klassen mangler"
|
languages/custom-contact-forms.mo
CHANGED
Binary file
|
languages/custom-contact-forms.po
CHANGED
@@ -5,8 +5,8 @@ msgstr ""
|
|
5 |
"Project-Id-Version: Custom Contact Forms\n"
|
6 |
"Report-Msgid-Bugs-To: https://github.com/tlovett1/custom-contact-forms/"
|
7 |
"issues\n"
|
8 |
-
"POT-Creation-Date: 2015-
|
9 |
-
"PO-Revision-Date: 2015-
|
10 |
"Last-Translator: Taylor Lovett <tlovett88@gmail.com>\n"
|
11 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
12 |
"Language: en\n"
|
@@ -60,34 +60,34 @@ msgstr ""
|
|
60 |
msgid "The post type \"%s\" is not valid"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: ../classes/class-ccf-api.php:
|
64 |
-
#: ../classes/class-ccf-api.php:
|
65 |
-
#: ../classes/class-ccf-api.php:
|
66 |
msgid "Invalid form ID."
|
67 |
msgstr ""
|
68 |
|
69 |
-
#: ../classes/class-ccf-api.php:
|
70 |
-
#: ../classes/class-ccf-api.php:
|
71 |
msgid "Sorry, you cannot view forms."
|
72 |
msgstr ""
|
73 |
|
74 |
-
#: ../classes/class-ccf-api.php:
|
75 |
msgid "Invalid form."
|
76 |
msgstr ""
|
77 |
|
78 |
-
#: ../classes/class-ccf-api.php:
|
79 |
msgid "Sorry, you cannot view this form."
|
80 |
msgstr ""
|
81 |
|
82 |
-
#: ../classes/class-ccf-api.php:
|
83 |
msgid "The form cannot be deleted."
|
84 |
msgstr ""
|
85 |
|
86 |
-
#: ../classes/class-ccf-api.php:
|
87 |
msgid "Permanently deleted form"
|
88 |
msgstr ""
|
89 |
|
90 |
-
#: ../classes/class-ccf-api.php:
|
91 |
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:391
|
92 |
msgid "Deleted post"
|
93 |
msgstr ""
|
@@ -131,110 +131,110 @@ msgid "Max file size is %d MB. "
|
|
131 |
msgstr ""
|
132 |
|
133 |
#: ../classes/class-ccf-field-renderer.php:556
|
134 |
-
#: ../classes/class-ccf-form-manager.php:
|
135 |
-
#: ../classes/class-ccf-form-manager.php:
|
136 |
msgid "Street Address"
|
137 |
msgstr ""
|
138 |
|
139 |
#: ../classes/class-ccf-field-renderer.php:560
|
140 |
-
#: ../classes/class-ccf-form-manager.php:
|
141 |
-
#: ../classes/class-ccf-form-manager.php:
|
142 |
msgid "Address Line 2"
|
143 |
msgstr ""
|
144 |
|
145 |
#: ../classes/class-ccf-field-renderer.php:567
|
146 |
-
#: ../classes/class-ccf-form-manager.php:
|
147 |
-
#: ../classes/class-ccf-form-manager.php:
|
148 |
msgid "City"
|
149 |
msgstr ""
|
150 |
|
151 |
#: ../classes/class-ccf-field-renderer.php:580
|
152 |
-
#: ../classes/class-ccf-form-manager.php:
|
153 |
msgid "State"
|
154 |
msgstr ""
|
155 |
|
156 |
#: ../classes/class-ccf-field-renderer.php:588
|
157 |
-
#: ../classes/class-ccf-form-manager.php:
|
158 |
msgid "ZIP Code"
|
159 |
msgstr ""
|
160 |
|
161 |
#: ../classes/class-ccf-field-renderer.php:598
|
162 |
-
#: ../classes/class-ccf-form-manager.php:
|
163 |
msgid "State / Region / Province"
|
164 |
msgstr ""
|
165 |
|
166 |
#: ../classes/class-ccf-field-renderer.php:606
|
167 |
-
#: ../classes/class-ccf-form-manager.php:
|
168 |
msgid "ZIP / Postal Code"
|
169 |
msgstr ""
|
170 |
|
171 |
#: ../classes/class-ccf-field-renderer.php:618
|
172 |
-
#: ../classes/class-ccf-form-manager.php:
|
173 |
msgid "Country"
|
174 |
msgstr ""
|
175 |
|
176 |
#: ../classes/class-ccf-field-renderer.php:793
|
177 |
-
#: ../classes/class-ccf-form-manager.php:
|
178 |
msgid "email@example.com"
|
179 |
msgstr ""
|
180 |
|
181 |
#: ../classes/class-ccf-field-renderer.php:803
|
182 |
-
#: ../classes/class-ccf-form-manager.php:
|
183 |
-
#: ../classes/class-ccf-form-manager.php:
|
184 |
msgid "Email"
|
185 |
msgstr ""
|
186 |
|
187 |
#: ../classes/class-ccf-field-renderer.php:810
|
188 |
-
#: ../classes/class-ccf-form-manager.php:
|
189 |
msgid "Confirm Email"
|
190 |
msgstr ""
|
191 |
|
192 |
#: ../classes/class-ccf-field-renderer.php:876
|
193 |
-
#: ../classes/class-ccf-form-manager.php:
|
194 |
msgid "First"
|
195 |
msgstr ""
|
196 |
|
197 |
#: ../classes/class-ccf-field-renderer.php:883
|
198 |
-
#: ../classes/class-ccf-form-manager.php:
|
199 |
msgid "Last"
|
200 |
msgstr ""
|
201 |
|
202 |
#: ../classes/class-ccf-field-renderer.php:955
|
203 |
#: ../classes/class-ccf-field-renderer.php:976
|
204 |
-
#: ../classes/class-ccf-form-manager.php:
|
205 |
-
#: ../classes/class-ccf-form-manager.php:
|
206 |
msgid "HH"
|
207 |
msgstr ""
|
208 |
|
209 |
#: ../classes/class-ccf-field-renderer.php:959
|
210 |
#: ../classes/class-ccf-field-renderer.php:980
|
211 |
-
#: ../classes/class-ccf-form-manager.php:
|
212 |
-
#: ../classes/class-ccf-form-manager.php:
|
213 |
msgid "MM"
|
214 |
msgstr ""
|
215 |
|
216 |
#: ../classes/class-ccf-field-renderer.php:963
|
217 |
#: ../classes/class-ccf-field-renderer.php:984
|
218 |
-
#: ../classes/class-ccf-form-manager.php:
|
219 |
-
#: ../classes/class-ccf-form-manager.php:
|
220 |
msgid "AM"
|
221 |
msgstr ""
|
222 |
|
223 |
#: ../classes/class-ccf-field-renderer.php:964
|
224 |
#: ../classes/class-ccf-field-renderer.php:985
|
225 |
-
#: ../classes/class-ccf-form-manager.php:
|
226 |
-
#: ../classes/class-ccf-form-manager.php:
|
227 |
msgid "PM"
|
228 |
msgstr ""
|
229 |
|
230 |
#: ../classes/class-ccf-field-renderer.php:971
|
231 |
#: ../classes/class-ccf-form-cpt.php:510
|
232 |
-
#: ../classes/class-ccf-form-manager.php:
|
233 |
-
#: ../classes/class-ccf-form-manager.php:
|
234 |
-
#: ../classes/class-ccf-form-manager.php:
|
235 |
-
#: ../classes/class-ccf-form-manager.php:
|
236 |
-
#: ../classes/class-ccf-form-manager.php:
|
237 |
-
#: ../classes/class-ccf-form-manager.php:
|
238 |
msgid "Date"
|
239 |
msgstr ""
|
240 |
|
@@ -244,8 +244,8 @@ msgstr ""
|
|
244 |
|
245 |
#: ../classes/class-ccf-form-cpt.php:326 ../classes/class-ccf-form-cpt.php:344
|
246 |
#: ../classes/class-ccf-form-cpt.php:508
|
247 |
-
#: ../classes/class-ccf-form-manager.php:
|
248 |
-
#: ../classes/class-ccf-form-manager.php:
|
249 |
msgid "Submissions"
|
250 |
msgstr ""
|
251 |
|
@@ -286,7 +286,7 @@ msgid "Export"
|
|
286 |
msgstr ""
|
287 |
|
288 |
#: ../classes/class-ccf-form-cpt.php:446
|
289 |
-
#: ../classes/class-ccf-form-manager.php:
|
290 |
msgid "(No title)"
|
291 |
msgstr ""
|
292 |
|
@@ -299,14 +299,14 @@ msgid "Form Title"
|
|
299 |
msgstr ""
|
300 |
|
301 |
#: ../classes/class-ccf-form-cpt.php:507
|
302 |
-
#: ../classes/class-ccf-form-manager.php:
|
303 |
-
#: ../classes/class-ccf-form-manager.php:
|
304 |
msgid "Author"
|
305 |
msgstr ""
|
306 |
|
307 |
#: ../classes/class-ccf-form-cpt.php:509
|
308 |
-
#: ../classes/class-ccf-form-manager.php:
|
309 |
-
#: ../classes/class-ccf-form-manager.php:
|
310 |
msgid "Number of Fields"
|
311 |
msgstr ""
|
312 |
|
@@ -495,17 +495,17 @@ msgstr ""
|
|
495 |
msgid "Form submitter IP"
|
496 |
msgstr ""
|
497 |
|
498 |
-
#: ../classes/class-ccf-form-handler.php:
|
499 |
#, php-format
|
500 |
msgid "%s: Form Submission"
|
501 |
msgstr ""
|
502 |
|
503 |
-
#: ../classes/class-ccf-form-handler.php:
|
504 |
#, php-format
|
505 |
msgid " to \"%s\""
|
506 |
msgstr ""
|
507 |
|
508 |
-
#: ../classes/class-ccf-form-handler.php:
|
509 |
#: ../classes/class-ccf-form-renderer.php:134
|
510 |
msgid "Thank you for your submission."
|
511 |
msgstr ""
|
@@ -548,7 +548,7 @@ msgid "← Drag fields from the left here."
|
|
548 |
msgstr ""
|
549 |
|
550 |
#: ../classes/class-ccf-form-manager.php:133
|
551 |
-
#: ../classes/class-ccf-form-manager.php:
|
552 |
msgid "Insert into post"
|
553 |
msgstr ""
|
554 |
|
@@ -598,37 +598,37 @@ msgstr ""
|
|
598 |
|
599 |
#: ../classes/class-ccf-form-manager.php:177
|
600 |
#: ../classes/class-ccf-form-manager.php:196
|
601 |
-
#: ../classes/class-ccf-form-manager.php:
|
602 |
-
#: ../classes/class-ccf-form-manager.php:
|
603 |
-
#: ../classes/class-ccf-form-manager.php:
|
604 |
-
#: ../classes/class-ccf-form-manager.php:
|
605 |
-
#: ../classes/class-ccf-form-manager.php:
|
606 |
-
#: ../classes/class-ccf-form-manager.php:
|
607 |
-
#: ../classes/class-ccf-form-manager.php:
|
608 |
-
#: ../classes/class-ccf-form-manager.php:
|
609 |
-
#: ../classes/class-ccf-form-manager.php:
|
610 |
-
#: ../classes/class-ccf-form-manager.php:
|
611 |
-
#: ../classes/class-ccf-form-manager.php:
|
612 |
-
#: ../classes/class-ccf-form-manager.php:
|
613 |
-
#: ../classes/class-ccf-form-manager.php:
|
614 |
msgid "No"
|
615 |
msgstr ""
|
616 |
|
617 |
#: ../classes/class-ccf-form-manager.php:178
|
618 |
#: ../classes/class-ccf-form-manager.php:195
|
619 |
-
#: ../classes/class-ccf-form-manager.php:
|
620 |
-
#: ../classes/class-ccf-form-manager.php:
|
621 |
-
#: ../classes/class-ccf-form-manager.php:
|
622 |
-
#: ../classes/class-ccf-form-manager.php:
|
623 |
-
#: ../classes/class-ccf-form-manager.php:
|
624 |
-
#: ../classes/class-ccf-form-manager.php:
|
625 |
-
#: ../classes/class-ccf-form-manager.php:
|
626 |
-
#: ../classes/class-ccf-form-manager.php:
|
627 |
-
#: ../classes/class-ccf-form-manager.php:
|
628 |
-
#: ../classes/class-ccf-form-manager.php:
|
629 |
-
#: ../classes/class-ccf-form-manager.php:
|
630 |
-
#: ../classes/class-ccf-form-manager.php:
|
631 |
-
#: ../classes/class-ccf-form-manager.php:
|
632 |
msgid "Yes"
|
633 |
msgstr ""
|
634 |
|
@@ -662,6 +662,7 @@ msgstr ""
|
|
662 |
|
663 |
#: ../classes/class-ccf-form-manager.php:210
|
664 |
#: ../classes/class-ccf-form-manager.php:231
|
|
|
665 |
msgid "Form Field"
|
666 |
msgstr ""
|
667 |
|
@@ -701,140 +702,166 @@ msgstr ""
|
|
701 |
msgid "Pull \"From\" Name Dynamically from Field:"
|
702 |
msgstr ""
|
703 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
704 |
#: ../classes/class-ccf-form-manager.php:257
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
705 |
msgid "items"
|
706 |
msgstr ""
|
707 |
|
708 |
-
#: ../classes/class-ccf-form-manager.php:
|
709 |
-
#: ../classes/class-ccf-form-manager.php:
|
710 |
msgid "ID"
|
711 |
msgstr ""
|
712 |
|
713 |
-
#: ../classes/class-ccf-form-manager.php:
|
714 |
-
#: ../classes/class-ccf-form-manager.php:
|
715 |
msgid "Title"
|
716 |
msgstr ""
|
717 |
|
718 |
-
#: ../classes/class-ccf-form-manager.php:
|
719 |
msgid "<span>←</span> Click on a field to edit it."
|
720 |
msgstr ""
|
721 |
|
722 |
-
#: ../classes/class-ccf-form-manager.php:
|
723 |
-
#: ../classes/class-ccf-form-manager.php:
|
724 |
-
#: ../classes/class-ccf-form-manager.php:
|
725 |
-
#: ../classes/class-ccf-form-manager.php:
|
726 |
msgid "Internal Unique Slug"
|
727 |
msgstr ""
|
728 |
|
729 |
-
#: ../classes/class-ccf-form-manager.php:
|
730 |
-
#: ../classes/class-ccf-form-manager.php:
|
731 |
-
#: ../classes/class-ccf-form-manager.php:
|
732 |
-
#: ../classes/class-ccf-form-manager.php:
|
733 |
-
#: ../classes/class-ccf-form-manager.php:
|
734 |
-
#: ../classes/class-ccf-form-manager.php:
|
735 |
-
#: ../classes/class-ccf-form-manager.php:
|
736 |
-
#: ../classes/class-ccf-form-manager.php:
|
737 |
-
#: ../classes/class-ccf-form-manager.php:
|
738 |
-
#: ../classes/class-ccf-form-manager.php:
|
739 |
-
#: ../classes/class-ccf-form-manager.php:
|
740 |
-
#: ../classes/class-ccf-form-manager.php:
|
741 |
-
#: ../classes/class-ccf-form-manager.php:
|
742 |
msgid "Label:"
|
743 |
msgstr ""
|
744 |
|
745 |
-
#: ../classes/class-ccf-form-manager.php:
|
746 |
-
#: ../classes/class-ccf-form-manager.php:
|
747 |
-
#: ../classes/class-ccf-form-manager.php:
|
748 |
-
#: ../classes/class-ccf-form-manager.php:
|
749 |
-
#: ../classes/class-ccf-form-manager.php:
|
750 |
-
#: ../classes/class-ccf-form-manager.php:
|
751 |
-
#: ../classes/class-ccf-form-manager.php:
|
752 |
-
#: ../classes/class-ccf-form-manager.php:
|
753 |
-
#: ../classes/class-ccf-form-manager.php:
|
754 |
-
#: ../classes/class-ccf-form-manager.php:
|
755 |
-
#: ../classes/class-ccf-form-manager.php:
|
756 |
-
#: ../classes/class-ccf-form-manager.php:
|
757 |
-
#: ../classes/class-ccf-form-manager.php:
|
758 |
msgid "Description:"
|
759 |
msgstr ""
|
760 |
|
761 |
-
#: ../classes/class-ccf-form-manager.php:
|
762 |
-
#: ../classes/class-ccf-form-manager.php:
|
763 |
-
#: ../classes/class-ccf-form-manager.php:
|
764 |
-
#: ../classes/class-ccf-form-manager.php:
|
765 |
-
#: ../classes/class-ccf-form-manager.php:
|
766 |
-
#: ../classes/class-ccf-form-manager.php:
|
767 |
-
#: ../classes/class-ccf-form-manager.php:
|
768 |
msgid "Initial Value:"
|
769 |
msgstr ""
|
770 |
|
771 |
-
#: ../classes/class-ccf-form-manager.php:
|
772 |
-
#: ../classes/class-ccf-form-manager.php:
|
773 |
-
#: ../classes/class-ccf-form-manager.php:
|
774 |
-
#: ../classes/class-ccf-form-manager.php:
|
775 |
-
#: ../classes/class-ccf-form-manager.php:
|
776 |
-
#: ../classes/class-ccf-form-manager.php:
|
777 |
-
#: ../classes/class-ccf-form-manager.php:
|
778 |
-
#: ../classes/class-ccf-form-manager.php:
|
779 |
-
#: ../classes/class-ccf-form-manager.php:
|
780 |
-
#: ../classes/class-ccf-form-manager.php:
|
781 |
-
#: ../classes/class-ccf-form-manager.php:
|
782 |
-
#: ../classes/class-ccf-form-manager.php:
|
783 |
msgid "Required:"
|
784 |
msgstr ""
|
785 |
|
786 |
-
#: ../classes/class-ccf-form-manager.php:
|
787 |
-
#: ../classes/class-ccf-form-manager.php:
|
788 |
-
#: ../classes/class-ccf-form-manager.php:
|
789 |
-
#: ../classes/class-ccf-form-manager.php:
|
790 |
-
#: ../classes/class-ccf-form-manager.php:
|
791 |
-
#: ../classes/class-ccf-form-manager.php:
|
792 |
-
#: ../classes/class-ccf-form-manager.php:
|
793 |
-
#: ../classes/class-ccf-form-manager.php:
|
794 |
-
#: ../classes/class-ccf-form-manager.php:
|
795 |
-
#: ../classes/class-ccf-form-manager.php:
|
796 |
-
#: ../classes/class-ccf-form-manager.php:
|
797 |
-
#: ../classes/class-ccf-form-manager.php:
|
798 |
-
#: ../classes/class-ccf-form-manager.php:
|
799 |
-
#: ../classes/class-ccf-form-manager.php:
|
800 |
-
#: ../classes/class-ccf-form-manager.php:
|
801 |
-
#: ../classes/class-ccf-form-manager.php:
|
802 |
msgid "Advanced"
|
803 |
msgstr ""
|
804 |
|
805 |
-
#: ../classes/class-ccf-form-manager.php:
|
806 |
-
#: ../classes/class-ccf-form-manager.php:
|
807 |
-
#: ../classes/class-ccf-form-manager.php:
|
808 |
-
#: ../classes/class-ccf-form-manager.php:
|
809 |
-
#: ../classes/class-ccf-form-manager.php:
|
810 |
-
#: ../classes/class-ccf-form-manager.php:
|
811 |
-
#: ../classes/class-ccf-form-manager.php:
|
812 |
-
#: ../classes/class-ccf-form-manager.php:
|
813 |
-
#: ../classes/class-ccf-form-manager.php:
|
814 |
-
#: ../classes/class-ccf-form-manager.php:
|
815 |
-
#: ../classes/class-ccf-form-manager.php:
|
816 |
-
#: ../classes/class-ccf-form-manager.php:
|
817 |
-
#: ../classes/class-ccf-form-manager.php:
|
818 |
-
#: ../classes/class-ccf-form-manager.php:
|
819 |
-
#: ../classes/class-ccf-form-manager.php:
|
820 |
-
#: ../classes/class-ccf-form-manager.php:
|
821 |
msgid "Class Name:"
|
822 |
msgstr ""
|
823 |
|
824 |
-
#: ../classes/class-ccf-form-manager.php:
|
825 |
-
#: ../classes/class-ccf-form-manager.php:
|
826 |
-
#: ../classes/class-ccf-form-manager.php:
|
827 |
-
#: ../classes/class-ccf-form-manager.php:
|
828 |
-
#: ../classes/class-ccf-form-manager.php:
|
829 |
-
#: ../classes/class-ccf-form-manager.php:
|
830 |
msgid "Placeholder Text:"
|
831 |
msgstr ""
|
832 |
|
833 |
-
#: ../classes/class-ccf-form-manager.php:
|
834 |
msgid "Allowed File Extensions (comma separate):"
|
835 |
msgstr ""
|
836 |
|
837 |
-
#: ../classes/class-ccf-form-manager.php:
|
838 |
msgid ""
|
839 |
"If left blank, will default to all extensions registered by WordPress. If "
|
840 |
"you use a file extension or mime type not <a href=\"http://codex.wordpress."
|
@@ -842,261 +869,265 @@ msgid ""
|
|
842 |
"a>, you will need to filter and manually whitelist the new extension."
|
843 |
msgstr ""
|
844 |
|
845 |
-
#: ../classes/class-ccf-form-manager.php:
|
846 |
msgid "Max File Size (in MB):"
|
847 |
msgstr ""
|
848 |
|
849 |
-
#: ../classes/class-ccf-form-manager.php:
|
850 |
#, php-format
|
851 |
msgid ""
|
852 |
"If left blank, will default to %d MB. Maximum allowed by server is %d MB."
|
853 |
msgstr ""
|
854 |
|
855 |
-
#: ../classes/class-ccf-form-manager.php:
|
856 |
msgid ""
|
857 |
"reCAPTCHA is a simple captcha service provided by Google. <a target=\"_blank"
|
858 |
"\" href=\"https://www.google.com/recaptcha/intro/index.html\">Learn more</a>"
|
859 |
msgstr ""
|
860 |
|
861 |
-
#: ../classes/class-ccf-form-manager.php:
|
862 |
msgid "Site Key:"
|
863 |
msgstr ""
|
864 |
|
865 |
-
#: ../classes/class-ccf-form-manager.php:
|
866 |
-
#: ../classes/class-ccf-form-manager.php:
|
867 |
msgid "Don't have one?"
|
868 |
msgstr ""
|
869 |
|
870 |
-
#: ../classes/class-ccf-form-manager.php:
|
871 |
msgid "Secret Key:"
|
872 |
msgstr ""
|
873 |
|
874 |
-
#: ../classes/class-ccf-form-manager.php:
|
875 |
-
#: ../classes/class-ccf-form-manager.php:
|
876 |
-
#: ../classes/class-ccf-form-manager.php:
|
877 |
-
#: ../classes/class-ccf-form-manager.php:
|
878 |
-
#: ../classes/class-ccf-form-manager.php:
|
879 |
-
#: ../classes/class-ccf-form-manager.php:
|
880 |
-
#: ../classes/class-ccf-form-manager.php:
|
881 |
-
#: ../classes/class-ccf-form-manager.php:
|
882 |
-
#: ../classes/class-ccf-form-manager.php:
|
883 |
-
#: ../classes/class-ccf-form-manager.php:
|
884 |
-
#: ../classes/class-ccf-form-manager.php:
|
885 |
-
#: ../classes/class-ccf-form-manager.php:
|
886 |
msgid "Basic"
|
887 |
msgstr ""
|
888 |
|
889 |
-
#: ../classes/class-ccf-form-manager.php:
|
890 |
msgid "HTML Content:"
|
891 |
msgstr ""
|
892 |
|
893 |
-
#: ../classes/class-ccf-form-manager.php:
|
894 |
msgid "Heading:"
|
895 |
msgstr ""
|
896 |
|
897 |
-
#: ../classes/class-ccf-form-manager.php:
|
898 |
msgid "Sub Heading:"
|
899 |
msgstr ""
|
900 |
|
901 |
-
#: ../classes/class-ccf-form-manager.php:
|
902 |
-
#: ../classes/class-ccf-form-manager.php:
|
903 |
-
#: ../classes/class-ccf-form-manager.php:
|
904 |
-
#: ../classes/class-ccf-form-manager.php:
|
905 |
-
#: ../classes/class-ccf-form-manager.php:
|
906 |
-
#: ../classes/class-ccf-form-manager.php:
|
907 |
-
#: ../classes/class-ccf-form-manager.php:
|
908 |
-
#: ../classes/class-ccf-form-manager.php:
|
909 |
-
#: ../classes/class-ccf-form-manager.php:
|
910 |
msgid "Internal Unique Slug (a-z, 0-9, -, _):"
|
911 |
msgstr ""
|
912 |
|
913 |
-
#: ../classes/class-ccf-form-manager.php:
|
914 |
msgid "Enable Date Select"
|
915 |
msgstr ""
|
916 |
|
917 |
-
#: ../classes/class-ccf-form-manager.php:
|
918 |
msgid "Enable Time Select"
|
919 |
msgstr ""
|
920 |
|
921 |
-
#: ../classes/class-ccf-form-manager.php:
|
922 |
msgid "Format:"
|
923 |
msgstr ""
|
924 |
|
925 |
-
#: ../classes/class-ccf-form-manager.php:
|
926 |
-
#: ../classes/class-ccf-form-manager.php:
|
927 |
msgid "International"
|
928 |
msgstr ""
|
929 |
|
930 |
-
#: ../classes/class-ccf-form-manager.php:
|
931 |
msgid "Type:"
|
932 |
msgstr ""
|
933 |
|
934 |
-
#: ../classes/class-ccf-form-manager.php:
|
935 |
msgid "United States"
|
936 |
msgstr ""
|
937 |
|
938 |
-
#: ../classes/class-ccf-form-manager.php:
|
939 |
msgid "Require Confirmation:"
|
940 |
msgstr ""
|
941 |
|
942 |
-
#: ../classes/class-ccf-form-manager.php:
|
943 |
msgid "Label"
|
944 |
msgstr ""
|
945 |
|
946 |
-
#: ../classes/class-ccf-form-manager.php:
|
947 |
msgid "Value"
|
948 |
msgstr ""
|
949 |
|
950 |
-
#: ../classes/class-ccf-form-manager.php:
|
951 |
-
#: ../classes/class-ccf-form-manager.php:
|
952 |
-
#: ../classes/class-ccf-form-manager.php:
|
953 |
msgid "Manage field choices:"
|
954 |
msgstr ""
|
955 |
|
956 |
-
#: ../classes/class-ccf-form-manager.php:
|
957 |
-
#: ../classes/class-ccf-form-manager.php:
|
958 |
-
#: ../classes/class-ccf-form-manager.php:
|
959 |
msgid ""
|
960 |
"Note: If an option does not have a \"value\", it will not be considered a "
|
961 |
"valid selection if the field is required. The \"value\" is what's read, "
|
962 |
"stored, and displayed in the submission."
|
963 |
msgstr ""
|
964 |
|
965 |
-
#: ../classes/class-ccf-form-manager.php:
|
966 |
msgid "You currently have no forms. Add some!"
|
967 |
msgstr ""
|
968 |
|
969 |
-
#: ../classes/class-ccf-form-manager.php:
|
970 |
msgid "Allowed file extensions are {{ extensions }}. "
|
971 |
msgstr ""
|
972 |
|
973 |
-
#: ../classes/class-ccf-form-manager.php:
|
974 |
msgid "Max file size is {{ file_size }} MB. "
|
975 |
msgstr ""
|
976 |
|
977 |
-
#: ../classes/class-ccf-form-manager.php:
|
978 |
-
#: ../classes/class-ccf-form-manager.php:
|
979 |
-
#: ../classes/class-ccf-form-manager.php:
|
980 |
msgid "An example choice"
|
981 |
msgstr ""
|
982 |
|
983 |
-
#: ../classes/class-ccf-form-manager.php:
|
984 |
msgid "Arbitrary block of HTML."
|
985 |
msgstr ""
|
986 |
|
987 |
-
#: ../classes/class-ccf-form-manager.php:
|
988 |
msgid "Section Heading"
|
989 |
msgstr ""
|
990 |
|
991 |
-
#: ../classes/class-ccf-form-manager.php:
|
992 |
msgid "This is the sub-heading text."
|
993 |
msgstr ""
|
994 |
|
995 |
-
#: ../classes/class-ccf-form-manager.php:
|
996 |
msgid "Edit"
|
997 |
msgstr ""
|
998 |
|
999 |
-
#: ../classes/class-ccf-form-manager.php:
|
1000 |
msgid "Trash"
|
1001 |
msgstr ""
|
1002 |
|
1003 |
-
#: ../classes/class-ccf-form-manager.php:
|
1004 |
msgid "There is a problem with this form. Is it trashed or deleted?"
|
1005 |
msgstr ""
|
1006 |
|
1007 |
-
#: ../classes/class-ccf-form-manager.php:
|
1008 |
msgid "IP Address"
|
1009 |
msgstr ""
|
1010 |
|
1011 |
-
#: ../classes/class-ccf-form-manager.php:
|
1012 |
msgid "There are no submissions."
|
1013 |
msgstr ""
|
1014 |
|
1015 |
-
#: ../classes/class-ccf-form-manager.php:
|
1016 |
msgid "Add Form"
|
1017 |
msgstr ""
|
1018 |
|
1019 |
-
#: ../classes/class-ccf-form-manager.php:
|
1020 |
msgid "Single Line Text"
|
1021 |
msgstr ""
|
1022 |
|
1023 |
-
#: ../classes/class-ccf-form-manager.php:
|
1024 |
msgid "Dropdown"
|
1025 |
msgstr ""
|
1026 |
|
1027 |
-
#: ../classes/class-ccf-form-manager.php:
|
1028 |
msgid "Checkboxes"
|
1029 |
msgstr ""
|
1030 |
|
1031 |
-
#: ../classes/class-ccf-form-manager.php:
|
1032 |
msgid "Radio Buttons"
|
1033 |
msgstr ""
|
1034 |
|
1035 |
-
#: ../classes/class-ccf-form-manager.php:
|
1036 |
msgid "Paragraph Text"
|
1037 |
msgstr ""
|
1038 |
|
1039 |
-
#: ../classes/class-ccf-form-manager.php:
|
1040 |
msgid "Hidden"
|
1041 |
msgstr ""
|
1042 |
|
1043 |
-
#: ../classes/class-ccf-form-manager.php:
|
1044 |
msgid "File Upload"
|
1045 |
msgstr ""
|
1046 |
|
1047 |
-
#: ../classes/class-ccf-form-manager.php:
|
1048 |
msgid "HTML"
|
1049 |
msgstr ""
|
1050 |
|
1051 |
-
#: ../classes/class-ccf-form-manager.php:
|
1052 |
msgid "Section Header"
|
1053 |
msgstr ""
|
1054 |
|
1055 |
-
#: ../classes/class-ccf-form-manager.php:
|
1056 |
msgid "Name"
|
1057 |
msgstr ""
|
1058 |
|
1059 |
-
#: ../classes/class-ccf-form-manager.php:
|
1060 |
msgid "Date/Time"
|
1061 |
msgstr ""
|
1062 |
|
1063 |
-
#: ../classes/class-ccf-form-manager.php:
|
1064 |
msgid "Website"
|
1065 |
msgstr ""
|
1066 |
|
1067 |
-
#: ../classes/class-ccf-form-manager.php:
|
1068 |
msgid "Address"
|
1069 |
msgstr ""
|
1070 |
|
1071 |
-
#: ../classes/class-ccf-form-manager.php:
|
1072 |
msgid "Phone"
|
1073 |
msgstr ""
|
1074 |
|
1075 |
-
#: ../classes/class-ccf-form-manager.php:
|
1076 |
msgid "reCAPTCHA"
|
1077 |
msgstr ""
|
1078 |
|
1079 |
-
#: ../classes/class-ccf-form-manager.php:
|
1080 |
msgid "You have no email fields"
|
1081 |
msgstr ""
|
1082 |
|
1083 |
-
#: ../classes/class-ccf-form-manager.php:
|
1084 |
msgid "You have no name fields"
|
1085 |
msgstr ""
|
1086 |
|
1087 |
-
#: ../classes/class-ccf-form-manager.php:
|
|
|
|
|
|
|
|
|
1088 |
msgid "Invalid date"
|
1089 |
msgstr ""
|
1090 |
|
1091 |
-
#: ../classes/class-ccf-form-manager.php:
|
1092 |
msgid "Field Label"
|
1093 |
msgstr ""
|
1094 |
|
1095 |
-
#: ../classes/class-ccf-form-manager.php:
|
1096 |
msgid "Form Submission"
|
1097 |
msgstr ""
|
1098 |
|
1099 |
-
#: ../classes/class-ccf-form-manager.php:
|
1100 |
#: ../classes/class-ccf-form-renderer.php:120
|
1101 |
msgid "This form is paused right now. Check back later!"
|
1102 |
msgstr ""
|
5 |
"Project-Id-Version: Custom Contact Forms\n"
|
6 |
"Report-Msgid-Bugs-To: https://github.com/tlovett1/custom-contact-forms/"
|
7 |
"issues\n"
|
8 |
+
"POT-Creation-Date: 2015-09-30 00:03-0500\n"
|
9 |
+
"PO-Revision-Date: 2015-09-30 00:03-0500\n"
|
10 |
"Last-Translator: Taylor Lovett <tlovett88@gmail.com>\n"
|
11 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
12 |
"Language: en\n"
|
60 |
msgid "The post type \"%s\" is not valid"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: ../classes/class-ccf-api.php:452 ../classes/class-ccf-api.php:779
|
64 |
+
#: ../classes/class-ccf-api.php:804 ../classes/class-ccf-api.php:833
|
65 |
+
#: ../classes/class-ccf-api.php:962
|
66 |
msgid "Invalid form ID."
|
67 |
msgstr ""
|
68 |
|
69 |
+
#: ../classes/class-ccf-api.php:457 ../classes/class-ccf-api.php:764
|
70 |
+
#: ../classes/class-ccf-api.php:784
|
71 |
msgid "Sorry, you cannot view forms."
|
72 |
msgstr ""
|
73 |
|
74 |
+
#: ../classes/class-ccf-api.php:810 ../classes/class-ccf-api.php:839
|
75 |
msgid "Invalid form."
|
76 |
msgstr ""
|
77 |
|
78 |
+
#: ../classes/class-ccf-api.php:814
|
79 |
msgid "Sorry, you cannot view this form."
|
80 |
msgstr ""
|
81 |
|
82 |
+
#: ../classes/class-ccf-api.php:973
|
83 |
msgid "The form cannot be deleted."
|
84 |
msgstr ""
|
85 |
|
86 |
+
#: ../classes/class-ccf-api.php:977
|
87 |
msgid "Permanently deleted form"
|
88 |
msgstr ""
|
89 |
|
90 |
+
#: ../classes/class-ccf-api.php:980
|
91 |
#: ../vendor/wp-api/wp-api/lib/class-wp-json-posts.php:391
|
92 |
msgid "Deleted post"
|
93 |
msgstr ""
|
131 |
msgstr ""
|
132 |
|
133 |
#: ../classes/class-ccf-field-renderer.php:556
|
134 |
+
#: ../classes/class-ccf-form-manager.php:1178
|
135 |
+
#: ../classes/class-ccf-form-manager.php:1203
|
136 |
msgid "Street Address"
|
137 |
msgstr ""
|
138 |
|
139 |
#: ../classes/class-ccf-field-renderer.php:560
|
140 |
+
#: ../classes/class-ccf-form-manager.php:1182
|
141 |
+
#: ../classes/class-ccf-form-manager.php:1207
|
142 |
msgid "Address Line 2"
|
143 |
msgstr ""
|
144 |
|
145 |
#: ../classes/class-ccf-field-renderer.php:567
|
146 |
+
#: ../classes/class-ccf-form-manager.php:1186
|
147 |
+
#: ../classes/class-ccf-form-manager.php:1211
|
148 |
msgid "City"
|
149 |
msgstr ""
|
150 |
|
151 |
#: ../classes/class-ccf-field-renderer.php:580
|
152 |
+
#: ../classes/class-ccf-form-manager.php:1194
|
153 |
msgid "State"
|
154 |
msgstr ""
|
155 |
|
156 |
#: ../classes/class-ccf-field-renderer.php:588
|
157 |
+
#: ../classes/class-ccf-form-manager.php:1198
|
158 |
msgid "ZIP Code"
|
159 |
msgstr ""
|
160 |
|
161 |
#: ../classes/class-ccf-field-renderer.php:598
|
162 |
+
#: ../classes/class-ccf-form-manager.php:1215
|
163 |
msgid "State / Region / Province"
|
164 |
msgstr ""
|
165 |
|
166 |
#: ../classes/class-ccf-field-renderer.php:606
|
167 |
+
#: ../classes/class-ccf-form-manager.php:1219
|
168 |
msgid "ZIP / Postal Code"
|
169 |
msgstr ""
|
170 |
|
171 |
#: ../classes/class-ccf-field-renderer.php:618
|
172 |
+
#: ../classes/class-ccf-form-manager.php:1227
|
173 |
msgid "Country"
|
174 |
msgstr ""
|
175 |
|
176 |
#: ../classes/class-ccf-field-renderer.php:793
|
177 |
+
#: ../classes/class-ccf-form-manager.php:1238
|
178 |
msgid "email@example.com"
|
179 |
msgstr ""
|
180 |
|
181 |
#: ../classes/class-ccf-field-renderer.php:803
|
182 |
+
#: ../classes/class-ccf-form-manager.php:1242
|
183 |
+
#: ../classes/class-ccf-form-manager.php:1543
|
184 |
msgid "Email"
|
185 |
msgstr ""
|
186 |
|
187 |
#: ../classes/class-ccf-field-renderer.php:810
|
188 |
+
#: ../classes/class-ccf-form-manager.php:1246
|
189 |
msgid "Confirm Email"
|
190 |
msgstr ""
|
191 |
|
192 |
#: ../classes/class-ccf-field-renderer.php:876
|
193 |
+
#: ../classes/class-ccf-form-manager.php:1114
|
194 |
msgid "First"
|
195 |
msgstr ""
|
196 |
|
197 |
#: ../classes/class-ccf-field-renderer.php:883
|
198 |
+
#: ../classes/class-ccf-form-manager.php:1118
|
199 |
msgid "Last"
|
200 |
msgstr ""
|
201 |
|
202 |
#: ../classes/class-ccf-field-renderer.php:955
|
203 |
#: ../classes/class-ccf-field-renderer.php:976
|
204 |
+
#: ../classes/class-ccf-form-manager.php:1133
|
205 |
+
#: ../classes/class-ccf-form-manager.php:1154
|
206 |
msgid "HH"
|
207 |
msgstr ""
|
208 |
|
209 |
#: ../classes/class-ccf-field-renderer.php:959
|
210 |
#: ../classes/class-ccf-field-renderer.php:980
|
211 |
+
#: ../classes/class-ccf-form-manager.php:1137
|
212 |
+
#: ../classes/class-ccf-form-manager.php:1158
|
213 |
msgid "MM"
|
214 |
msgstr ""
|
215 |
|
216 |
#: ../classes/class-ccf-field-renderer.php:963
|
217 |
#: ../classes/class-ccf-field-renderer.php:984
|
218 |
+
#: ../classes/class-ccf-form-manager.php:1141
|
219 |
+
#: ../classes/class-ccf-form-manager.php:1162
|
220 |
msgid "AM"
|
221 |
msgstr ""
|
222 |
|
223 |
#: ../classes/class-ccf-field-renderer.php:964
|
224 |
#: ../classes/class-ccf-field-renderer.php:985
|
225 |
+
#: ../classes/class-ccf-form-manager.php:1142
|
226 |
+
#: ../classes/class-ccf-form-manager.php:1163
|
227 |
msgid "PM"
|
228 |
msgstr ""
|
229 |
|
230 |
#: ../classes/class-ccf-field-renderer.php:971
|
231 |
#: ../classes/class-ccf-form-cpt.php:510
|
232 |
+
#: ../classes/class-ccf-form-manager.php:301
|
233 |
+
#: ../classes/class-ccf-form-manager.php:314
|
234 |
+
#: ../classes/class-ccf-form-manager.php:1149
|
235 |
+
#: ../classes/class-ccf-form-manager.php:1332
|
236 |
+
#: ../classes/class-ccf-form-manager.php:1346
|
237 |
+
#: ../classes/class-ccf-form-manager.php:1484
|
238 |
msgid "Date"
|
239 |
msgstr ""
|
240 |
|
244 |
|
245 |
#: ../classes/class-ccf-form-cpt.php:326 ../classes/class-ccf-form-cpt.php:344
|
246 |
#: ../classes/class-ccf-form-cpt.php:508
|
247 |
+
#: ../classes/class-ccf-form-manager.php:304
|
248 |
+
#: ../classes/class-ccf-form-manager.php:317
|
249 |
msgid "Submissions"
|
250 |
msgstr ""
|
251 |
|
286 |
msgstr ""
|
287 |
|
288 |
#: ../classes/class-ccf-form-cpt.php:446
|
289 |
+
#: ../classes/class-ccf-form-manager.php:1274
|
290 |
msgid "(No title)"
|
291 |
msgstr ""
|
292 |
|
299 |
msgstr ""
|
300 |
|
301 |
#: ../classes/class-ccf-form-cpt.php:507
|
302 |
+
#: ../classes/class-ccf-form-manager.php:302
|
303 |
+
#: ../classes/class-ccf-form-manager.php:315
|
304 |
msgid "Author"
|
305 |
msgstr ""
|
306 |
|
307 |
#: ../classes/class-ccf-form-cpt.php:509
|
308 |
+
#: ../classes/class-ccf-form-manager.php:303
|
309 |
+
#: ../classes/class-ccf-form-manager.php:316
|
310 |
msgid "Number of Fields"
|
311 |
msgstr ""
|
312 |
|
495 |
msgid "Form submitter IP"
|
496 |
msgstr ""
|
497 |
|
498 |
+
#: ../classes/class-ccf-form-handler.php:847
|
499 |
#, php-format
|
500 |
msgid "%s: Form Submission"
|
501 |
msgstr ""
|
502 |
|
503 |
+
#: ../classes/class-ccf-form-handler.php:849
|
504 |
#, php-format
|
505 |
msgid " to \"%s\""
|
506 |
msgstr ""
|
507 |
|
508 |
+
#: ../classes/class-ccf-form-handler.php:875
|
509 |
#: ../classes/class-ccf-form-renderer.php:134
|
510 |
msgid "Thank you for your submission."
|
511 |
msgstr ""
|
548 |
msgstr ""
|
549 |
|
550 |
#: ../classes/class-ccf-form-manager.php:133
|
551 |
+
#: ../classes/class-ccf-form-manager.php:1277
|
552 |
msgid "Insert into post"
|
553 |
msgstr ""
|
554 |
|
598 |
|
599 |
#: ../classes/class-ccf-form-manager.php:177
|
600 |
#: ../classes/class-ccf-form-manager.php:196
|
601 |
+
#: ../classes/class-ccf-form-manager.php:355
|
602 |
+
#: ../classes/class-ccf-form-manager.php:405
|
603 |
+
#: ../classes/class-ccf-form-manager.php:481
|
604 |
+
#: ../classes/class-ccf-form-manager.php:571
|
605 |
+
#: ../classes/class-ccf-form-manager.php:636
|
606 |
+
#: ../classes/class-ccf-form-manager.php:678
|
607 |
+
#: ../classes/class-ccf-form-manager.php:739
|
608 |
+
#: ../classes/class-ccf-form-manager.php:786
|
609 |
+
#: ../classes/class-ccf-form-manager.php:828
|
610 |
+
#: ../classes/class-ccf-form-manager.php:835
|
611 |
+
#: ../classes/class-ccf-form-manager.php:886
|
612 |
+
#: ../classes/class-ccf-form-manager.php:929
|
613 |
+
#: ../classes/class-ccf-form-manager.php:972
|
614 |
msgid "No"
|
615 |
msgstr ""
|
616 |
|
617 |
#: ../classes/class-ccf-form-manager.php:178
|
618 |
#: ../classes/class-ccf-form-manager.php:195
|
619 |
+
#: ../classes/class-ccf-form-manager.php:354
|
620 |
+
#: ../classes/class-ccf-form-manager.php:404
|
621 |
+
#: ../classes/class-ccf-form-manager.php:480
|
622 |
+
#: ../classes/class-ccf-form-manager.php:570
|
623 |
+
#: ../classes/class-ccf-form-manager.php:635
|
624 |
+
#: ../classes/class-ccf-form-manager.php:677
|
625 |
+
#: ../classes/class-ccf-form-manager.php:738
|
626 |
+
#: ../classes/class-ccf-form-manager.php:785
|
627 |
+
#: ../classes/class-ccf-form-manager.php:827
|
628 |
+
#: ../classes/class-ccf-form-manager.php:834
|
629 |
+
#: ../classes/class-ccf-form-manager.php:885
|
630 |
+
#: ../classes/class-ccf-form-manager.php:928
|
631 |
+
#: ../classes/class-ccf-form-manager.php:971
|
632 |
msgid "Yes"
|
633 |
msgstr ""
|
634 |
|
662 |
|
663 |
#: ../classes/class-ccf-form-manager.php:210
|
664 |
#: ../classes/class-ccf-form-manager.php:231
|
665 |
+
#: ../classes/class-ccf-form-manager.php:258
|
666 |
msgid "Form Field"
|
667 |
msgstr ""
|
668 |
|
702 |
msgid "Pull \"From\" Name Dynamically from Field:"
|
703 |
msgstr ""
|
704 |
|
705 |
+
#: ../classes/class-ccf-form-manager.php:254
|
706 |
+
msgid "Email Subject Type:"
|
707 |
+
msgstr ""
|
708 |
+
|
709 |
+
#: ../classes/class-ccf-form-manager.php:256
|
710 |
+
msgid "Default"
|
711 |
+
msgstr ""
|
712 |
+
|
713 |
#: ../classes/class-ccf-form-manager.php:257
|
714 |
+
msgid "Custom Subject"
|
715 |
+
msgstr ""
|
716 |
+
|
717 |
+
#: ../classes/class-ccf-form-manager.php:261
|
718 |
+
msgid ""
|
719 |
+
"You can set the notification emails subject line to be the CCF default, "
|
720 |
+
"custom text, or pull the subject from a field in the form."
|
721 |
+
msgstr ""
|
722 |
+
|
723 |
+
#: ../classes/class-ccf-form-manager.php:265
|
724 |
+
msgid "Custom Email Subject:"
|
725 |
+
msgstr ""
|
726 |
+
|
727 |
+
#: ../classes/class-ccf-form-manager.php:270
|
728 |
+
msgid "Pull Email Subject Dynamically from Field:"
|
729 |
+
msgstr ""
|
730 |
+
|
731 |
+
#: ../classes/class-ccf-form-manager.php:284
|
732 |
msgid "items"
|
733 |
msgstr ""
|
734 |
|
735 |
+
#: ../classes/class-ccf-form-manager.php:299
|
736 |
+
#: ../classes/class-ccf-form-manager.php:312
|
737 |
msgid "ID"
|
738 |
msgstr ""
|
739 |
|
740 |
+
#: ../classes/class-ccf-form-manager.php:300
|
741 |
+
#: ../classes/class-ccf-form-manager.php:313
|
742 |
msgid "Title"
|
743 |
msgstr ""
|
744 |
|
745 |
+
#: ../classes/class-ccf-form-manager.php:327
|
746 |
msgid "<span>←</span> Click on a field to edit it."
|
747 |
msgstr ""
|
748 |
|
749 |
+
#: ../classes/class-ccf-form-manager.php:336
|
750 |
+
#: ../classes/class-ccf-form-manager.php:380
|
751 |
+
#: ../classes/class-ccf-form-manager.php:462
|
752 |
+
#: ../classes/class-ccf-form-manager.php:552
|
753 |
msgid "Internal Unique Slug"
|
754 |
msgstr ""
|
755 |
|
756 |
+
#: ../classes/class-ccf-form-manager.php:340
|
757 |
+
#: ../classes/class-ccf-form-manager.php:384
|
758 |
+
#: ../classes/class-ccf-form-manager.php:427
|
759 |
+
#: ../classes/class-ccf-form-manager.php:466
|
760 |
+
#: ../classes/class-ccf-form-manager.php:556
|
761 |
+
#: ../classes/class-ccf-form-manager.php:625
|
762 |
+
#: ../classes/class-ccf-form-manager.php:661
|
763 |
+
#: ../classes/class-ccf-form-manager.php:717
|
764 |
+
#: ../classes/class-ccf-form-manager.php:768
|
765 |
+
#: ../classes/class-ccf-form-manager.php:811
|
766 |
+
#: ../classes/class-ccf-form-manager.php:875
|
767 |
+
#: ../classes/class-ccf-form-manager.php:918
|
768 |
+
#: ../classes/class-ccf-form-manager.php:961
|
769 |
msgid "Label:"
|
770 |
msgstr ""
|
771 |
|
772 |
+
#: ../classes/class-ccf-form-manager.php:344
|
773 |
+
#: ../classes/class-ccf-form-manager.php:388
|
774 |
+
#: ../classes/class-ccf-form-manager.php:431
|
775 |
+
#: ../classes/class-ccf-form-manager.php:470
|
776 |
+
#: ../classes/class-ccf-form-manager.php:560
|
777 |
+
#: ../classes/class-ccf-form-manager.php:629
|
778 |
+
#: ../classes/class-ccf-form-manager.php:665
|
779 |
+
#: ../classes/class-ccf-form-manager.php:721
|
780 |
+
#: ../classes/class-ccf-form-manager.php:772
|
781 |
+
#: ../classes/class-ccf-form-manager.php:815
|
782 |
+
#: ../classes/class-ccf-form-manager.php:879
|
783 |
+
#: ../classes/class-ccf-form-manager.php:922
|
784 |
+
#: ../classes/class-ccf-form-manager.php:965
|
785 |
msgid "Description:"
|
786 |
msgstr ""
|
787 |
|
788 |
+
#: ../classes/class-ccf-form-manager.php:348
|
789 |
+
#: ../classes/class-ccf-form-manager.php:474
|
790 |
+
#: ../classes/class-ccf-form-manager.php:564
|
791 |
+
#: ../classes/class-ccf-form-manager.php:600
|
792 |
+
#: ../classes/class-ccf-form-manager.php:670
|
793 |
+
#: ../classes/class-ccf-form-manager.php:725
|
794 |
+
#: ../classes/class-ccf-form-manager.php:820
|
795 |
msgid "Initial Value:"
|
796 |
msgstr ""
|
797 |
|
798 |
+
#: ../classes/class-ccf-form-manager.php:352
|
799 |
+
#: ../classes/class-ccf-form-manager.php:402
|
800 |
+
#: ../classes/class-ccf-form-manager.php:478
|
801 |
+
#: ../classes/class-ccf-form-manager.php:568
|
802 |
+
#: ../classes/class-ccf-form-manager.php:633
|
803 |
+
#: ../classes/class-ccf-form-manager.php:675
|
804 |
+
#: ../classes/class-ccf-form-manager.php:736
|
805 |
+
#: ../classes/class-ccf-form-manager.php:783
|
806 |
+
#: ../classes/class-ccf-form-manager.php:825
|
807 |
+
#: ../classes/class-ccf-form-manager.php:883
|
808 |
+
#: ../classes/class-ccf-form-manager.php:926
|
809 |
+
#: ../classes/class-ccf-form-manager.php:969
|
810 |
msgid "Required:"
|
811 |
msgstr ""
|
812 |
|
813 |
+
#: ../classes/class-ccf-form-manager.php:361
|
814 |
+
#: ../classes/class-ccf-form-manager.php:411
|
815 |
+
#: ../classes/class-ccf-form-manager.php:447
|
816 |
+
#: ../classes/class-ccf-form-manager.php:487
|
817 |
+
#: ../classes/class-ccf-form-manager.php:512
|
818 |
+
#: ../classes/class-ccf-form-manager.php:537
|
819 |
+
#: ../classes/class-ccf-form-manager.php:577
|
820 |
+
#: ../classes/class-ccf-form-manager.php:606
|
821 |
+
#: ../classes/class-ccf-form-manager.php:642
|
822 |
+
#: ../classes/class-ccf-form-manager.php:692
|
823 |
+
#: ../classes/class-ccf-form-manager.php:745
|
824 |
+
#: ../classes/class-ccf-form-manager.php:792
|
825 |
+
#: ../classes/class-ccf-form-manager.php:841
|
826 |
+
#: ../classes/class-ccf-form-manager.php:899
|
827 |
+
#: ../classes/class-ccf-form-manager.php:942
|
828 |
+
#: ../classes/class-ccf-form-manager.php:985
|
829 |
msgid "Advanced"
|
830 |
msgstr ""
|
831 |
|
832 |
+
#: ../classes/class-ccf-form-manager.php:364
|
833 |
+
#: ../classes/class-ccf-form-manager.php:414
|
834 |
+
#: ../classes/class-ccf-form-manager.php:450
|
835 |
+
#: ../classes/class-ccf-form-manager.php:490
|
836 |
+
#: ../classes/class-ccf-form-manager.php:515
|
837 |
+
#: ../classes/class-ccf-form-manager.php:540
|
838 |
+
#: ../classes/class-ccf-form-manager.php:580
|
839 |
+
#: ../classes/class-ccf-form-manager.php:609
|
840 |
+
#: ../classes/class-ccf-form-manager.php:645
|
841 |
+
#: ../classes/class-ccf-form-manager.php:695
|
842 |
+
#: ../classes/class-ccf-form-manager.php:748
|
843 |
+
#: ../classes/class-ccf-form-manager.php:795
|
844 |
+
#: ../classes/class-ccf-form-manager.php:844
|
845 |
+
#: ../classes/class-ccf-form-manager.php:902
|
846 |
+
#: ../classes/class-ccf-form-manager.php:945
|
847 |
+
#: ../classes/class-ccf-form-manager.php:988
|
848 |
msgid "Class Name:"
|
849 |
msgstr ""
|
850 |
|
851 |
+
#: ../classes/class-ccf-form-manager.php:368
|
852 |
+
#: ../classes/class-ccf-form-manager.php:494
|
853 |
+
#: ../classes/class-ccf-form-manager.php:584
|
854 |
+
#: ../classes/class-ccf-form-manager.php:700
|
855 |
+
#: ../classes/class-ccf-form-manager.php:752
|
856 |
+
#: ../classes/class-ccf-form-manager.php:849
|
857 |
msgid "Placeholder Text:"
|
858 |
msgstr ""
|
859 |
|
860 |
+
#: ../classes/class-ccf-form-manager.php:392
|
861 |
msgid "Allowed File Extensions (comma separate):"
|
862 |
msgstr ""
|
863 |
|
864 |
+
#: ../classes/class-ccf-form-manager.php:394
|
865 |
msgid ""
|
866 |
"If left blank, will default to all extensions registered by WordPress. If "
|
867 |
"you use a file extension or mime type not <a href=\"http://codex.wordpress."
|
869 |
"a>, you will need to filter and manually whitelist the new extension."
|
870 |
msgstr ""
|
871 |
|
872 |
+
#: ../classes/class-ccf-form-manager.php:397
|
873 |
msgid "Max File Size (in MB):"
|
874 |
msgstr ""
|
875 |
|
876 |
+
#: ../classes/class-ccf-form-manager.php:399
|
877 |
#, php-format
|
878 |
msgid ""
|
879 |
"If left blank, will default to %d MB. Maximum allowed by server is %d MB."
|
880 |
msgstr ""
|
881 |
|
882 |
+
#: ../classes/class-ccf-form-manager.php:425
|
883 |
msgid ""
|
884 |
"reCAPTCHA is a simple captcha service provided by Google. <a target=\"_blank"
|
885 |
"\" href=\"https://www.google.com/recaptcha/intro/index.html\">Learn more</a>"
|
886 |
msgstr ""
|
887 |
|
888 |
+
#: ../classes/class-ccf-form-manager.php:435
|
889 |
msgid "Site Key:"
|
890 |
msgstr ""
|
891 |
|
892 |
+
#: ../classes/class-ccf-form-manager.php:437
|
893 |
+
#: ../classes/class-ccf-form-manager.php:442
|
894 |
msgid "Don't have one?"
|
895 |
msgstr ""
|
896 |
|
897 |
+
#: ../classes/class-ccf-form-manager.php:440
|
898 |
msgid "Secret Key:"
|
899 |
msgstr ""
|
900 |
|
901 |
+
#: ../classes/class-ccf-form-manager.php:503
|
902 |
+
#: ../classes/class-ccf-form-manager.php:524
|
903 |
+
#: ../classes/class-ccf-form-manager.php:549
|
904 |
+
#: ../classes/class-ccf-form-manager.php:593
|
905 |
+
#: ../classes/class-ccf-form-manager.php:618
|
906 |
+
#: ../classes/class-ccf-form-manager.php:654
|
907 |
+
#: ../classes/class-ccf-form-manager.php:710
|
908 |
+
#: ../classes/class-ccf-form-manager.php:761
|
909 |
+
#: ../classes/class-ccf-form-manager.php:804
|
910 |
+
#: ../classes/class-ccf-form-manager.php:868
|
911 |
+
#: ../classes/class-ccf-form-manager.php:911
|
912 |
+
#: ../classes/class-ccf-form-manager.php:954
|
913 |
msgid "Basic"
|
914 |
msgstr ""
|
915 |
|
916 |
+
#: ../classes/class-ccf-form-manager.php:506
|
917 |
msgid "HTML Content:"
|
918 |
msgstr ""
|
919 |
|
920 |
+
#: ../classes/class-ccf-form-manager.php:527
|
921 |
msgid "Heading:"
|
922 |
msgstr ""
|
923 |
|
924 |
+
#: ../classes/class-ccf-form-manager.php:531
|
925 |
msgid "Sub Heading:"
|
926 |
msgstr ""
|
927 |
|
928 |
+
#: ../classes/class-ccf-form-manager.php:596
|
929 |
+
#: ../classes/class-ccf-form-manager.php:621
|
930 |
+
#: ../classes/class-ccf-form-manager.php:657
|
931 |
+
#: ../classes/class-ccf-form-manager.php:713
|
932 |
+
#: ../classes/class-ccf-form-manager.php:764
|
933 |
+
#: ../classes/class-ccf-form-manager.php:807
|
934 |
+
#: ../classes/class-ccf-form-manager.php:871
|
935 |
+
#: ../classes/class-ccf-form-manager.php:914
|
936 |
+
#: ../classes/class-ccf-form-manager.php:957
|
937 |
msgid "Internal Unique Slug (a-z, 0-9, -, _):"
|
938 |
msgstr ""
|
939 |
|
940 |
+
#: ../classes/class-ccf-form-manager.php:683
|
941 |
msgid "Enable Date Select"
|
942 |
msgstr ""
|
943 |
|
944 |
+
#: ../classes/class-ccf-form-manager.php:687
|
945 |
msgid "Enable Time Select"
|
946 |
msgstr ""
|
947 |
|
948 |
+
#: ../classes/class-ccf-form-manager.php:729
|
949 |
msgid "Format:"
|
950 |
msgstr ""
|
951 |
|
952 |
+
#: ../classes/class-ccf-form-manager.php:732
|
953 |
+
#: ../classes/class-ccf-form-manager.php:779
|
954 |
msgid "International"
|
955 |
msgstr ""
|
956 |
|
957 |
+
#: ../classes/class-ccf-form-manager.php:776
|
958 |
msgid "Type:"
|
959 |
msgstr ""
|
960 |
|
961 |
+
#: ../classes/class-ccf-form-manager.php:778
|
962 |
msgid "United States"
|
963 |
msgstr ""
|
964 |
|
965 |
+
#: ../classes/class-ccf-form-manager.php:832
|
966 |
msgid "Require Confirmation:"
|
967 |
msgstr ""
|
968 |
|
969 |
+
#: ../classes/class-ccf-form-manager.php:860
|
970 |
msgid "Label"
|
971 |
msgstr ""
|
972 |
|
973 |
+
#: ../classes/class-ccf-form-manager.php:861
|
974 |
msgid "Value"
|
975 |
msgstr ""
|
976 |
|
977 |
+
#: ../classes/class-ccf-form-manager.php:890
|
978 |
+
#: ../classes/class-ccf-form-manager.php:933
|
979 |
+
#: ../classes/class-ccf-form-manager.php:976
|
980 |
msgid "Manage field choices:"
|
981 |
msgstr ""
|
982 |
|
983 |
+
#: ../classes/class-ccf-form-manager.php:894
|
984 |
+
#: ../classes/class-ccf-form-manager.php:937
|
985 |
+
#: ../classes/class-ccf-form-manager.php:980
|
986 |
msgid ""
|
987 |
"Note: If an option does not have a \"value\", it will not be considered a "
|
988 |
"valid selection if the field is required. The \"value\" is what's read, "
|
989 |
"stored, and displayed in the submission."
|
990 |
msgstr ""
|
991 |
|
992 |
+
#: ../classes/class-ccf-form-manager.php:997
|
993 |
msgid "You currently have no forms. Add some!"
|
994 |
msgstr ""
|
995 |
|
996 |
+
#: ../classes/class-ccf-form-manager.php:1020
|
997 |
msgid "Allowed file extensions are {{ extensions }}. "
|
998 |
msgstr ""
|
999 |
|
1000 |
+
#: ../classes/class-ccf-form-manager.php:1022
|
1001 |
msgid "Max file size is {{ file_size }} MB. "
|
1002 |
msgstr ""
|
1003 |
|
1004 |
+
#: ../classes/class-ccf-form-manager.php:1047
|
1005 |
+
#: ../classes/class-ccf-form-manager.php:1063
|
1006 |
+
#: ../classes/class-ccf-form-manager.php:1081
|
1007 |
msgid "An example choice"
|
1008 |
msgstr ""
|
1009 |
|
1010 |
+
#: ../classes/class-ccf-form-manager.php:1099
|
1011 |
msgid "Arbitrary block of HTML."
|
1012 |
msgstr ""
|
1013 |
|
1014 |
+
#: ../classes/class-ccf-form-manager.php:1105
|
1015 |
msgid "Section Heading"
|
1016 |
msgstr ""
|
1017 |
|
1018 |
+
#: ../classes/class-ccf-form-manager.php:1107
|
1019 |
msgid "This is the sub-heading text."
|
1020 |
msgstr ""
|
1021 |
|
1022 |
+
#: ../classes/class-ccf-form-manager.php:1276
|
1023 |
msgid "Edit"
|
1024 |
msgstr ""
|
1025 |
|
1026 |
+
#: ../classes/class-ccf-form-manager.php:1278
|
1027 |
msgid "Trash"
|
1028 |
msgstr ""
|
1029 |
|
1030 |
+
#: ../classes/class-ccf-form-manager.php:1321
|
1031 |
msgid "There is a problem with this form. Is it trashed or deleted?"
|
1032 |
msgstr ""
|
1033 |
|
1034 |
+
#: ../classes/class-ccf-form-manager.php:1463
|
1035 |
msgid "IP Address"
|
1036 |
msgstr ""
|
1037 |
|
1038 |
+
#: ../classes/class-ccf-form-manager.php:1475
|
1039 |
msgid "There are no submissions."
|
1040 |
msgstr ""
|
1041 |
|
1042 |
+
#: ../classes/class-ccf-form-manager.php:1504
|
1043 |
msgid "Add Form"
|
1044 |
msgstr ""
|
1045 |
|
1046 |
+
#: ../classes/class-ccf-form-manager.php:1528
|
1047 |
msgid "Single Line Text"
|
1048 |
msgstr ""
|
1049 |
|
1050 |
+
#: ../classes/class-ccf-form-manager.php:1529
|
1051 |
msgid "Dropdown"
|
1052 |
msgstr ""
|
1053 |
|
1054 |
+
#: ../classes/class-ccf-form-manager.php:1530
|
1055 |
msgid "Checkboxes"
|
1056 |
msgstr ""
|
1057 |
|
1058 |
+
#: ../classes/class-ccf-form-manager.php:1531
|
1059 |
msgid "Radio Buttons"
|
1060 |
msgstr ""
|
1061 |
|
1062 |
+
#: ../classes/class-ccf-form-manager.php:1532
|
1063 |
msgid "Paragraph Text"
|
1064 |
msgstr ""
|
1065 |
|
1066 |
+
#: ../classes/class-ccf-form-manager.php:1533
|
1067 |
msgid "Hidden"
|
1068 |
msgstr ""
|
1069 |
|
1070 |
+
#: ../classes/class-ccf-form-manager.php:1534
|
1071 |
msgid "File Upload"
|
1072 |
msgstr ""
|
1073 |
|
1074 |
+
#: ../classes/class-ccf-form-manager.php:1538
|
1075 |
msgid "HTML"
|
1076 |
msgstr ""
|
1077 |
|
1078 |
+
#: ../classes/class-ccf-form-manager.php:1539
|
1079 |
msgid "Section Header"
|
1080 |
msgstr ""
|
1081 |
|
1082 |
+
#: ../classes/class-ccf-form-manager.php:1544
|
1083 |
msgid "Name"
|
1084 |
msgstr ""
|
1085 |
|
1086 |
+
#: ../classes/class-ccf-form-manager.php:1545
|
1087 |
msgid "Date/Time"
|
1088 |
msgstr ""
|
1089 |
|
1090 |
+
#: ../classes/class-ccf-form-manager.php:1546
|
1091 |
msgid "Website"
|
1092 |
msgstr ""
|
1093 |
|
1094 |
+
#: ../classes/class-ccf-form-manager.php:1547
|
1095 |
msgid "Address"
|
1096 |
msgstr ""
|
1097 |
|
1098 |
+
#: ../classes/class-ccf-form-manager.php:1548
|
1099 |
msgid "Phone"
|
1100 |
msgstr ""
|
1101 |
|
1102 |
+
#: ../classes/class-ccf-form-manager.php:1549
|
1103 |
msgid "reCAPTCHA"
|
1104 |
msgstr ""
|
1105 |
|
1106 |
+
#: ../classes/class-ccf-form-manager.php:1568
|
1107 |
msgid "You have no email fields"
|
1108 |
msgstr ""
|
1109 |
|
1110 |
+
#: ../classes/class-ccf-form-manager.php:1569
|
1111 |
msgid "You have no name fields"
|
1112 |
msgstr ""
|
1113 |
|
1114 |
+
#: ../classes/class-ccf-form-manager.php:1570
|
1115 |
+
msgid "You have no applicable fields"
|
1116 |
+
msgstr ""
|
1117 |
+
|
1118 |
+
#: ../classes/class-ccf-form-manager.php:1571
|
1119 |
msgid "Invalid date"
|
1120 |
msgstr ""
|
1121 |
|
1122 |
+
#: ../classes/class-ccf-form-manager.php:1573
|
1123 |
msgid "Field Label"
|
1124 |
msgstr ""
|
1125 |
|
1126 |
+
#: ../classes/class-ccf-form-manager.php:1574
|
1127 |
msgid "Form Submission"
|
1128 |
msgstr ""
|
1129 |
|
1130 |
+
#: ../classes/class-ccf-form-manager.php:1575
|
1131 |
#: ../classes/class-ccf-form-renderer.php:120
|
1132 |
msgid "This form is paused right now. Check back later!"
|
1133 |
msgstr ""
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers, forms
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.4
|
7 |
-
Stable tag: 6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -37,6 +37,12 @@ For questions, feature requests, and support concerning the Custom Contact Forms
|
|
37 |
|
38 |
== Changelog ==
|
39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
= 6.8.2 =
|
41 |
* Fix non-translateable strings
|
42 |
* Include French translation. Props [pyrog](https://github.com/pyrog)
|
4 |
Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers, forms
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.4
|
7 |
+
Stable tag: 6.9.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
37 |
|
38 |
== Changelog ==
|
39 |
|
40 |
+
= 6.9.0 =
|
41 |
+
* Add Danish translation. Props [KasperLK](https://github.com/KasperLK)
|
42 |
+
* Wrap form completion message
|
43 |
+
* Fix jshint bugs
|
44 |
+
* Custom subject lines and user submitted subject lines
|
45 |
+
|
46 |
= 6.8.2 =
|
47 |
* Fix non-translateable strings
|
48 |
* Include French translation. Props [pyrog](https://github.com/pyrog)
|