Custom Contact Forms - Version 4.6.0.0

Version Description

  • custom-contact-forms.php - Dependencies included differently, new general setting options
  • custom-contact-forms-admin.php - New field type (Date), guidelines inserted in to all pages, new general settings
  • modules/usage_popover/custom-contact-forms-usage-popover.php - New field type added
  • custom-contact-forms.php - Dependencies included differently, new field type added, JQuery files included differently
  • js/custom-contact-forms-datepicker.js - New file
  • js/jquery.ui.datepicker.js - New file
Download this release

Release Info

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

Code changes from version 4.5.3.2 to 4.6.0.0

custom-contact-forms-admin.php CHANGED
@@ -414,6 +414,7 @@ if (!class_exists('CustomContactFormsAdmin')) {
414
  </label>
415
  <select name="object[field_type]">
416
  <option>Text</option>
 
417
  <option>Textarea</option>
418
  <option>Hidden</option>
419
  <option>Checkbox</option>
@@ -629,7 +630,7 @@ if (!class_exists('CustomContactFormsAdmin')) {
629
  for ($i = 0, $z = 0; $i < count($fields); $i++, $z++) {
630
  if ($fields[$i]->user_field == 0) { $z--; continue; }
631
  $attached_options = parent::getAttachedFieldOptionsArray($fields[$i]->id);
632
- $field_types = '<option>Text</option><option>Textarea</option><option>Hidden</option><option>Checkbox</option><option>Radio</option><option>Dropdown</option>';
633
  $field_types = str_replace('<option>'.$fields[$i]->field_type.'</option>', '<option selected="selected">'.$fields[$i]->field_type.'</option>', $field_types);
634
 
635
  ?>
@@ -1066,7 +1067,10 @@ if (!class_exists('CustomContactFormsAdmin')) {
1066
  <input type="text" class="ccf-width225" value="&lt;?php if (function_exists('serveCustomContactForm')) { serveCustomContactForm(<?php echo $forms[$i]->id; ?>); } ?&gt;" name="theme_code_<?php echo $forms[$i]->id; ?>" />
1067
  <a href="javascript:void(0)" class="toollink" title="<?php _e("This field allows you to insert HTML directly after the starting <form> tag.", 'custom-contact-forms'); ?>">(?)</a>
1068
  <label for="objects[<?php echo $i; ?>][values][custom_code]"><?php _e("Custom Code:", 'custom-contact-forms'); ?></label>
1069
- <input name="objects[<?php echo $i; ?>][values][custom_code]" type="text" value="<?php echo $forms[$i]->custom_code; ?>" /></td>
 
 
 
1070
  <input name="objects[<?php echo $i; ?>][values][form_access_update]" type="hidden" value="1" /></td>
1071
  <a href="javascript:void(0)" class="toollink" title="<?php _e("If you want to show this form to only certain types of users, you can uncheck boxes accordingly. To show this form to anyone, check all the boxes. This will only take effect if 'Form Access Capabilities' is enabled in general settings.", 'custom-contact-forms'); ?>">(?)</a>
1072
  <label for="form_access">Can View Form:</label>
@@ -1827,6 +1831,15 @@ the field names you want required by commas. Remember to use underscores instead
1827
  &lt;/form&gt;</textarea>
1828
  </div>
1829
  </div>
 
 
 
 
 
 
 
 
 
1830
  <?php $this->insertUsagePopover(); ?>
1831
  <?php $this->insertQuickStartPopover(); ?>
1832
  </div>
@@ -2133,13 +2146,31 @@ the field names you want required by commas. Remember to use underscores instead
2133
  <?php _e("If you are using the dashboard widget, this allows you to disallow certain users from viewing it.", 'custom-contact-forms'); ?>
2134
  </li>
2135
  <li>
2136
- <label for="default_form_error_header">
2137
- <?php _e("Default Form Error Header:", 'custom-contact-forms'); ?>
2138
  </label>
2139
- <input name="settings[default_form_error_header]" value="<?php echo $admin_options['default_form_error_header']; ?>" type="text" />
 
 
 
2140
  </li>
2141
  <li class="descrip">
2142
- <?php _e("When a form is filled out incorrectly, this message will be displayed followed by the individual field error messages.", 'custom-contact-forms'); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2143
  </li>
2144
 
2145
  </ul>
@@ -2153,6 +2184,7 @@ the field names you want required by commas. Remember to use underscores instead
2153
  <li class="descrip">
2154
  <?php _e("If someone fills out a form for which a success message title is not provided and a custom success page is not provided, the plugin will show a popover using this field as the window title.", 'custom-contact-forms'); ?>
2155
  </li>
 
2156
  <li>
2157
  <label for="form_success_message">
2158
  <?php _e("Default Form Success Message:", 'custom-contact-forms'); ?>
@@ -2162,6 +2194,15 @@ the field names you want required by commas. Remember to use underscores instead
2162
  <li class="descrip">
2163
  <?php _e("If someone fills out a form for which a success message is not provided and a custom success page is not provided, the plugin will show a popover containing this message.", 'custom-contact-forms'); ?>
2164
  </li>
 
 
 
 
 
 
 
 
 
2165
  <li>
2166
  <label for="remember_field_values">
2167
  <?php _e("Remember Field Values:", 'custom-contact-forms'); ?>
@@ -2274,18 +2315,7 @@ the field names you want required by commas. Remember to use underscores instead
2274
  <?php _e("On Archives", 'custom-contact-forms'); ?>
2275
  </label>
2276
  </li>
2277
- <li>
2278
- <label for="code_type">
2279
- <?php _e("Use Code Type:", 'custom-contact-forms'); ?>
2280
- </label>
2281
- <select name="settings[code_type]">
2282
- <option>XHTML</option>
2283
- <option <?php if ($admin_options['code_type'] == 'HTML') echo 'selected="selected"'; ?>>HTML</option>
2284
- </select>
2285
- </li>
2286
- <li class="descrip">
2287
- <?php _e("This lets you switch the form code between HTML and XHTML.", 'custom-contact-forms'); ?>
2288
- </li>
2289
  <li>
2290
  <input type="submit" value="<?php _e("Update", 'custom-contact-forms'); ?>" name="general_settings" />
2291
  </li>
414
  </label>
415
  <select name="object[field_type]">
416
  <option>Text</option>
417
+ <option>Date</option>
418
  <option>Textarea</option>
419
  <option>Hidden</option>
420
  <option>Checkbox</option>
630
  for ($i = 0, $z = 0; $i < count($fields); $i++, $z++) {
631
  if ($fields[$i]->user_field == 0) { $z--; continue; }
632
  $attached_options = parent::getAttachedFieldOptionsArray($fields[$i]->id);
633
+ $field_types = '<option>Text</option><option>Date</option><option>Textarea</option><option>Hidden</option><option>Checkbox</option><option>Radio</option><option>Dropdown</option>';
634
  $field_types = str_replace('<option>'.$fields[$i]->field_type.'</option>', '<option selected="selected">'.$fields[$i]->field_type.'</option>', $field_types);
635
 
636
  ?>
1067
  <input type="text" class="ccf-width225" value="&lt;?php if (function_exists('serveCustomContactForm')) { serveCustomContactForm(<?php echo $forms[$i]->id; ?>); } ?&gt;" name="theme_code_<?php echo $forms[$i]->id; ?>" />
1068
  <a href="javascript:void(0)" class="toollink" title="<?php _e("This field allows you to insert HTML directly after the starting <form> tag.", 'custom-contact-forms'); ?>">(?)</a>
1069
  <label for="objects[<?php echo $i; ?>][values][custom_code]"><?php _e("Custom Code:", 'custom-contact-forms'); ?></label>
1070
+ <input name="objects[<?php echo $i; ?>][values][custom_code]" type="text" class="ccf-width100" value="<?php echo $forms[$i]->custom_code; ?>" />
1071
+ <a href="javascript:void(0)" class="toollink" title="<?php _e("Insert the page id's that your form will be used on. This will make it so the plugin will only load JS and CSS files on these select pages. This will improve your site's load time.", 'custom-contact-forms'); ?>">(?)</a>
1072
+ <label for="objects[<?php echo $i; ?>][values][form_pages]"><?php _e("Form Pages:", 'custom-contact-forms'); ?></label>
1073
+ <input name="objects[<?php echo $i; ?>][values][form_pages]" type="text" class="ccf-width75" value="<?php echo $forms[$i]->form_pages; ?>" /></td>
1074
  <input name="objects[<?php echo $i; ?>][values][form_access_update]" type="hidden" value="1" /></td>
1075
  <a href="javascript:void(0)" class="toollink" title="<?php _e("If you want to show this form to only certain types of users, you can uncheck boxes accordingly. To show this form to anyone, check all the boxes. This will only take effect if 'Form Access Capabilities' is enabled in general settings.", 'custom-contact-forms'); ?>">(?)</a>
1076
  <label for="form_access">Can View Form:</label>
1831
  &lt;/form&gt;</textarea>
1832
  </div>
1833
  </div>
1834
+ <a name="plugin-news"></a>
1835
+ <div id="plugin-news" class="postbox">
1836
+ <h3 class="hndle"><span>
1837
+ <?php _e("Custom Contact Forms Plugin News", 'custom-contact-forms'); ?>
1838
+ </span></h3>
1839
+ <div class="inside">
1840
+ <?php $this->displayPluginNewsFeed(); ?>
1841
+ </div>
1842
+ </div>
1843
  <?php $this->insertUsagePopover(); ?>
1844
  <?php $this->insertQuickStartPopover(); ?>
1845
  </div>
2146
  <?php _e("If you are using the dashboard widget, this allows you to disallow certain users from viewing it.", 'custom-contact-forms'); ?>
2147
  </li>
2148
  <li>
2149
+ <label for="code_type">
2150
+ <?php _e("Use Code Type:", 'custom-contact-forms'); ?>
2151
  </label>
2152
+ <select name="settings[code_type]">
2153
+ <option>XHTML</option>
2154
+ <option <?php if ($admin_options['code_type'] == 'HTML') echo 'selected="selected"'; ?>>HTML</option>
2155
+ </select>
2156
  </li>
2157
  <li class="descrip">
2158
+ <?php _e("This lets you switch the form code between HTML and XHTML.", 'custom-contact-forms'); ?>
2159
+ </li>
2160
+ <li>
2161
+ <label for="form_page_inclusion_only">
2162
+ <?php _e("Restrict Frontend JS and CSS to Form Pages Only:", 'custom-contact-forms'); ?>
2163
+ </label>
2164
+ <select name="settings[form_page_inclusion_only]">
2165
+ <option value="1">
2166
+ <?php _e("Yes", 'custom-contact-forms'); ?>
2167
+ </option>
2168
+ <option value="0" <?php if ($admin_options['form_page_inclusion_only'] == 0) echo 'selected="selected"'; ?>>
2169
+ <?php _e("No", 'custom-contact-forms'); ?>
2170
+ </option></select>
2171
+ </li>
2172
+ <li class="descrip">
2173
+ <?php _e("Within each form in the form manager, you can specify the page id's on which that form will be used. If you set this to 'Yes', the plugin will only include CSS and JS files on pages/posts where a CCF form is inserted. If this is set to 'No', CSS and JS files for this plugin will be included on every page of your site except in the admin area.", 'custom-contact-forms'); ?>
2174
  </li>
2175
 
2176
  </ul>
2184
  <li class="descrip">
2185
  <?php _e("If someone fills out a form for which a success message title is not provided and a custom success page is not provided, the plugin will show a popover using this field as the window title.", 'custom-contact-forms'); ?>
2186
  </li>
2187
+
2188
  <li>
2189
  <label for="form_success_message">
2190
  <?php _e("Default Form Success Message:", 'custom-contact-forms'); ?>
2194
  <li class="descrip">
2195
  <?php _e("If someone fills out a form for which a success message is not provided and a custom success page is not provided, the plugin will show a popover containing this message.", 'custom-contact-forms'); ?>
2196
  </li>
2197
+ <li>
2198
+ <label for="default_form_error_header">
2199
+ <?php _e("Default Form Error Header:", 'custom-contact-forms'); ?>
2200
+ </label>
2201
+ <input name="settings[default_form_error_header]" value="<?php echo $admin_options['default_form_error_header']; ?>" type="text" />
2202
+ </li>
2203
+ <li class="descrip">
2204
+ <?php _e("When a form is filled out incorrectly, this message will be displayed followed by the individual field error messages.", 'custom-contact-forms'); ?>
2205
+ </li>
2206
  <li>
2207
  <label for="remember_field_values">
2208
  <?php _e("Remember Field Values:", 'custom-contact-forms'); ?>
2315
  <?php _e("On Archives", 'custom-contact-forms'); ?>
2316
  </label>
2317
  </li>
2318
+
 
 
 
 
 
 
 
 
 
 
 
2319
  <li>
2320
  <input type="submit" value="<?php _e("Update", 'custom-contact-forms'); ?>" name="general_settings" />
2321
  </li>
custom-contact-forms-front.php CHANGED
@@ -1,518 +1,586 @@
1
- <?php
2
- /*
3
- Custom Contact Forms Plugin
4
- By Taylor Lovett - http://www.taylorlovett.com
5
- Plugin URL: http://www.taylorlovett.com/wordpress-plugins
6
- */
7
- if (!class_exists('CustomContactFormsFront')) {
8
- class CustomContactFormsFront extends CustomContactForms {
9
- var $form_errors = array();
10
- var $error_return;
11
- var $current_form;
12
- var $current_thank_you_message;
13
-
14
- function frontInit() {
15
- ccf_utils::startSession();
16
- $this->processForms();
17
- }
18
-
19
- function insertFrontEndStyles() {
20
- wp_register_style('CCFStandardsCSS', WP_PLUGIN_URL . '/custom-contact-forms/css/custom-contact-forms-standards.css');
21
- wp_register_style('CCFFormsCSS', WP_PLUGIN_URL . '/custom-contact-forms/css/custom-contact-forms.css');
22
- wp_enqueue_style('CCFStandardsCSS');
23
- wp_enqueue_style('CCFFormsCSS');
24
- }
25
-
26
- function insertFrontEndScripts() {
27
- $admin_options = parent::getAdminOptions();
28
- if ($admin_options['enable_jquery'] == 1) {
29
- wp_enqueue_script('jquery');
30
- wp_enqueue_script('jquery-tools', WP_PLUGIN_URL . '/custom-contact-forms/js/jquery.tools.min.js');
31
- wp_enqueue_script('ccf-main', WP_PLUGIN_URL . '/custom-contact-forms/js/custom-contact-forms.js', array('jquery', 'jquery-ui-core', 'jquery-ui-tabs', 'jquery-ui-resizable'), '1.0');
32
- }
33
-
34
- }
35
-
36
- function setFormError($key, $message) {
37
- $this->form_errors[$key] = $message;
38
- }
39
-
40
- function getFormError($key) {
41
- return $this->form_errors[$key];
42
- }
43
-
44
- function getAllFormErrors() {
45
- return $this->form_errors;
46
- }
47
-
48
- function shortCodeToForm($atts) {
49
- extract(shortcode_atts(array(
50
- 'form' => 0,
51
- ), $atts));
52
- $this_form = parent::selectForm($form);
53
- if (empty($this_form)) return '';
54
- $admin_options = parent::getAdminOptions();
55
- if ($admin_options['enable_form_access_manager'] == 1 && !$this->userCanViewForm($this_form))
56
- return $admin_options['default_form_bad_permissions'];
57
-
58
- return $this->getFormCode($this_form);
59
- }
60
-
61
- function emptyFormErrors() {
62
- $this->form_errors = array();
63
- }
64
-
65
- function contentFilter($content) {
66
- // THIS NEEDS TO REPLACE THE SHORTCODE ONLY ONCE
67
- $errors = $this->getAllFormErrors();
68
- if (!empty($errors)) {
69
- $admin_options = parent::getAdminOptions();
70
- $out = '<div id="custom-contact-forms-errors"><p>'.$admin_options['default_form_error_header'].'</p><ul>' . "\n";
71
- //$errors = $this->getAllFormErrors();
72
- foreach ($errors as $error) {
73
- $out .= '<li>'.$error.'</li>' . "\n";
74
- }
75
- $err_link = (!empty($this->error_return)) ? '<p><a href="'.$this->error_return.'" title="Go Back">&lt; ' . __('Go Back to Form.', 'custom-contact-forms') . '</a></p>' : '';
76
- $this->emptyFormErrors();
77
- return $out . '</ul>' . "\n" . $err_link . '</div>';
78
- }
79
- return $content;
80
- /*
81
- $matches = array();
82
- preg_match_all('/\[customcontact form=([0-9]+)\]/si', $content, $matches);
83
- $matches_count = count($matches[0]);
84
- for ($i = 0; $i < $matches_count; $i++) {
85
- $this_form = parent::selectForm($matches[1][$i]);
86
- if ($this_form == false)
87
- $form_replace = '';
88
- if (!$this->userCanViewForm($this_form))
89
- $form_replace = __("You don't have the proper permissions to view this form.", 'custom-contact-forms');
90
- else
91
- $form_replace = $this->getFormCode($this_form);
92
- $content = str_replace($matches[0][$i], $form_replace, $content);
93
- }
94
- return $content;*/
95
- }
96
-
97
- function insertFormSuccessCode() {
98
- $admin_options = parent::getAdminOptions();
99
- if ($this->current_form !== 0) {
100
- $form = parent::selectForm($this->current_form);
101
- $success_message = (!empty($form->form_success_message)) ? $form->form_success_message : $admin_options['form_success_message'];
102
- $success_title = (!empty($form->form_success_title)) ? $form->form_success_title : $admin_options['form_success_message_title'];
103
- } else {
104
- $success_title = $admin_options['form_success_message_title'];
105
- $success_message = (empty($this->current_thank_you_message)) ? $admin_options['form_success_message'] : $this->current_thank_you_message;
106
- } if ($form->form_style != 0) {
107
- $style = parent::selectStyle($form->form_style);
108
- ?>
109
- <style type="text/css">
110
- <!--
111
- #ccf-form-success { z-index:10000; border-color:#<?php echo parent::formatStyle($style->success_popover_bordercolor); ?>; height:<?php $style->success_popover_height; ?>; }
112
- #ccf-form-success div { background-color:#<?php echo parent::formatStyle($style->success_popover_bordercolor); ?>; }
113
- #ccf-form-success div h5 { color:#<?php echo parent::formatStyle($style->success_popover_title_fontcolor); ?>; font-size:<?php echo $style->success_popover_title_fontsize; ?>; }
114
- #ccf-form-success div a { color:#<?php echo parent::formatStyle($style->success_popover_title_fontcolor); ?>; }
115
- #ccf-form-success p { font-size:<?php echo $style->success_popover_fontsize; ?>; color:#<?php echo parent::formatStyle($style->success_popover_fontcolor); ?>; }
116
- -->
117
- </style>
118
- <?php
119
- }
120
- ?>
121
- <div id="ccf-form-success">
122
- <div>
123
- <h5><?php echo $success_title; ?></h5>
124
- <a href="javascript:void(0)" class="close">&times;</a>
125
- </div>
126
- <p><?php echo $success_message; ?></p>
127
-
128
- </div>
129
-
130
- <?php
131
- }
132
-
133
- function validEmail($email) {
134
- if (!@preg_match("/^[^@]{1,64}@[^@]{1,255}$/", $email)) return false;
135
- $email_array = explode("@", $email);
136
- $local_array = explode(".", $email_array[0]);
137
- for ($i = 0; $i < sizeof($local_array); $i++) {
138
- if (!@preg_match("/^(([A-Za-z0-9!#$%&'*+\/=?^_`{|}~-][A-Za-z0-9!#$%&'*+\/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$/", $local_array[$i])) {
139
- return false;
140
- }
141
- } if (!@preg_match("/^\[?[0-9\.]+\]?$/", $email_array[1])) {
142
- $domain_array = explode(".", $email_array[1]);
143
- if (sizeof($domain_array) < 2) return false;
144
- for ($i = 0; $i < sizeof($domain_array); $i++) {
145
- if (!@preg_match("/^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$/", $domain_array[$i])) {
146
- return false;
147
- }
148
- }
149
- }
150
- return true;
151
- }
152
-
153
- function validWebsite($website) {
154
- return preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $website);
155
- }
156
-
157
- function getFormCode($form, $is_widget_form = false) {
158
- if (empty($form)) return '';
159
- $admin_options = parent::getAdminOptions();
160
- $form_key = time();
161
- $out = '';
162
- $form_styles = '';
163
- $style_class = (!$is_widget_form) ? ' customcontactform' : ' customcontactform-sidebar';
164
- $form_id = 'form-' . $form->id . '-'.$form_key;
165
- if ($form->form_style != 0) {
166
- $style = parent::selectStyle($form->form_style, '');
167
- $style_class = $style->style_slug;
168
- }
169
- $form_method = (empty($form->form_method)) ? 'post' : strtolower($form->form_method);
170
- $form_title = ccf_utils::decodeOption($form->form_title, 1, 1);
171
- $action = (!empty($form->form_action)) ? $form->form_action : $_SERVER['REQUEST_URI'];
172
- $out .= '<form id="'.$form_id.'" method="'.$form_method.'" action="'.$action.'" class="'.$style_class.'">' . "\n";
173
- $out .= ccf_utils::decodeOption($form->custom_code, 1, 1) . "\n";
174
- if (!empty($form_title) && !$is_widget_form) $out .= '<h4 id="h4-' . $form->id . '-' . $form_key . '">' . $form_title . '</h4>' . "\n";
175
- $fields = parent::getAttachedFieldsArray($form->id);
176
- $hiddens = '';
177
- $code_type = ($admin_options['code_type'] == 'XHTML') ? ' /' : '';
178
- $add_reset = '';
179
- foreach ($fields as $field_id) {
180
- $field = parent::selectField($field_id, '');
181
- $req = ($field->field_required == 1 or $field->field_slug == 'ishuman') ? '* ' : '';
182
- $req_long = ($field->field_required == 1) ? ' ' . __('(required)', 'custom-contact-forms') : '';
183
- $input_id = 'id="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'-'.$form_key.'"';
184
- $field_value = ccf_utils::decodeOption($field->field_value, 1, 1);
185
- $instructions = (empty($field->field_instructions)) ? '' : 'title="' . $field->field_instructions . $req_long . '" ';
186
- $tooltip_class = (empty($field->field_instructions)) ? '' : 'ccf-tooltip-field';
187
- if ($admin_options['enable_widget_tooltips'] == 0 && $is_widget_form) $instructions = '';
188
- if ($_SESSION['fields'][$field->field_slug]) {
189
- if ($admin_options['remember_field_values'] == 1)
190
- $field_value = $_SESSION['fields'][$field->field_slug];
191
- } if ($field->field_slug == 'captcha') {
192
- $out .= '<div>' . "\n" . $this->getCaptchaCode($field, $form->id) . "\n" . '</div>' . "\n";
193
- } elseif ($field->field_slug == 'usaStates') {
194
- $out .= '<div>' . "\n" . $this->getStatesCode($field, $form->id) . "\n" . '</div>' . "\n";
195
- } elseif ($field->field_slug == 'allCountries') {
196
- $out .= '<div>' . "\n" . $this->getCountriesCode($field, $form->id) . "\n" . '</div>' . "\n";
197
- } elseif ($field->field_slug == 'resetButton') {
198
- $add_reset = ' <input type="reset" '.$instructions.' class="reset-button '.$field->field_class.' '.$tooltip_class.'" value="' . $field->field_value . '" />';
199
- } elseif ($field->field_type == 'Text') {
200
- $maxlength = (empty($field->field_maxlength) or $field->field_maxlength <= 0) ? '' : ' maxlength="'.$field->field_maxlength.'"';
201
- $out .= '<div>'."\n".'<label for="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">'. $req .ccf_utils::decodeOption($field->field_label, 1, 1).'</label>'."\n".'<input class="'.$field->field_class.' '.$tooltip_class.'" '.$instructions.' '.$input_id.' type="text" name="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'" value="'.$field_value.'"'.$maxlength.''.$code_type.'>'."\n".'</div>' . "\n";
202
- } elseif ($field->field_type == 'Hidden') {
203
- $hiddens .= '<input type="hidden" name="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'" value="'.$field_value.'" '.$input_id.''.$code_type.'>' . "\n";
204
- } elseif ($field->field_type == 'Checkbox') {
205
- $out .= '<div>'."\n".'<input class="'.$field->field_class.' '.$tooltip_class.'" '.$instructions.' type="checkbox" name="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'" value="'.ccf_utils::decodeOption($field->field_value, 1, 1).'" '.$input_id.''.$code_type.'> '."\n".'<label class="checkbox" for="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">' . $req .ccf_utils::decodeOption($field->field_label, 1, 1).'</label>'."\n".'</div>' . "\n";
206
- } elseif ($field->field_type == 'Textarea') {
207
- $out .= '<div>'."\n".'<label for="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">'. $req .ccf_utils::decodeOption($field->field_label, 1, 1).'</label>'."\n".'<textarea class="'.$field->field_class.' '.$tooltip_class.'" '.$instructions.' '.$input_id.' rows="5" cols="40" name="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">'.$field_value.'</textarea>'."\n".'</div>' . "\n";
208
- } elseif ($field->field_type == 'Dropdown') {
209
- $field_options = '';
210
- $options = parent::getAttachedFieldOptionsArray($field->id);
211
- foreach ($options as $option_id) {
212
- $option = parent::selectFieldOption($option_id);
213
- $option_sel = ($field->field_value == $option->option_slug) ? ' selected="selected"' : '';
214
- $option_value = (!empty($option->option_value)) ? ' value="' . $option->option_value . '"' : '';
215
- // Weird way of marking a state dead. TODO: Find another way.
216
- $option_value = ($option->option_dead == 1) ? ' value="' . CCF_DEAD_STATE_VALUE . '"' : $option_value;
217
- $field_options .= '<option'.$option_sel.''.$option_value.'>' . $option->option_label . '</option>' . "\n";
218
- }
219
- if (!empty($options)) {
220
- if (!$is_widget_form) $out .= '<div>'."\n".'<label class="select" for="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">'. $req .ccf_utils::decodeOption($field->field_label, 1, 1).'</label>'."\n".'<select '.$instructions.' '.$input_id.' name="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'" class="'.$field->field_class.' '.$tooltip_class.'">'."\n".$field_options.'</select>'."\n".'</div>' . "\n";
221
- else $out .= '<div>'."\n".'<label for="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">'. $req .ccf_utils::decodeOption($field->field_label, 1, 1).'</label>'."\n".'<select class="'.$field->field_class.' '.$tooltip_class.'" '.$instructions.' '.$input_id.' name="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">'."\n".$field_options.'</select>'."\n".'</div>' . "\n";
222
- }
223
- } elseif ($field->field_type == 'Radio') {
224
- $field_options = '';
225
- $options = parent::getAttachedFieldOptionsArray($field->id);
226
- foreach ($options as $option_id) {
227
- $option = parent::selectFieldOption($option_id);
228
- $option_sel = ($field->field_value == $option->option_slug) ? ' checked="checked"' : '';
229
- $field_options .= '<div><input'.$option_sel.' class="'.$field->field_class.' '.$tooltip_class.'" type="radio" '.$instructions.' name="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'" value="'.ccf_utils::decodeOption($option->option_value, 1, 1).'"'.$code_type.'> <label class="select" for="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">' . ccf_utils::decodeOption($option->option_label, 1, 1) . '</label></div>' . "\n";
230
- }
231
- $field_label = (!empty($field->field_label)) ? '<label for="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">'. $req .ccf_utils::decodeOption($field->field_label, 1, 1).'</label>' : '';
232
- if (!empty($options)) $out .= '<div>'."\n".$field_label."\n".$field_options."\n".'</div>' . "\n";
233
- }
234
- }
235
- $submit_text = (!empty($form->submit_button_text)) ? ccf_utils::decodeOption($form->submit_button_text, 1, 0) : 'Submit';
236
- $out .= '<input name="form_page" value="'.$_SERVER['REQUEST_URI'].'" type="hidden"'.$code_type.'>'."\n".'<input type="hidden" name="fid" value="'.$form->id.'"'.$code_type.'>'."\n".$hiddens."\n".'<input type="submit" id="submit-' . $form->id . '-'.$form_key.'" class="submit" value="' . $submit_text . '" name="customcontactforms_submit"'.$code_type.'>';
237
- if (!empty($add_reset)) $out .= $add_reset;
238
- $out .= "\n" . '</form>';
239
- if ($admin_options['author_link'] == 1) $out .= "\n".'<a class="ccf-hide" href="http://www.taylorlovett.com" title="Rockville Web Developer, Wordpress Plugins">Wordpress plugin expert and Rockville Web Developer Taylor Lovett</a>';
240
-
241
- if ($form->form_style != 0) {
242
- $no_border = array('', '0', '0px', '0%', '0pt', '0em');
243
- $round_border = (!in_array($style->field_borderround, $no_border)) ? '-moz-border-radius:'.$style->field_borderround.'; -khtml-border-radius:'.$style->field_borderround.'; -webkit-border-radius:'.$style->field_borderround.'; ' : '';
244
- $round_border_none = '-moz-border-radius:0px; -khtml-border-radius:0px; -webkit-border-radius:0px; ';
245
- $form_styles .= '<style type="text/css">' . "\n";
246
- $form_styles .= '#' . $form_id . " { width: ".$style->form_width."; text-align:left; padding:".$style->form_padding."; margin:".$style->form_margin."; border:".$style->form_borderwidth." ".$style->form_borderstyle." #".parent::formatStyle($style->form_bordercolor)."; background-color:#".parent::formatStyle($style->form_backgroundcolor)."; font-family:".$style->form_fontfamily."; } \n";
247
- $form_styles .= '#' . $form_id . " div { margin-bottom:6px; background-color:inherit; }\n";
248
- $form_styles .= '#' . $form_id . " div div { margin:0; background-color:inherit; padding:0; }\n";
249
- $form_styles .= '#' . $form_id . " h4 { padding:0; background-color:inherit; margin:".$style->title_margin." ".$style->title_margin." ".$style->title_margin." 0; color:#".parent::formatStyle($style->title_fontcolor)."; font-size:".$style->title_fontsize."; } \n";
250
- $form_styles .= '#' . $form_id . " label { padding:0; background-color:inherit; margin:".$style->label_margin." ".$style->label_margin." ".$style->label_margin." 0; display:block; color:#".parent::formatStyle($style->label_fontcolor)."; width:".$style->label_width."; font-size:".$style->label_fontsize."; } \n";
251
- $form_styles .= '#' . $form_id . " div div input { margin-bottom:2px; line-height:normal; }\n";
252
- $form_styles .= '#' . $form_id . " input[type=checkbox] { margin:0; }\n";
253
- $form_styles .= '#' . $form_id . " label.checkbox, #" . $form_id . " label.radio, #" . $form_id . " label.select { display:inline; } \n";
254
- $form_styles .= '#' . $form_id . " input[type=text], #" . $form_id . " select { ".$round_border." color:#".parent::formatStyle($style->field_fontcolor)."; margin:0; width:".$style->input_width."; font-size:".$style->field_fontsize."; background-color:#".parent::formatStyle($style->field_backgroundcolor)."; border:1px ".$style->field_borderstyle." #".parent::formatStyle($style->field_bordercolor)."; } \n";
255
- $form_styles .= '#' . $form_id . " select { ".$round_border_none." width:".$style->dropdown_width."; }\n";
256
- $form_styles .= '#' . $form_id . " .submit { color:#".parent::formatStyle($style->submit_fontcolor)."; width:".$style->submit_width."; height:".$style->submit_height."; font-size:".$style->submit_fontsize."; } \n";
257
- $form_styles .= '#' . $form_id . " .reset-button { color:#".parent::formatStyle($style->submit_fontcolor)."; width:".$style->submit_width."; height:".$style->submit_height."; font-size:".$style->submit_fontsize."; } \n";
258
- $form_styles .= '#' . $form_id . " textarea { ".$round_border." color:#".parent::formatStyle($style->field_fontcolor)."; width:".$style->textarea_width."; margin:0; background-color:#".parent::formatStyle($style->textarea_backgroundcolor)."; font-family:".$style->form_fontfamily."; height:".$style->textarea_height."; font-size:".$style->field_fontsize."; border:1px ".$style->field_borderstyle." #".parent::formatStyle($style->field_bordercolor)."; } \n";
259
- $form_styles .= '.ccf-tooltip { background-color:#'.parent::formatStyle($style->tooltip_backgroundcolor).'; font-family:'.$style->form_fontfamily.'; font-color:#'.parent::formatStyle($style->tooltip_fontcolor).'; font-size:'.$style->tooltip_fontsize.'; }' . "\n";
260
- $form_styles .= '</style>' . "\n";
261
- }
262
-
263
- return $form_styles . $out;
264
- }
265
-
266
- function requiredFieldsArrayFromList($list) {
267
- if (empty($list)) return array();
268
- $list = str_replace(' ', '', $list);
269
- $array = explode(',', $list);
270
- foreach ($array as $k => $v) {
271
- if (empty($array[$k])) unset($array[$k]);
272
- }
273
- return $array;
274
- }
275
-
276
- function processForms() {
277
- if ($_POST['ccf_customhtml'] || $_POST['customcontactforms_submit']) {
278
- // BEGIN define common language vars
279
- $lang = array();
280
- $lang['field_blank'] = __('You left this field blank: ', 'custom-contact-forms');
281
- $lang['form_page'] = __('Form Displayed on Page: ', 'custom-contact-forms');
282
- $lang['sender_ip'] = __('Sender IP: ', 'custom-contact-forms');
283
- // END define common language vars
284
- } if ($_POST['ccf_customhtml']) {
285
- $admin_options = parent::getAdminOptions();
286
- $fixed_customhtml_fields = array('required_fields', 'success_message', 'thank_you_page', 'destination_email', 'ccf_customhtml');
287
- $req_fields = $this->requiredFieldsArrayFromList($_POST['required_fields']);
288
- $req_fields = array_map('trim', $req_fields);
289
- $body = '';
290
- foreach ($_POST as $key => $value) {
291
- if (!in_array($key, $fixed_customhtml_fields)) {
292
- if (in_array($key, $req_fields) && !empty($value)) {
293
- unset($req_fields[array_search($key, $req_fields)]);
294
- }
295
- $body .= ucwords(str_replace('_', ' ', htmlspecialchars($key))) . ': ' . htmlspecialchars($value) . "<br /><br />\n";
296
- $data_array[$key] = $value;
297
- }
298
- } foreach($req_fields as $err)
299
- $this->setFormError($err, $lang['field_blank'] . '"' . $err . '"');
300
- $errors = $this->getAllFormErrors();
301
- if (empty($errors)) {
302
- ccf_utils::load_module('export/custom-contact-forms-user-data.php');
303
- $data_object = new CustomContactFormsUserData(array('data_array' => $data_array, 'form_page' => $_SERVER['SERVER_NAME']. $_SERVER['REQUEST_URI'], 'form_id' => 0, 'data_time' => time()));
304
- parent::insertUserData($data_object);
305
- $body .= "<br />\n" . htmlspecialchars($lang['form_page']) . $_SERVER['SERVER_NAME']. $_SERVER['REQUEST_URI'] . "<br />\n" . $lang['sender_ip'] . $_SERVER['REMOTE_ADDR'] . "<br />\n";
306
- if ($admin_options['email_form_submissions'] == 1) {
307
- if (!class_exists('PHPMailer'))
308
- require_once(ABSPATH . "wp-includes/class-phpmailer.php");
309
- $mail = new PHPMailer();
310
- if ($admin_options['mail_function'] == 'smtp') {
311
- $mail->IsSMTP();
312
- $mail->Host = $admin_options['smtp_host'];
313
- if ($admin_options['smtp_authentication'] == 1) {
314
- $mail->SMTPAuth = true;
315
- $mail->Username = $admin_options['smtp_username'];
316
- $mail->Password = $admin_options['smtp_password'];
317
- $mail->Port = $admin_options['smtp_port'];
318
- } else
319
- $mail->SMTPAuth = false;
320
- }
321
- $mail->From = $admin_options['default_from_email'];
322
- $mail->FromName = 'Custom Contact Forms';
323
- $dest_email_array = $this->getDestinationEmailArray($_POST['destination_email']);
324
- if (empty($dest_email_array)) $mail->AddAddress($admin_options['default_to_email']);
325
- else {
326
- foreach ($dest_email_array as $em)
327
- $mail->AddAddress($em);
328
- }
329
- $mail->Subject = $admin_options['default_form_subject'];
330
- $mail->AltBody = "To view the message, please use an HTML compatible email viewer!";
331
- $mail->MsgHTML(stripslashes($body));
332
- $mail->Send();
333
- } if ($_POST['thank_you_page']) {
334
- ccf_utils::redirect($_POST['thank_you_page']);
335
- }
336
- $this->current_thank_you_message = (!empty($_POST['success_message'])) ? $_POST['success_message'] : $admin_options['form_success_message'];
337
- $this->current_form = 0;
338
- add_action('wp_footer', array(&$this, 'insertFormSuccessCode'), 1);
339
- }
340
- unset($_POST);
341
- } elseif ($_POST['customcontactforms_submit']) {
342
- ccf_utils::startSession();
343
- $this->error_return = $_POST['form_page'];
344
- $admin_options = parent::getAdminOptions();
345
- $fields = parent::getAttachedFieldsArray($_POST['fid']);
346
- $form = parent::selectForm($_POST['fid']);
347
- $checks = array();
348
- $reply = ($_POST['fixedEmail']) ? $_POST['fixedEmail'] : NULL;
349
- $fixed_subject = ($_POST['emailSubject']) ? $_POST['emailSubject'] : NULL;
350
- $cap_name = 'captcha_' . $_POST['fid'];
351
- foreach ($fields as $field_id) {
352
- $field = parent::selectField($field_id, '');
353
- if ($field->field_slug == 'ishuman') {
354
- if ($_POST['ishuman'] != 1) {
355
- if (empty($field->field_error))
356
- $this->setFormError('ishuman', __('Only humans can use this form.', 'custom-contact-forms'));
357
- else $this->setFormError('ishuman', $field->field_error);
358
- }
359
- } elseif ($field->field_slug == 'captcha') {
360
- if ($_POST['captcha'] != $_SESSION[$cap_name]) {
361
- if (empty($field->field_error))
362
- $this->setFormError('captcha', __('You copied the number from the captcha field incorrectly.', 'custom-contact-forms'));
363
- else $this->setFormError('captcha', $field->field_error);
364
- }
365
- } elseif ($field->field_slug == 'fixedEmail' && $field->field_required == 1 && !empty($_POST['fixedEmail'])) {
366
- if (!$this->validEmail($_POST['fixedEmail'])) {
367
- if (empty($field->field_error))
368
- $this->setFormError('fixedEmail', __('The email address you provided is not valid.', 'custom-contact-forms'));
369
- else $this->setFormError('fixedEmail', $field->field_error);
370
- }
371
- } elseif ($field->field_slug == 'fixedWebsite' && $field->field_required == 1 && !empty($_POST['fixedWebsite'])) {
372
- if (!$this->validWebsite($_POST['fixedWebsite'])) {
373
- if (empty($field->field_error))
374
- $this->setFormError('fixedWebsite', __('The website address you provided is not valid.', 'custom-contact-forms'));
375
- else $this->setFormError('fixedWebsite', $field->field_error);
376
- }
377
- } else {
378
- $field_error_label = (empty($field->field_label)) ? $field->field_slug : $field->field_label;
379
- if ($field->field_required == 1 && !empty($_POST[$field->field_slug])) {
380
- if ($field->field_type == 'Dropdown' || $field->field_type == 'Radio') {
381
- // TODO: find better way to check for a dead state
382
- if ($_POST[$field->field_slug] == CCF_DEAD_STATE_VALUE) {
383
- if (empty($field->field_error))
384
- $this->setFormError($field->field_slug, $lang['field_blank'] . '"'.$field_error_label.'"');
385
- else $this->setFormError($field->field_slug, $field->field_error);
386
- }
387
- }
388
- } elseif ($field->field_required == 1 && empty($_POST[$field->field_slug])) {
389
- if (empty($field->field_error))
390
- $this->setFormError($field->field_slug, $lang['field_blank'] . '"'.$field_error_label.'"');
391
- else $this->setFormError($field->field_slug, $field->field_error);
392
- }
393
- } if ($field->field_type == 'Checkbox')
394
- $checks[] = $field->field_slug;
395
- }
396
- $body = '';
397
- $data_array = array();
398
- foreach ($_POST as $key => $value) {
399
- $_SESSION['fields'][$key] = $value;
400
- $field = parent::selectField('', $key);
401
- if (!array_key_exists($key, $GLOBALS['ccf_fixed_fields']) || $key == 'fixedEmail' || $key == 'usaStates' || $key == 'fixedWebsite'|| $key == 'emailSubject' || $key == 'allCountries') {
402
- $mail_field_label = (empty($field->field_label)) ? $field->field_slug : $field->field_label;
403
- $body .= htmlspecialchars($mail_field_label) . ': ' . htmlspecialchars($value) . "<br />\n";
404
- $data_array[$key] = $value;
405
- } if (in_array($key, $checks)) {
406
- $checks_key = array_search($key, $checks);
407
- unset($checks[$checks_key]);
408
- }
409
- } foreach ($checks as $check_key) {
410
- $field = parent::selectField('', $check_key);
411
- $lang['not_checked'] = __('Not Checked', 'custom-contact-forms');
412
- $data_array[$check_key] = $lang['not_checked'];
413
- $body .= ucwords(str_replace('_', ' ', htmlspecialchars($field->field_label))) . ': ' . $lang['not_checked'] . "\n";
414
- }
415
- $errors = $this->getAllFormErrors();
416
- if (empty($errors)) {
417
- ccf_utils::load_module('export/custom-contact-forms-user-data.php');
418
- unset($_SESSION['captcha_' . $_POST['fid']]);
419
- unset($_SESSION['fields']);
420
- $data_object = new CustomContactFormsUserData(array('data_array' => $data_array, 'form_page' => $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'], 'form_id' => $form->id, 'data_time' => time()));
421
- parent::insertUserData($data_object);
422
- if ($admin_options['email_form_submissions'] == '1') {
423
- $body .= "<br />\n" . htmlspecialchars($lang['form_page']) . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] . "<br />\n" . $lang['sender_ip'] . $_SERVER['REMOTE_ADDR'] . "<br />\n";
424
- if (!class_exists('PHPMailer'))
425
- require_once(ABSPATH . "wp-includes/class-phpmailer.php");
426
- $mail = new PHPMailer(false);
427
- if ($admin_options['mail_function'] == 'smtp') {
428
- $mail->IsSMTP();
429
- $mail->Host = $admin_options['smtp_host'];
430
- if ($admin_options['smtp_authentication'] == 1) {
431
- $mail->SMTPAuth = true;
432
- $mail->Username = $admin_options['smtp_username'];
433
- $mail->Password = $admin_options['smtp_password'];
434
- $mail->Port = $admin_options['smtp_port'];
435
- } else
436
- $mail->SMTPAuth = false;
437
- }
438
- $dest_email_array = $this->getDestinationEmailArray($form->form_email);
439
- $from_name = (empty($admin_options['default_from_name'])) ? __('Custom Contact Forms', 'custom-contact-forms') : $admin_options['default_from_name'];
440
- if (!empty($form->form_email_name)) $from_name = $form->form_email_name;
441
- if (empty($dest_email_array)) $mail->AddAddress($admin_options['default_to_email']);
442
- else {
443
- foreach ($dest_email_array as $em)
444
- $mail->AddAddress($em);
445
- }
446
- if ($reply != NULL && $this->validEmail($reply))
447
- $mail->From = $reply;
448
- else
449
- $mail->From = $admin_options['default_from_email'];
450
- $mail->FromName = $from_name;
451
- $mail->Subject = (!empty($form->form_email_subject)) ? $form->form_email_subject : $admin_options['default_form_subject'];
452
- if ($fixed_subject != NULL) $mail->Subject = $fixed_subject;
453
- $mail->AltBody = __("To view the message, please use an HTML compatible email viewer.", 'custom-contact-forms');
454
- $mail->CharSet = 'utf-8';
455
- $mail->MsgHTML(stripslashes($body));
456
- $mail->Send();
457
- } if (!empty($form->form_thank_you_page)) {
458
- ccf_utils::redirect($form->form_thank_you_page);
459
- }
460
- $this->current_form = $form->id;
461
- add_action('wp_footer', array(&$this, 'insertFormSuccessCode'), 1);
462
- }
463
- unset($_POST);
464
- }
465
- }
466
-
467
- function getCaptchaCode($field_object, $form_id) {
468
- $admin_options = parent::getAdminOptions();
469
- $code_type = ($admin_options['code_type'] == 'XHTML') ? ' /' : '';
470
- if (empty($field_object->field_instructions)) {
471
- $instructions = '';
472
- $tooltip_class = '';
473
- } else {
474
- $instructions = 'title="'.$field_object->field_instructions.'"';
475
- $tooltip_class = 'ccf-tooltip-field';
476
- }
477
- $out = '<img width="96" height="24" alt="' . __('Captcha image for Custom Contact Forms plugin. You must type the numbers shown in the image', 'custom-contact-forms') . '" id="captcha-image" src="' . get_bloginfo('wpurl') . '/wp-content/plugins/custom-contact-forms/image.php?fid='.$form_id.'"'.$code_type.'>
478
- <div><label for="captcha'.$form_id.'">* '.$field_object->field_label.'</label> <input class="'.$field_object->field_class.' '.$tooltip_class.'" type="text" '.$instructions.' name="captcha" id="captcha'.$form_id.'" maxlength="20"'.$code_type.'></div>';
479
- return $out;
480
- }
481
-
482
- function userCanViewForm($form_object) {
483
- if (is_user_logged_in()) {
484
- global $current_user;
485
- $user_roles = $current_user->roles;
486
- $user_role = array_shift($user_roles);
487
- } else
488
- $user_role = 'Non-Registered User';
489
- $form_access_array = parent::getFormAccessArray($form_object->form_access);
490
- return parent::formHasRole($form_access_array, $user_role);
491
- }
492
-
493
- function getStatesCode($field_object, $form_id) {
494
- ccf_utils::load_module('extra_fields/states_field.php');
495
- $req = ($field_object->field_required == 1) ? '* ' : '';
496
- $states_field = new ccf_states_field($field_object->field_class, $form_id, $field_object->field_value, $field_object->field_instructions);
497
- return "\n".'<label class="select" for="'.ccf_utils::decodeOption($field_object->field_slug, 1, 1).'">'. $req .ccf_utils::decodeOption($field_object->field_label, 1, 1).'</label>'.$states_field->getCode();
498
- }
499
-
500
- function getCountriesCode($field_object, $form_id) {
501
- ccf_utils::load_module('extra_fields/countries_field.php');
502
- $req = ($field_object->field_required == 1) ? '* ' : '';
503
- $countries_field = new ccf_countries_field($field_object->field_class, $form_id, $field_object->field_value, $field_object->field_instructions);
504
- return '<label class="select" for="'.ccf_utils::decodeOption($field_object->field_slug, 1, 1).'">'. $req .ccf_utils::decodeOption($field_object->field_label, 1, 1).'</label>' . "\n" . $countries_field->getCode();
505
- }
506
-
507
- function getDestinationEmailArray($str) {
508
- $str = str_replace(',', ';', $str);
509
- $email_array = explode(';', $str);
510
- $email_array2 = array();
511
- foreach ($email_array as $k => $v) {
512
- if (!empty($email_array[$k])) $email_array2[] = trim($v);
513
- }
514
- return $email_array2;
515
- }
516
- }
517
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
518
  ?>
1
+ <?php
2
+ /*
3
+ Custom Contact Forms Plugin
4
+ By Taylor Lovett - http://www.taylorlovett.com
5
+ Plugin URL: http://www.taylorlovett.com/wordpress-plugins
6
+ */
7
+ if (!class_exists('CustomContactFormsFront')) {
8
+ class CustomContactFormsFront extends CustomContactForms {
9
+ var $form_errors = array();
10
+ var $error_return;
11
+ var $current_form;
12
+ var $current_thank_you_message;
13
+
14
+ function frontInit() {
15
+ ccf_utils::startSession();
16
+ $this->processForms();
17
+ }
18
+
19
+ function includeDependencies() {
20
+ $admin_options = parent::getAdminOptions();
21
+ $include_defaults = false;
22
+ $include_datepicker = false;
23
+ // faster algorithm? this is in O(m*n) n = # of forms and m = # of posts
24
+ if ($admin_options['form_page_inclusion_only'] == 1) {
25
+ global $posts;
26
+ $forms = parent::selectAllForms();
27
+ $active_forms = array();
28
+ foreach ($forms as $form) {
29
+ $form_pages = parent::unserializeFormPageIds($form);
30
+ foreach ($posts as $i => $p) {
31
+ if (in_array($p->ID, $form_pages)) {
32
+ $active_forms[] = $form;
33
+ break;
34
+ }
35
+ }
36
+ }
37
+
38
+ if (!empty($active_forms)) {
39
+ $include_defaults = true;
40
+ if ($admin_options['enable_jquery'] == 1) {
41
+ foreach ($active_forms as $form) {
42
+ $fields = parent::getAttachedFieldsArray($form->id);
43
+ foreach ($fields as $fid) {
44
+ $field = parent::selectField($fid);
45
+ if ($field->field_type == 'Date') {
46
+ $include_datepicker = true;
47
+ break;
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ } else {
54
+ $include_defaults = true;
55
+ $include_datepicker = true;
56
+ }
57
+
58
+ if ($include_defaults) {
59
+ if ($admin_options['enable_jquery'] == 1) {
60
+ if ($include_datepicker) {
61
+ add_action('wp_print_styles', array(&$this, 'insertDatePickerStyles'), 1);
62
+ add_action('wp_enqueue_scripts', array(&$this, 'insertDatePickerScripts'), 1);
63
+ }
64
+ add_action('wp_enqueue_scripts', array(&$this, 'insertFrontEndScripts'), 1);
65
+ }
66
+ add_action('wp_print_styles', array(&$this, 'insertFrontEndStyles'), 1);
67
+ }
68
+ }
69
+
70
+ function insertFrontEndStyles() {
71
+ wp_register_style('CCFStandardsCSS', plugins_url() . '/custom-contact-forms/css/custom-contact-forms-standards.css');
72
+ wp_register_style('CCFFormsCSS', plugins_url() . '/custom-contact-forms/css/custom-contact-forms.css');
73
+ wp_enqueue_style('CCFStandardsCSS');
74
+ wp_enqueue_style('CCFFormsCSS');
75
+ }
76
+
77
+ function insertFrontEndScripts() {
78
+ //wp_enqueue_script('jquery');
79
+ wp_enqueue_script('jquery-tools', plugins_url() . '/custom-contact-forms/js/jquery.tools.min.js');
80
+ wp_enqueue_script('ccf-main', plugins_url() . '/custom-contact-forms/js/custom-contact-forms.js', '1.0');
81
+ }
82
+
83
+ function insertDatePickerScripts() {
84
+ //wp_enqueue_script('jquery-ui-widget'); //, plugins_url() . '/custom-contact-forms/js/jquery.ui.widget.js');
85
+ wp_enqueue_script('jquery-ui-datepicker', plugins_url() . '/custom-contact-forms/js/jquery.ui.datepicker.js', array('jquery-ui-core', 'jquery-ui-widget'));
86
+ wp_enqueue_script('ccf-datepicker', plugins_url() . '/custom-contact-forms/js/custom-contact-forms-datepicker.js', '1.0');
87
+ }
88
+
89
+ function insertDatePickerStyles() {
90
+ wp_register_style('ccf-jquery-ui', plugins_url() . '/custom-contact-forms/css/jquery-ui.css');
91
+ wp_enqueue_style('ccf-jquery-ui');
92
+ }
93
+
94
+ function setFormError($key, $message) {
95
+ $this->form_errors[$key] = $message;
96
+ }
97
+
98
+ function getFormError($key) {
99
+ return $this->form_errors[$key];
100
+ }
101
+
102
+ function getAllFormErrors() {
103
+ return $this->form_errors;
104
+ }
105
+
106
+ function shortCodeToForm($atts) {
107
+ extract(shortcode_atts(array(
108
+ 'form' => 0,
109
+ ), $atts));
110
+ $this_form = parent::selectForm($form);
111
+ if (empty($this_form)) return '';
112
+ $admin_options = parent::getAdminOptions();
113
+ if ($admin_options['enable_form_access_manager'] == 1 && !$this->userCanViewForm($this_form))
114
+ return $admin_options['default_form_bad_permissions'];
115
+
116
+ return $this->getFormCode($this_form);
117
+ }
118
+
119
+ function emptyFormErrors() {
120
+ $this->form_errors = array();
121
+ }
122
+
123
+ function contentFilter($content) {
124
+ // THIS NEEDS TO REPLACE THE SHORTCODE ONLY ONCE
125
+ $errors = $this->getAllFormErrors();
126
+ if (!empty($errors)) {
127
+ $admin_options = parent::getAdminOptions();
128
+ $out = '<div id="custom-contact-forms-errors"><p>'.$admin_options['default_form_error_header'].'</p><ul>' . "\n";
129
+ //$errors = $this->getAllFormErrors();
130
+ foreach ($errors as $error) {
131
+ $out .= '<li>'.$error.'</li>' . "\n";
132
+ }
133
+ $err_link = (!empty($this->error_return)) ? '<p><a href="'.$this->error_return.'" title="Go Back">&lt; ' . __('Go Back to Form.', 'custom-contact-forms') . '</a></p>' : '';
134
+ $this->emptyFormErrors();
135
+ return $out . '</ul>' . "\n" . $err_link . '</div>';
136
+ }
137
+ return $content;
138
+ /*
139
+ $matches = array();
140
+ preg_match_all('/\[customcontact form=([0-9]+)\]/si', $content, $matches);
141
+ $matches_count = count($matches[0]);
142
+ for ($i = 0; $i < $matches_count; $i++) {
143
+ $this_form = parent::selectForm($matches[1][$i]);
144
+ if ($this_form == false)
145
+ $form_replace = '';
146
+ if (!$this->userCanViewForm($this_form))
147
+ $form_replace = __("You don't have the proper permissions to view this form.", 'custom-contact-forms');
148
+ else
149
+ $form_replace = $this->getFormCode($this_form);
150
+ $content = str_replace($matches[0][$i], $form_replace, $content);
151
+ }
152
+ return $content;*/
153
+ }
154
+
155
+ function insertFormSuccessCode() {
156
+ $admin_options = parent::getAdminOptions();
157
+ if ($this->current_form !== 0) {
158
+ $form = parent::selectForm($this->current_form);
159
+ $success_message = (!empty($form->form_success_message)) ? $form->form_success_message : $admin_options['form_success_message'];
160
+ $success_title = (!empty($form->form_success_title)) ? $form->form_success_title : $admin_options['form_success_message_title'];
161
+ } else {
162
+ $success_title = $admin_options['form_success_message_title'];
163
+ $success_message = (empty($this->current_thank_you_message)) ? $admin_options['form_success_message'] : $this->current_thank_you_message;
164
+ } if ($form->form_style != 0) {
165
+ $style = parent::selectStyle($form->form_style);
166
+ ?>
167
+ <style type="text/css">
168
+ <!--
169
+ #ccf-form-success { z-index:10000; border-color:#<?php echo parent::formatStyle($style->success_popover_bordercolor); ?>; height:<?php $style->success_popover_height; ?>; }
170
+ #ccf-form-success div { background-color:#<?php echo parent::formatStyle($style->success_popover_bordercolor); ?>; }
171
+ #ccf-form-success div h5 { color:#<?php echo parent::formatStyle($style->success_popover_title_fontcolor); ?>; font-size:<?php echo $style->success_popover_title_fontsize; ?>; }
172
+ #ccf-form-success div a { color:#<?php echo parent::formatStyle($style->success_popover_title_fontcolor); ?>; }
173
+ #ccf-form-success p { font-size:<?php echo $style->success_popover_fontsize; ?>; color:#<?php echo parent::formatStyle($style->success_popover_fontcolor); ?>; }
174
+ -->
175
+ </style>
176
+ <?php
177
+ }
178
+ ?>
179
+ <div id="ccf-form-success">
180
+ <div>
181
+ <h5><?php echo $success_title; ?></h5>
182
+ <a href="javascript:void(0)" class="close">&times;</a>
183
+ </div>
184
+ <p><?php echo $success_message; ?></p>
185
+
186
+ </div>
187
+
188
+ <?php
189
+ }
190
+
191
+ function validEmail($email) {
192
+ if (!@preg_match("/^[^@]{1,64}@[^@]{1,255}$/", $email)) return false;
193
+ $email_array = explode("@", $email);
194
+ $local_array = explode(".", $email_array[0]);
195
+ for ($i = 0; $i < sizeof($local_array); $i++) {
196
+ if (!@preg_match("/^(([A-Za-z0-9!#$%&'*+\/=?^_`{|}~-][A-Za-z0-9!#$%&'*+\/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$/", $local_array[$i])) {
197
+ return false;
198
+ }
199
+ } if (!@preg_match("/^\[?[0-9\.]+\]?$/", $email_array[1])) {
200
+ $domain_array = explode(".", $email_array[1]);
201
+ if (sizeof($domain_array) < 2) return false;
202
+ for ($i = 0; $i < sizeof($domain_array); $i++) {
203
+ if (!@preg_match("/^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$/", $domain_array[$i])) {
204
+ return false;
205
+ }
206
+ }
207
+ }
208
+ return true;
209
+ }
210
+
211
+ function validWebsite($website) {
212
+ return preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $website);
213
+ }
214
+
215
+ function getFormCode($form, $is_widget_form = false) {
216
+ if (empty($form)) return '';
217
+ $admin_options = parent::getAdminOptions();
218
+ $form_key = time();
219
+ $out = '';
220
+ $form_styles = '';
221
+ $style_class = (!$is_widget_form) ? ' customcontactform' : ' customcontactform-sidebar';
222
+ $form_id = 'form-' . $form->id . '-'.$form_key;
223
+ if ($form->form_style != 0) {
224
+ $style = parent::selectStyle($form->form_style, '');
225
+ $style_class = $style->style_slug;
226
+ }
227
+ $form_method = (empty($form->form_method)) ? 'post' : strtolower($form->form_method);
228
+ $form_title = ccf_utils::decodeOption($form->form_title, 1, 1);
229
+ $action = (!empty($form->form_action)) ? $form->form_action : $_SERVER['REQUEST_URI'];
230
+ $out .= '<form id="'.$form_id.'" method="'.$form_method.'" action="'.$action.'" class="'.$style_class.'">' . "\n";
231
+ $out .= ccf_utils::decodeOption($form->custom_code, 1, 1) . "\n";
232
+ if (!empty($form_title) && !$is_widget_form) $out .= '<h4 id="h4-' . $form->id . '-' . $form_key . '">' . $form_title . '</h4>' . "\n";
233
+ $fields = parent::getAttachedFieldsArray($form->id);
234
+ $hiddens = '';
235
+ $code_type = ($admin_options['code_type'] == 'XHTML') ? ' /' : '';
236
+ $add_reset = '';
237
+ foreach ($fields as $field_id) {
238
+ $field = parent::selectField($field_id, '');
239
+ $req = ($field->field_required == 1 or $field->field_slug == 'ishuman') ? '* ' : '';
240
+ $req_long = ($field->field_required == 1) ? ' ' . __('(required)', 'custom-contact-forms') : '';
241
+ $input_id = 'id="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'-'.$form_key.'"';
242
+ $field_value = ccf_utils::decodeOption($field->field_value, 1, 1);
243
+ $instructions = (empty($field->field_instructions)) ? '' : 'title="' . $field->field_instructions . $req_long . '" ';
244
+ $tooltip_class = (empty($field->field_instructions)) ? '' : 'ccf-tooltip-field';
245
+ if ($admin_options['enable_widget_tooltips'] == 0 && $is_widget_form) $instructions = '';
246
+ if ($_SESSION['fields'][$field->field_slug]) {
247
+ if ($admin_options['remember_field_values'] == 1)
248
+ $field_value = $_SESSION['fields'][$field->field_slug];
249
+ } if ($field->field_slug == 'captcha') {
250
+ $out .= '<div>' . "\n" . $this->getCaptchaCode($field, $form->id) . "\n" . '</div>' . "\n";
251
+ } elseif ($field->field_slug == 'usaStates') {
252
+ $out .= '<div>' . "\n" . $this->getStatesCode($field, $form->id) . "\n" . '</div>' . "\n";
253
+ } elseif ($field->field_slug == 'allCountries') {
254
+ $out .= '<div>' . "\n" . $this->getCountriesCode($field, $form->id) . "\n" . '</div>' . "\n";
255
+ } elseif ($field->field_slug == 'resetButton') {
256
+ $add_reset = ' <input type="reset" '.$instructions.' class="reset-button '.$field->field_class.' '.$tooltip_class.'" value="' . $field->field_value . '" />';
257
+ } elseif ($field->field_type == 'Text') {
258
+ $maxlength = (empty($field->field_maxlength) or $field->field_maxlength <= 0) ? '' : ' maxlength="'.$field->field_maxlength.'"';
259
+ $out .= '<div>'."\n".'<label for="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">'. $req .ccf_utils::decodeOption($field->field_label, 1, 1).'</label>'."\n".'<input class="'.$field->field_class.' '.$tooltip_class.'" '.$instructions.' '.$input_id.' type="text" name="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'" value="'.$field_value.'"'.$maxlength.''.$code_type.'>'."\n".'</div>' . "\n";
260
+ } elseif ($field->field_type == 'Date') {
261
+ $maxlength = (empty($field->field_maxlength) or $field->field_maxlength <= 0) ? '' : ' maxlength="'.$field->field_maxlength.'"';
262
+ $out .= '<div>'."\n".'<label for="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">'. $req .ccf_utils::decodeOption($field->field_label, 1, 1).'</label>'."\n".'<input class="'.$field->field_class.' ccf-datepicker '.$tooltip_class.'" '.$instructions.' '.$input_id.' type="text" name="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'" value="'.$field_value.'"'.$maxlength.''.$code_type.'>'."\n".'</div>' . "\n";
263
+ } elseif ($field->field_type == 'Hidden') {
264
+ $hiddens .= '<input type="hidden" name="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'" value="'.$field_value.'" '.$input_id.''.$code_type.'>' . "\n";
265
+ } elseif ($field->field_type == 'Checkbox') {
266
+ $out .= '<div>'."\n".'<input class="'.$field->field_class.' '.$tooltip_class.'" '.$instructions.' type="checkbox" name="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'" value="'.ccf_utils::decodeOption($field->field_value, 1, 1).'" '.$input_id.''.$code_type.'> '."\n".'<label class="checkbox" for="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">' . $req .ccf_utils::decodeOption($field->field_label, 1, 1).'</label>'."\n".'</div>' . "\n";
267
+ } elseif ($field->field_type == 'Textarea') {
268
+ $out .= '<div>'."\n".'<label for="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">'. $req .ccf_utils::decodeOption($field->field_label, 1, 1).'</label>'."\n".'<textarea class="'.$field->field_class.' '.$tooltip_class.'" '.$instructions.' '.$input_id.' rows="5" cols="40" name="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">'.$field_value.'</textarea>'."\n".'</div>' . "\n";
269
+ } elseif ($field->field_type == 'Dropdown') {
270
+ $field_options = '';
271
+ $options = parent::getAttachedFieldOptionsArray($field->id);
272
+ foreach ($options as $option_id) {
273
+ $option = parent::selectFieldOption($option_id);
274
+ $option_sel = ($field->field_value == $option->option_slug) ? ' selected="selected"' : '';
275
+ $option_value = (!empty($option->option_value)) ? ' value="' . $option->option_value . '"' : '';
276
+ // Weird way of marking a state dead. TODO: Find another way.
277
+ $option_value = ($option->option_dead == 1) ? ' value="' . CCF_DEAD_STATE_VALUE . '"' : $option_value;
278
+ $field_options .= '<option'.$option_sel.''.$option_value.'>' . $option->option_label . '</option>' . "\n";
279
+ }
280
+ if (!empty($options)) {
281
+ if (!$is_widget_form) $out .= '<div>'."\n".'<label class="select" for="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">'. $req .ccf_utils::decodeOption($field->field_label, 1, 1).'</label>'."\n".'<select '.$instructions.' '.$input_id.' name="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'" class="'.$field->field_class.' '.$tooltip_class.'">'."\n".$field_options.'</select>'."\n".'</div>' . "\n";
282
+ else $out .= '<div>'."\n".'<label for="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">'. $req .ccf_utils::decodeOption($field->field_label, 1, 1).'</label>'."\n".'<select class="'.$field->field_class.' '.$tooltip_class.'" '.$instructions.' '.$input_id.' name="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">'."\n".$field_options.'</select>'."\n".'</div>' . "\n";
283
+ }
284
+ } elseif ($field->field_type == 'Radio') {
285
+ $field_options = '';
286
+ $options = parent::getAttachedFieldOptionsArray($field->id);
287
+ foreach ($options as $option_id) {
288
+ $option = parent::selectFieldOption($option_id);
289
+ $option_sel = ($field->field_value == $option->option_slug) ? ' checked="checked"' : '';
290
+ $field_options .= '<div><input'.$option_sel.' class="'.$field->field_class.' '.$tooltip_class.'" type="radio" '.$instructions.' name="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'" value="'.ccf_utils::decodeOption($option->option_value, 1, 1).'"'.$code_type.'> <label class="select" for="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">' . ccf_utils::decodeOption($option->option_label, 1, 1) . '</label></div>' . "\n";
291
+ }
292
+ $field_label = (!empty($field->field_label)) ? '<label for="'.ccf_utils::decodeOption($field->field_slug, 1, 1).'">'. $req .ccf_utils::decodeOption($field->field_label, 1, 1).'</label>' : '';
293
+ if (!empty($options)) $out .= '<div>'."\n".$field_label."\n".$field_options."\n".'</div>' . "\n";
294
+ }
295
+ }
296
+ $submit_text = (!empty($form->submit_button_text)) ? ccf_utils::decodeOption($form->submit_button_text, 1, 0) : 'Submit';
297
+ $out .= '<input name="form_page" value="'.$_SERVER['REQUEST_URI'].'" type="hidden"'.$code_type.'>'."\n".'<input type="hidden" name="fid" value="'.$form->id.'"'.$code_type.'>'."\n".$hiddens."\n".'<input type="submit" id="submit-' . $form->id . '-'.$form_key.'" class="submit" value="' . $submit_text . '" name="customcontactforms_submit"'.$code_type.'>';
298
+ if (!empty($add_reset)) $out .= $add_reset;
299
+ $out .= "\n" . '</form>';
300
+ if ($admin_options['author_link'] == 1) $out .= "\n".'<a style="display:none;" href="http://www.taylorlovett.com" title="Rockville Web Developer, Wordpress Plugins">Wordpress plugin expert and Maryland Web Developer Taylor Lovett</a>';
301
+
302
+ if ($form->form_style != 0) {
303
+ $no_border = array('', '0', '0px', '0%', '0pt', '0em');
304
+ $round_border = (!in_array($style->field_borderround, $no_border)) ? '-moz-border-radius:'.$style->field_borderround.'; -khtml-border-radius:'.$style->field_borderround.'; -webkit-border-radius:'.$style->field_borderround.'; ' : '';
305
+ $round_border_none = '-moz-border-radius:0px; -khtml-border-radius:0px; -webkit-border-radius:0px; ';
306
+ $form_styles .= '<style type="text/css">' . "\n";
307
+ $form_styles .= '#' . $form_id . " { width: ".$style->form_width."; text-align:left; padding:".$style->form_padding."; margin:".$style->form_margin."; border:".$style->form_borderwidth." ".$style->form_borderstyle." #".parent::formatStyle($style->form_bordercolor)."; background-color:#".parent::formatStyle($style->form_backgroundcolor)."; font-family:".$style->form_fontfamily."; } \n";
308
+ $form_styles .= '#' . $form_id . " div { margin-bottom:6px; background-color:inherit; }\n";
309
+ $form_styles .= '#' . $form_id . " div div { margin:0; background-color:inherit; padding:0; }\n";
310
+ $form_styles .= '#' . $form_id . " h4 { padding:0; background-color:inherit; margin:".$style->title_margin." ".$style->title_margin." ".$style->title_margin." 0; color:#".parent::formatStyle($style->title_fontcolor)."; font-size:".$style->title_fontsize."; } \n";
311
+ $form_styles .= '#' . $form_id . " label { padding:0; background-color:inherit; margin:".$style->label_margin." ".$style->label_margin." ".$style->label_margin." 0; display:block; color:#".parent::formatStyle($style->label_fontcolor)."; width:".$style->label_width."; font-size:".$style->label_fontsize."; } \n";
312
+ $form_styles .= '#' . $form_id . " div div input { margin-bottom:2px; line-height:normal; }\n";
313
+ $form_styles .= '#' . $form_id . " input[type=checkbox] { margin:0; }\n";
314
+ $form_styles .= '#' . $form_id . " label.checkbox, #" . $form_id . " label.radio, #" . $form_id . " label.select { display:inline; } \n";
315
+ $form_styles .= '#' . $form_id . " input[type=text], #" . $form_id . " select { ".$round_border." color:#".parent::formatStyle($style->field_fontcolor)."; margin:0; width:".$style->input_width."; font-size:".$style->field_fontsize."; background-color:#".parent::formatStyle($style->field_backgroundcolor)."; border:1px ".$style->field_borderstyle." #".parent::formatStyle($style->field_bordercolor)."; } \n";
316
+ $form_styles .= '#' . $form_id . " select { ".$round_border_none." width:".$style->dropdown_width."; }\n";
317
+ $form_styles .= '#' . $form_id . " .submit { color:#".parent::formatStyle($style->submit_fontcolor)."; width:".$style->submit_width."; height:".$style->submit_height."; font-size:".$style->submit_fontsize."; } \n";
318
+ $form_styles .= '#' . $form_id . " .reset-button { color:#".parent::formatStyle($style->submit_fontcolor)."; width:".$style->submit_width."; height:".$style->submit_height."; font-size:".$style->submit_fontsize."; } \n";
319
+ $form_styles .= '#' . $form_id . " textarea { ".$round_border." color:#".parent::formatStyle($style->field_fontcolor)."; width:".$style->textarea_width."; margin:0; background-color:#".parent::formatStyle($style->textarea_backgroundcolor)."; font-family:".$style->form_fontfamily."; height:".$style->textarea_height."; font-size:".$style->field_fontsize."; border:1px ".$style->field_borderstyle." #".parent::formatStyle($style->field_bordercolor)."; } \n";
320
+ $form_styles .= '.ccf-tooltip { background-color:#'.parent::formatStyle($style->tooltip_backgroundcolor).'; font-family:'.$style->form_fontfamily.'; font-color:#'.parent::formatStyle($style->tooltip_fontcolor).'; font-size:'.$style->tooltip_fontsize.'; }' . "\n";
321
+ $form_styles .= '</style>' . "\n";
322
+ }
323
+
324
+ return $form_styles . $out;
325
+ }
326
+
327
+ function requiredFieldsArrayFromList($list) {
328
+ if (empty($list)) return array();
329
+ $list = str_replace(' ', '', $list);
330
+ $array = explode(',', $list);
331
+ foreach ($array as $k => $v) {
332
+ if (empty($array[$k])) unset($array[$k]);
333
+ }
334
+ return $array;
335
+ }
336
+
337
+ function processForms() {
338
+ if ($_POST['ccf_customhtml'] || $_POST['customcontactforms_submit']) {
339
+ // BEGIN define common language vars
340
+ $lang = array();
341
+ $lang['field_blank'] = __('You left this field blank: ', 'custom-contact-forms');
342
+ $lang['form_page'] = __('Form Displayed on Page: ', 'custom-contact-forms');
343
+ $lang['sender_ip'] = __('Sender IP: ', 'custom-contact-forms');
344
+ // END define common language vars
345
+ } if ($_POST['ccf_customhtml']) {
346
+ $admin_options = parent::getAdminOptions();
347
+ $fixed_customhtml_fields = array('required_fields', 'success_message', 'thank_you_page', 'destination_email', 'ccf_customhtml');
348
+ $req_fields = $this->requiredFieldsArrayFromList($_POST['required_fields']);
349
+ $req_fields = array_map('trim', $req_fields);
350
+ $body = '';
351
+ foreach ($_POST as $key => $value) {
352
+ if (!in_array($key, $fixed_customhtml_fields)) {
353
+ if (in_array($key, $req_fields) && !empty($value)) {
354
+ unset($req_fields[array_search($key, $req_fields)]);
355
+ }
356
+ $body .= ucwords(str_replace('_', ' ', htmlspecialchars($key))) . ': ' . htmlspecialchars($value) . "<br /><br />\n";
357
+ $data_array[$key] = $value;
358
+ }
359
+ } foreach($req_fields as $err)
360
+ $this->setFormError($err, $lang['field_blank'] . '"' . $err . '"');
361
+ $errors = $this->getAllFormErrors();
362
+ if (empty($errors)) {
363
+ ccf_utils::load_module('export/custom-contact-forms-user-data.php');
364
+ $data_object = new CustomContactFormsUserData(array('data_array' => $data_array, 'form_page' => $_SERVER['SERVER_NAME']. $_SERVER['REQUEST_URI'], 'form_id' => 0, 'data_time' => time()));
365
+ parent::insertUserData($data_object);
366
+ $body .= "<br />\n" . htmlspecialchars($lang['form_page']) . $_SERVER['SERVER_NAME']. $_SERVER['REQUEST_URI'] . "<br />\n" . $lang['sender_ip'] . $_SERVER['REMOTE_ADDR'] . "<br />\n";
367
+ if ($admin_options['email_form_submissions'] == 1) {
368
+ if (!class_exists('PHPMailer'))
369
+ require_once(ABSPATH . "wp-includes/class-phpmailer.php");
370
+ $mail = new PHPMailer();
371
+ if ($admin_options['mail_function'] == 'smtp') {
372
+ $mail->IsSMTP();
373
+ $mail->Host = $admin_options['smtp_host'];
374
+ if ($admin_options['smtp_authentication'] == 1) {
375
+ $mail->SMTPAuth = true;
376
+ $mail->Username = $admin_options['smtp_username'];
377
+ $mail->Password = $admin_options['smtp_password'];
378
+ $mail->Port = $admin_options['smtp_port'];
379
+ } else
380
+ $mail->SMTPAuth = false;
381
+ }
382
+ $mail->From = $admin_options['default_from_email'];
383
+ $mail->FromName = 'Custom Contact Forms';
384
+ $dest_email_array = $this->getDestinationEmailArray($_POST['destination_email']);
385
+ if (empty($dest_email_array)) $mail->AddAddress($admin_options['default_to_email']);
386
+ else {
387
+ foreach ($dest_email_array as $em)
388
+ $mail->AddAddress($em);
389
+ }
390
+ $mail->Subject = $admin_options['default_form_subject'];
391
+ $mail->AltBody = "To view the message, please use an HTML compatible email viewer!";
392
+ $mail->MsgHTML(stripslashes($body));
393
+ $mail->Send();
394
+ } if ($_POST['thank_you_page']) {
395
+ ccf_utils::redirect($_POST['thank_you_page']);
396
+ }
397
+ $this->current_thank_you_message = (!empty($_POST['success_message'])) ? $_POST['success_message'] : $admin_options['form_success_message'];
398
+ $this->current_form = 0;
399
+ add_action('wp_footer', array(&$this, 'insertFormSuccessCode'), 1);
400
+ }
401
+ unset($_POST);
402
+ } elseif ($_POST['customcontactforms_submit']) {
403
+ ccf_utils::startSession();
404
+ $this->error_return = $_POST['form_page'];
405
+ $admin_options = parent::getAdminOptions();
406
+ $fields = parent::getAttachedFieldsArray($_POST['fid']);
407
+ $form = parent::selectForm($_POST['fid']);
408
+ $checks = array();
409
+ $reply = ($_POST['fixedEmail']) ? $_POST['fixedEmail'] : NULL;
410
+ $fixed_subject = ($_POST['emailSubject']) ? $_POST['emailSubject'] : NULL;
411
+ $cap_name = 'captcha_' . $_POST['fid'];
412
+ foreach ($fields as $field_id) {
413
+ $field = parent::selectField($field_id, '');
414
+ if ($field->field_slug == 'ishuman') {
415
+ if ($_POST['ishuman'] != 1) {
416
+ if (empty($field->field_error))
417
+ $this->setFormError('ishuman', __('Only humans can use this form.', 'custom-contact-forms'));
418
+ else $this->setFormError('ishuman', $field->field_error);
419
+ }
420
+ } elseif ($field->field_slug == 'captcha') {
421
+ if ($_POST['captcha'] != $_SESSION[$cap_name]) {
422
+ if (empty($field->field_error))
423
+ $this->setFormError('captcha', __('You copied the number from the captcha field incorrectly.', 'custom-contact-forms'));
424
+ else $this->setFormError('captcha', $field->field_error);
425
+ }
426
+ } elseif ($field->field_slug == 'fixedEmail' && $field->field_required == 1 && !empty($_POST['fixedEmail'])) {
427
+ if (!$this->validEmail($_POST['fixedEmail'])) {
428
+ if (empty($field->field_error))
429
+ $this->setFormError('fixedEmail', __('The email address you provided is not valid.', 'custom-contact-forms'));
430
+ else $this->setFormError('fixedEmail', $field->field_error);
431
+ }
432
+ } elseif ($field->field_slug == 'fixedWebsite' && $field->field_required == 1 && !empty($_POST['fixedWebsite'])) {
433
+ if (!$this->validWebsite($_POST['fixedWebsite'])) {
434
+ if (empty($field->field_error))
435
+ $this->setFormError('fixedWebsite', __('The website address you provided is not valid.', 'custom-contact-forms'));
436
+ else $this->setFormError('fixedWebsite', $field->field_error);
437
+ }
438
+ } else {
439
+ $field_error_label = (empty($field->field_label)) ? $field->field_slug : $field->field_label;
440
+ if ($field->field_required == 1 && !empty($_POST[$field->field_slug])) {
441
+ if ($field->field_type == 'Dropdown' || $field->field_type == 'Radio') {
442
+ // TODO: find better way to check for a dead state
443
+ if ($_POST[$field->field_slug] == CCF_DEAD_STATE_VALUE) {
444
+ if (empty($field->field_error))
445
+ $this->setFormError($field->field_slug, $lang['field_blank'] . '"'.$field_error_label.'"');
446
+ else $this->setFormError($field->field_slug, $field->field_error);
447
+ }
448
+ }
449
+ } elseif ($field->field_required == 1 && empty($_POST[$field->field_slug])) {
450
+ if (empty($field->field_error))
451
+ $this->setFormError($field->field_slug, $lang['field_blank'] . '"'.$field_error_label.'"');
452
+ else $this->setFormError($field->field_slug, $field->field_error);
453
+ }
454
+ } if ($field->field_type == 'Checkbox')
455
+ $checks[] = $field->field_slug;
456
+ }
457
+ $body = '';
458
+ $data_array = array();
459
+ foreach ($_POST as $key => $value) {
460
+ $_SESSION['fields'][$key] = $value;
461
+ $field = parent::selectField('', $key);
462
+ if (!array_key_exists($key, $GLOBALS['ccf_fixed_fields']) || $key == 'fixedEmail' || $key == 'usaStates' || $key == 'fixedWebsite'|| $key == 'emailSubject' || $key == 'allCountries') {
463
+ $mail_field_label = (empty($field->field_label)) ? $field->field_slug : $field->field_label;
464
+ $body .= htmlspecialchars($mail_field_label) . ': ' . htmlspecialchars($value) . "<br />\n";
465
+ $data_array[$key] = $value;
466
+ } if (in_array($key, $checks)) {
467
+ $checks_key = array_search($key, $checks);
468
+ unset($checks[$checks_key]);
469
+ }
470
+ } foreach ($checks as $check_key) {
471
+ $field = parent::selectField('', $check_key);
472
+ $lang['not_checked'] = __('Not Checked', 'custom-contact-forms');
473
+ $data_array[$check_key] = $lang['not_checked'];
474
+ $body .= ucwords(str_replace('_', ' ', htmlspecialchars($field->field_label))) . ': ' . $lang['not_checked'] . "\n";
475
+ }
476
+ $errors = $this->getAllFormErrors();
477
+ if (empty($errors)) {
478
+ ccf_utils::load_module('export/custom-contact-forms-user-data.php');
479
+ unset($_SESSION['captcha_' . $_POST['fid']]);
480
+ unset($_SESSION['fields']);
481
+ $data_object = new CustomContactFormsUserData(array('data_array' => $data_array, 'form_page' => $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'], 'form_id' => $form->id, 'data_time' => time()));
482
+ parent::insertUserData($data_object);
483
+ if ($admin_options['email_form_submissions'] == '1') {
484
+ $body .= "<br />\n" . htmlspecialchars($lang['form_page']) . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] . "<br />\n" . $lang['sender_ip'] . $_SERVER['REMOTE_ADDR'] . "<br />\n";
485
+ if (!class_exists('PHPMailer'))
486
+ require_once(ABSPATH . "wp-includes/class-phpmailer.php");
487
+ $mail = new PHPMailer(false);
488
+ if ($admin_options['mail_function'] == 'smtp') {
489
+ $mail->IsSMTP();
490
+ $mail->Host = $admin_options['smtp_host'];
491
+ if ($admin_options['smtp_authentication'] == 1) {
492
+ $mail->SMTPAuth = true;
493
+ $mail->Username = $admin_options['smtp_username'];
494
+ $mail->Password = $admin_options['smtp_password'];
495
+ $mail->Port = $admin_options['smtp_port'];
496
+ } else
497
+ $mail->SMTPAuth = false;
498
+ }
499
+ $dest_email_array = $this->getDestinationEmailArray($form->form_email);
500
+ $from_name = (empty($admin_options['default_from_name'])) ? __('Custom Contact Forms', 'custom-contact-forms') : $admin_options['default_from_name'];
501
+ if (!empty($form->form_email_name)) $from_name = $form->form_email_name;
502
+ if (empty($dest_email_array)) $mail->AddAddress($admin_options['default_to_email']);
503
+ else {
504
+ foreach ($dest_email_array as $em)
505
+ $mail->AddAddress($em);
506
+ }
507
+ if ($reply != NULL && $this->validEmail($reply))
508
+ $mail->From = $reply;
509
+ else
510
+ $mail->From = $admin_options['default_from_email'];
511
+ $mail->FromName = $from_name;
512
+ $mail->Subject = (!empty($form->form_email_subject)) ? $form->form_email_subject : $admin_options['default_form_subject'];
513
+ if ($fixed_subject != NULL) $mail->Subject = $fixed_subject;
514
+ $mail->AltBody = __("To view the message, please use an HTML compatible email viewer.", 'custom-contact-forms');
515
+ $mail->CharSet = 'utf-8';
516
+ $mail->MsgHTML(stripslashes($body));
517
+ $mail->Send();
518
+ } if (!empty($form->form_thank_you_page)) {
519
+ ccf_utils::redirect($form->form_thank_you_page);
520
+ }
521
+ $this->current_form = $form->id;
522
+ add_action('wp_footer', array(&$this, 'insertFormSuccessCode'), 1);
523
+ }
524
+ unset($_POST);
525
+ }
526
+ }
527
+
528
+ function getCaptchaCode($field_object, $form_id) {
529
+ $admin_options = parent::getAdminOptions();
530
+ $code_type = ($admin_options['code_type'] == 'XHTML') ? ' /' : '';
531
+ if (empty($field_object->field_instructions)) {
532
+ $instructions = '';
533
+ $tooltip_class = '';
534
+ } else {
535
+ $instructions = 'title="'.$field_object->field_instructions.'"';
536
+ $tooltip_class = 'ccf-tooltip-field';
537
+ }
538
+ $out = '<img width="96" height="24" alt="' . __('Captcha image for Custom Contact Forms plugin. You must type the numbers shown in the image', 'custom-contact-forms') . '" id="captcha-image" src="' . get_bloginfo('wpurl') . '/wp-content/plugins/custom-contact-forms/image.php?fid='.$form_id.'"'.$code_type.'>
539
+ <div><label for="captcha'.$form_id.'">* '.$field_object->field_label.'</label> <input class="'.$field_object->field_class.' '.$tooltip_class.'" type="text" '.$instructions.' name="captcha" id="captcha'.$form_id.'" maxlength="20"'.$code_type.'></div>';
540
+ return $out;
541
+ }
542
+
543
+ function userCanViewForm($form_object) {
544
+ if (is_user_logged_in()) {
545
+ global $current_user;
546
+ $user_roles = $current_user->roles;
547
+ $user_role = array_shift($user_roles);
548
+ } else
549
+ $user_role = 'Non-Registered User';
550
+ $form_access_array = parent::getFormAccessArray($form_object->form_access);
551
+ return parent::formHasRole($form_access_array, $user_role);
552
+ }
553
+
554
+ function getStatesCode($field_object, $form_id) {
555
+ ccf_utils::load_module('extra_fields/states_field.php');
556
+ $req = ($field_object->field_required == 1) ? '* ' : '';
557
+ $states_field = new ccf_states_field($field_object->field_class, $form_id, $field_object->field_value, $field_object->field_instructions);
558
+ return "\n".'<label class="select" for="'.ccf_utils::decodeOption($field_object->field_slug, 1, 1).'">'. $req .ccf_utils::decodeOption($field_object->field_label, 1, 1).'</label>'.$states_field->getCode();
559
+ }
560
+
561
+ function getDatePickerCode($field_object, $form_id, $xhtml_code) {
562
+ ccf_utils::load_module('extra_fields/date_field.php');
563
+ $req = ($field_object->field_required == 1) ? '* ' : '';
564
+ $date_field = new ccf_date_field($field_object->field_class, $form_id, $field_object->field_value, $field_object->field_instructions, $xhtml_code);
565
+ return "\n".'<label for="'.ccf_utils::decodeOption($field_object->field_slug, 1, 1).'">'. $req .ccf_utils::decodeOption($field_object->field_label, 1, 1).'</label>'.$date_field->getCode();
566
+ }
567
+
568
+ function getCountriesCode($field_object, $form_id) {
569
+ ccf_utils::load_module('extra_fields/countries_field.php');
570
+ $req = ($field_object->field_required == 1) ? '* ' : '';
571
+ $countries_field = new ccf_countries_field($field_object->field_class, $form_id, $field_object->field_value, $field_object->field_instructions);
572
+ return '<label class="select" for="'.ccf_utils::decodeOption($field_object->field_slug, 1, 1).'">'. $req .ccf_utils::decodeOption($field_object->field_label, 1, 1).'</label>' . "\n" . $countries_field->getCode();
573
+ }
574
+
575
+ function getDestinationEmailArray($str) {
576
+ $str = str_replace(',', ';', $str);
577
+ $email_array = explode(';', $str);
578
+ $email_array2 = array();
579
+ foreach ($email_array as $k => $v) {
580
+ if (!empty($email_array[$k])) $email_array2[] = trim($v);
581
+ }
582
+ return $email_array2;
583
+ }
584
+ }
585
+ }
586
  ?>
custom-contact-forms.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Custom Contact Forms
4
  Plugin URI: http://taylorlovett.com/wordpress-plugins
5
  Description: Guaranteed to be 1000X more customizable and intuitive than Fast Secure Contact Forms or Contact Form 7. Customize every aspect of your forms without any knowledge of CSS: borders, padding, sizes, colors. Ton's of great features. Required fields, form submissions saved to database, captchas, tooltip popovers, unlimited fields/forms/form styles, import/export, use a custom thank you page or built-in popover with a custom success message set for each form.
6
- Version: 4.5.3.2
7
  Author: Taylor Lovett
8
  Author URI: http://www.taylorlovett.com
9
  */
@@ -53,7 +53,7 @@ if (!class_exists('CustomContactForms')) {
53
  $customcontactAdminOptions = array('show_widget_home' => 1, 'show_widget_pages' => 1, 'show_widget_singles' => 1, 'show_widget_categories' => 1, 'show_widget_archives' => 1, 'default_to_email' => $admin_email, 'default_from_email' => $admin_email, 'default_from_name' => 'Custom Contact Forms', 'default_form_subject' => __('Someone Filled Out Your Contact Form!', 'custom-contact-forms'),
54
  'remember_field_values' => 0, 'author_link' => 1, 'enable_widget_tooltips' => 1, 'mail_function' => 'default', 'form_success_message_title' => __('Successful Form Submission', 'custom-contact-forms'), 'form_success_message' => __('Thank you for filling out our web form. We will get back to you ASAP.', 'custom-contact-forms'), 'enable_jquery' => 1, 'code_type' => 'XHTML',
55
  'show_install_popover' => 0, 'email_form_submissions' => 1, 'enable_dashboard_widget' => 1, 'admin_ajax' => 1, 'smtp_host' => '', 'smtp_encryption' => 'none', 'smtp_authentication' => 0, 'smtp_username' => '', 'smtp_password' => '', 'smtp_port' => '', 'default_form_error_header' => __('You filled out the form incorrectly.', 'custom-contact-forms'),
56
- 'default_form_bad_permissions' => __("You don't have the proper permissions to view this form.", 'custom-contact-forms'), 'enable_form_access_manager' => 0, 'dashboard_access' => 2); // default general settings
57
  $customcontactOptions = get_option($this->getAdminOptionsName());
58
  if (!empty($customcontactOptions)) {
59
  foreach ($customcontactOptions as $key => $option)
@@ -81,8 +81,9 @@ if (!is_admin()) { /* is front */
81
  }
82
  }
83
  add_action('init', array(&$custom_contact_front, 'frontInit'), 1);
84
- add_action('wp_enqueue_scripts', array(&$custom_contact_front, 'insertFrontEndScripts'), 1);
85
- add_action('wp_print_styles', array(&$custom_contact_front, 'insertFrontEndStyles'), 1);
 
86
  add_shortcode('customcontact', array(&$custom_contact_front, 'shortCodeToForm'));
87
 
88
  add_filter('the_content', array(&$custom_contact_front, 'contentFilter'));
3
  Plugin Name: Custom Contact Forms
4
  Plugin URI: http://taylorlovett.com/wordpress-plugins
5
  Description: Guaranteed to be 1000X more customizable and intuitive than Fast Secure Contact Forms or Contact Form 7. Customize every aspect of your forms without any knowledge of CSS: borders, padding, sizes, colors. Ton's of great features. Required fields, form submissions saved to database, captchas, tooltip popovers, unlimited fields/forms/form styles, import/export, use a custom thank you page or built-in popover with a custom success message set for each form.
6
+ Version: 4.6.0.0
7
  Author: Taylor Lovett
8
  Author URI: http://www.taylorlovett.com
9
  */
53
  $customcontactAdminOptions = array('show_widget_home' => 1, 'show_widget_pages' => 1, 'show_widget_singles' => 1, 'show_widget_categories' => 1, 'show_widget_archives' => 1, 'default_to_email' => $admin_email, 'default_from_email' => $admin_email, 'default_from_name' => 'Custom Contact Forms', 'default_form_subject' => __('Someone Filled Out Your Contact Form!', 'custom-contact-forms'),
54
  'remember_field_values' => 0, 'author_link' => 1, 'enable_widget_tooltips' => 1, 'mail_function' => 'default', 'form_success_message_title' => __('Successful Form Submission', 'custom-contact-forms'), 'form_success_message' => __('Thank you for filling out our web form. We will get back to you ASAP.', 'custom-contact-forms'), 'enable_jquery' => 1, 'code_type' => 'XHTML',
55
  'show_install_popover' => 0, 'email_form_submissions' => 1, 'enable_dashboard_widget' => 1, 'admin_ajax' => 1, 'smtp_host' => '', 'smtp_encryption' => 'none', 'smtp_authentication' => 0, 'smtp_username' => '', 'smtp_password' => '', 'smtp_port' => '', 'default_form_error_header' => __('You filled out the form incorrectly.', 'custom-contact-forms'),
56
+ 'default_form_bad_permissions' => __("You don't have the proper permissions to view this form.", 'custom-contact-forms'), 'enable_form_access_manager' => 0, 'dashboard_access' => 2, 'form_page_inclusion_only' => 0); // default general settings
57
  $customcontactOptions = get_option($this->getAdminOptionsName());
58
  if (!empty($customcontactOptions)) {
59
  foreach ($customcontactOptions as $key => $option)
81
  }
82
  }
83
  add_action('init', array(&$custom_contact_front, 'frontInit'), 1);
84
+ add_action('template_redirect', array(&$custom_contact_front, 'includeDependencies'), 1);
85
+ //add_action('wp_enqueue_scripts', array(&$custom_contact_front, 'insertFrontEndScripts'), 1);
86
+ //add_action('wp_print_styles', array(&$custom_contact_front, 'insertFrontEndStyles'), 1);
87
  add_shortcode('customcontact', array(&$custom_contact_front, 'shortCodeToForm'));
88
 
89
  add_filter('the_content', array(&$custom_contact_front, 'contentFilter'));
js/custom-contact-forms-datepicker.js ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ // JavaScript Document
2
+ $m = jQuery.noConflict();
3
+ $m(document).ready(function(){
4
+ $m(".ccf-datepicker").datepicker();
5
+ });
js/custom-contact-forms.js CHANGED
@@ -1,35 +1,35 @@
1
- // Custom Contact Forms plugin javascript
2
- $j = jQuery.noConflict();
3
- $j(document).ready(function(){
4
- $j('<a></a>')
5
- .addClass('ccf-popover-close')
6
- .html('[close]')
7
- .prependTo('.ccf-popover');
8
- $j('.ccf-popover').css({'padding' : '10px 14px 10px 10px'});
9
- $j("a#in").click(function(){
10
- var sel = ".ccf-popover" + cid;
11
- $j(".ccf-popover1").fadeIn();
12
-
13
- });
14
- $j(".ccf-popover-close").click(function(){
15
- $j(".ccf-popover").hide();
16
- });
17
- $j('.show-field-instructions').click(function() {
18
-
19
- });
20
-
21
- $j(".ccf-tooltip-field").tooltip({
22
- position: "center right",
23
- offset: [-2, 10],
24
- effect: "fade",
25
- opacity: 0.7,
26
- tipClass: 'ccf-tooltip'
27
-
28
- });
29
-
30
- $j("#ccf-form-success").delay(500).fadeIn('slow');
31
- $j("#ccf-form-success .close").click(function() {
32
- $j("#ccf-form-success").fadeOut();
33
- });
34
-
35
  });
1
+ // Custom Contact Forms plugin javascript
2
+ $j = jQuery.noConflict();
3
+ $j(document).ready(function(){
4
+ $j('<a></a>')
5
+ .addClass('ccf-popover-close')
6
+ .html('[close]')
7
+ .prependTo('.ccf-popover');
8
+ $j('.ccf-popover').css({'padding' : '10px 14px 10px 10px'});
9
+ $j("a#in").click(function(){
10
+ var sel = ".ccf-popover" + cid;
11
+ $j(".ccf-popover1").fadeIn();
12
+
13
+ });
14
+ $j(".ccf-popover-close").click(function(){
15
+ $j(".ccf-popover").hide();
16
+ });
17
+ $j('.show-field-instructions').click(function() {
18
+
19
+ });
20
+
21
+ $j(".ccf-tooltip-field").tooltip({
22
+ position: "center right",
23
+ offset: [-2, 10],
24
+ effect: "fade",
25
+ opacity: 0.7,
26
+ tipClass: 'ccf-tooltip'
27
+
28
+ });
29
+
30
+ $j("#ccf-form-success").delay(500).fadeIn('slow');
31
+ $j("#ccf-form-success .close").click(function() {
32
+ $j("#ccf-form-success").fadeOut();
33
+ });
34
+
35
  });
lang/custom-contact-forms.mo CHANGED
Binary file
lang/custom-contact-forms.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: custom-contact-forms\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2011-05-23 10:56-0500\n"
6
- "PO-Revision-Date: 2011-05-23 10:57-0500\n"
7
  "Last-Translator: Taylor Lovett <admin@taylorlovett.com>\n"
8
  "Language-Team: TaylorLovett.com <admin@taylorlovett.com>\n"
9
  "MIME-Version: 1.0\n"
@@ -21,21 +21,21 @@ msgstr ""
21
  "X-Poedit-SearchPath-5: ../modules/widget\n"
22
 
23
  #: ../custom-contact-forms-admin.php:345
24
- #: ../custom-contact-forms-admin.php:1858
25
- #: ../custom-contact-forms-admin.php:2000
26
  msgid "Custom Contact Forms"
27
  msgstr ""
28
 
29
  #: ../custom-contact-forms-admin.php:347
30
- #: ../custom-contact-forms-admin.php:1860
31
- #: ../custom-contact-forms-admin.php:2002
32
  #: ../modules/usage_popover/custom-contact-forms-quick-start-popover.php:1
33
  msgid "Quick Start Guide"
34
  msgstr ""
35
 
36
  #: ../custom-contact-forms-admin.php:348
37
- #: ../custom-contact-forms-admin.php:1861
38
- #: ../custom-contact-forms-admin.php:2003
39
  msgid "Plugin Usage Manual"
40
  msgstr ""
41
 
@@ -52,12 +52,12 @@ msgid "Manage Fields"
52
  msgstr ""
53
 
54
  #: ../custom-contact-forms-admin.php:354
55
- #: ../custom-contact-forms-admin.php:759
56
  msgid "Manage Fixed Fields"
57
  msgstr ""
58
 
59
  #: ../custom-contact-forms-admin.php:355
60
- #: ../custom-contact-forms-admin.php:991
61
  msgid "Manage Forms"
62
  msgstr ""
63
 
@@ -70,21 +70,22 @@ msgid "Manage Styles"
70
  msgstr ""
71
 
72
  #: ../custom-contact-forms-admin.php:358
73
- #: ../custom-contact-forms-admin.php:871
74
  msgid "Manage Field Options"
75
  msgstr ""
76
 
77
  #: ../custom-contact-forms-admin.php:359
78
- #: ../custom-contact-forms-admin.php:1776
79
  msgid "Suggest a Feature"
80
  msgstr ""
81
 
82
  #: ../custom-contact-forms-admin.php:360
83
- #: ../custom-contact-forms-admin.php:1773
84
  msgid "Bug Report"
85
  msgstr ""
86
 
87
  #: ../custom-contact-forms-admin.php:361
 
88
  msgid "Custom HTML Forms"
89
  msgstr ""
90
 
@@ -129,939 +130,973 @@ msgid "This is just a unique way for CCF to refer to your field. Must be unique
129
  msgstr ""
130
 
131
  #: ../custom-contact-forms-admin.php:405
 
132
  msgid "Field Label:"
133
  msgstr ""
134
 
135
  #: ../custom-contact-forms-admin.php:409
 
136
  msgid "The field label is displayed next to the field and is visible to the user."
137
  msgstr ""
138
 
139
  #: ../custom-contact-forms-admin.php:413
 
140
  msgid "Field Type:"
141
  msgstr ""
142
 
143
- #: ../custom-contact-forms-admin.php:426
 
144
  msgid "Initial Value:"
145
  msgstr ""
146
 
147
- #: ../custom-contact-forms-admin.php:431
148
  msgid ""
149
  "This is the initial value of the field. If you set the type as checkbox, it is recommend you set this to what the checkbox is implying. For example if I were creating the checkbox \n"
150
  "\t\t\t\t\t\t'Are you human?', I would set the initial value to 'Yes'."
151
  msgstr ""
152
 
153
- #: ../custom-contact-forms-admin.php:433
154
  msgid "If you set the field type as 'Dropdown' or 'Radio', you should enter the slug of the"
155
  msgstr ""
156
 
157
- #: ../custom-contact-forms-admin.php:434
158
  msgid "Create a Field Option"
159
  msgstr ""
160
 
161
- #: ../custom-contact-forms-admin.php:434
162
  msgid "field option"
163
  msgstr ""
164
 
165
- #: ../custom-contact-forms-admin.php:435
166
  msgid "you would like initially selected."
167
  msgstr ""
168
 
169
- #: ../custom-contact-forms-admin.php:439
 
170
  msgid "Max Length:"
171
  msgstr ""
172
 
173
- #: ../custom-contact-forms-admin.php:443
174
  msgid "0 for no limit; only applies to Text fields"
175
  msgstr ""
176
 
177
- #: ../custom-contact-forms-admin.php:447
 
178
  msgid "Required Field:"
179
  msgstr ""
180
 
181
- #: ../custom-contact-forms-admin.php:451
182
- #: ../custom-contact-forms-admin.php:649
183
- #: ../custom-contact-forms-admin.php:804
184
- #: ../custom-contact-forms-admin.php:911
185
- #: ../custom-contact-forms-admin.php:968
186
- #: ../custom-contact-forms-admin.php:2043
187
- #: ../custom-contact-forms-admin.php:2174
188
- #: ../custom-contact-forms-admin.php:2206
 
189
  msgid "No"
190
  msgstr ""
191
 
192
- #: ../custom-contact-forms-admin.php:454
193
- #: ../custom-contact-forms-admin.php:646
194
- #: ../custom-contact-forms-admin.php:801
195
- #: ../custom-contact-forms-admin.php:811
196
- #: ../custom-contact-forms-admin.php:911
197
- #: ../custom-contact-forms-admin.php:968
198
- #: ../custom-contact-forms-admin.php:2040
199
- #: ../custom-contact-forms-admin.php:2171
200
- #: ../custom-contact-forms-admin.php:2203
 
201
  msgid "Yes"
202
  msgstr ""
203
 
204
- #: ../custom-contact-forms-admin.php:458
205
  msgid "If a field is required and a user leaves it blank, the plugin will display an error message (which you can customize using 'Field Error') explaining the problem."
206
  msgstr ""
207
 
208
- #: ../custom-contact-forms-admin.php:462
209
- #: ../custom-contact-forms-admin.php:668
210
- #: ../custom-contact-forms-admin.php:833
 
211
  msgid "Field Instructions:"
212
  msgstr ""
213
 
214
- #: ../custom-contact-forms-admin.php:466
215
- #: ../custom-contact-forms-admin.php:666
216
- #: ../custom-contact-forms-admin.php:831
217
  msgid "If this is filled out, a tooltip popover displaying this text will show when the field is selected."
218
  msgstr ""
219
 
220
- #: ../custom-contact-forms-admin.php:470
221
- #: ../custom-contact-forms-admin.php:673
222
- #: ../custom-contact-forms-admin.php:827
223
  msgid "Field Class:"
224
  msgstr ""
225
 
226
- #: ../custom-contact-forms-admin.php:474
227
  msgid "If you manage your own .css stylesheet, you can use this to attach a class to this field. Leaving this blank will do nothing."
228
  msgstr ""
229
 
230
- #: ../custom-contact-forms-admin.php:478
231
- #: ../custom-contact-forms-admin.php:678
232
- #: ../custom-contact-forms-admin.php:838
 
233
  msgid "Field Error:"
234
  msgstr ""
235
 
236
- #: ../custom-contact-forms-admin.php:482
 
237
  msgid "If a user leaves this field blank and the field is required, this error message will be shown. A generic default will show if left blank."
238
  msgstr ""
239
 
240
- #: ../custom-contact-forms-admin.php:487
241
  msgid "Create Field"
242
  msgstr ""
243
 
244
- #: ../custom-contact-forms-admin.php:489
245
  msgid "If this is a dropdown or radio field, you should go to the field manager below to attach field options after you create it."
246
  msgstr ""
247
 
248
- #: ../custom-contact-forms-admin.php:498
249
  msgid "Create A Form"
250
  msgstr ""
251
 
252
- #: ../custom-contact-forms-admin.php:505
253
  msgid "Form Slug:"
254
  msgstr ""
255
 
256
- #: ../custom-contact-forms-admin.php:509
257
  msgid "This is just a unique way for CCF to refer to your form. Must be unique from other slugs and contain only underscores and alphanumeric characters."
258
  msgstr ""
259
 
260
- #: ../custom-contact-forms-admin.php:513
 
261
  msgid "Form Title:"
262
  msgstr ""
263
 
264
- #: ../custom-contact-forms-admin.php:516
265
  msgid "This text is displayed above the form as the heading."
266
  msgstr ""
267
 
268
- #: ../custom-contact-forms-admin.php:520
 
269
  msgid "Form Style:"
270
  msgstr ""
271
 
272
- #: ../custom-contact-forms-admin.php:525
273
  msgid "Click to create a style"
274
  msgstr ""
275
 
276
- #: ../custom-contact-forms-admin.php:528
 
277
  msgid "Submit Button Text:"
278
  msgstr ""
279
 
280
- #: ../custom-contact-forms-admin.php:534
 
281
  msgid "Form Destination Email:"
282
  msgstr ""
283
 
284
- #: ../custom-contact-forms-admin.php:538
285
  msgid "Will receive all submissions from this form; if left blank it will use the default specified in general settings."
286
  msgstr ""
287
 
288
- #: ../custom-contact-forms-admin.php:542
289
  msgid "Form Email Subject:"
290
  msgstr ""
291
 
292
- #: ../custom-contact-forms-admin.php:546
293
  msgid "When submitted and configured accordingly, the form will send an email with this subject."
294
  msgstr ""
295
 
296
- #: ../custom-contact-forms-admin.php:550
297
  msgid "Form Email Name:"
298
  msgstr ""
299
 
300
- #: ../custom-contact-forms-admin.php:554
301
  msgid "When submitted and configured accordingly, the form will send an email with this as the email 'from name'."
302
  msgstr ""
303
 
304
- #: ../custom-contact-forms-admin.php:558
 
305
  msgid "Form Success Message:"
306
  msgstr ""
307
 
308
- #: ../custom-contact-forms-admin.php:562
309
- #: ../custom-contact-forms-admin.php:570
 
310
  msgid "Will be displayed in a popover when the form is filled out successfully when no custom success page is specified; if left blank it will use the default specified in general settings."
311
  msgstr ""
312
 
313
- #: ../custom-contact-forms-admin.php:566
 
314
  msgid "Form Success Message Title:"
315
  msgstr ""
316
 
317
- #: ../custom-contact-forms-admin.php:574
 
318
  msgid "Custom Success URL:"
319
  msgstr ""
320
 
321
- #: ../custom-contact-forms-admin.php:578
322
  msgid "If this is filled out, users will be sent to this page when they successfully fill out this form. If it is left blank, a popover showing the form's 'success message' will be displayed on form success."
323
  msgstr ""
324
 
325
- #: ../custom-contact-forms-admin.php:581
326
  msgid "Who Can View This Form:"
327
  msgstr ""
328
 
329
- #: ../custom-contact-forms-admin.php:597
330
  msgid "Choose which types of users should be able to view this form."
331
  msgstr ""
332
 
333
- #: ../custom-contact-forms-admin.php:601
334
  msgid "Create Form"
335
  msgstr ""
336
 
337
- #: ../custom-contact-forms-admin.php:603
338
  msgid "You should go to the form manager below to attach fields to this form after you create it."
339
  msgstr ""
340
 
341
- #: ../custom-contact-forms-admin.php:610
342
  msgid "Manage User Fields"
343
  msgstr ""
344
 
345
- #: ../custom-contact-forms-admin.php:617
346
- #: ../custom-contact-forms-admin.php:741
347
- #: ../custom-contact-forms-admin.php:766
348
- #: ../custom-contact-forms-admin.php:853
349
- #: ../custom-contact-forms-admin.php:880
350
- #: ../custom-contact-forms-admin.php:889
351
- #: ../custom-contact-forms-admin.php:999
352
- #: ../custom-contact-forms-admin.php:1148
353
- msgid "Slug"
354
- msgstr ""
355
-
356
  #: ../custom-contact-forms-admin.php:618
357
  #: ../custom-contact-forms-admin.php:742
358
  #: ../custom-contact-forms-admin.php:767
359
  #: ../custom-contact-forms-admin.php:854
360
  #: ../custom-contact-forms-admin.php:881
361
  #: ../custom-contact-forms-admin.php:890
362
- msgid "Label"
 
 
363
  msgstr ""
364
 
365
  #: ../custom-contact-forms-admin.php:619
366
  #: ../custom-contact-forms-admin.php:743
367
  #: ../custom-contact-forms-admin.php:768
368
  #: ../custom-contact-forms-admin.php:855
369
- msgid "Type"
 
 
370
  msgstr ""
371
 
372
  #: ../custom-contact-forms-admin.php:620
373
  #: ../custom-contact-forms-admin.php:744
374
  #: ../custom-contact-forms-admin.php:769
375
  #: ../custom-contact-forms-admin.php:856
376
- msgid "Initial Value"
377
  msgstr ""
378
 
379
  #: ../custom-contact-forms-admin.php:621
380
  #: ../custom-contact-forms-admin.php:745
381
  #: ../custom-contact-forms-admin.php:770
382
  #: ../custom-contact-forms-admin.php:857
383
- msgid "Required"
384
  msgstr ""
385
 
386
  #: ../custom-contact-forms-admin.php:622
387
  #: ../custom-contact-forms-admin.php:746
388
  #: ../custom-contact-forms-admin.php:771
389
  #: ../custom-contact-forms-admin.php:858
 
 
 
 
 
 
 
390
  msgid "Maxlength"
391
  msgstr ""
392
 
393
- #: ../custom-contact-forms-admin.php:671
394
- #: ../custom-contact-forms-admin.php:826
395
  msgid "If you manage a .CSS file for your theme, you could create a class in that file and add it to this field. If the form attaching this field is using a \"Form Style\" other than the default, styles inherited from the \"Field Class\" might be overwritten."
396
  msgstr ""
397
 
398
- #: ../custom-contact-forms-admin.php:676
399
- #: ../custom-contact-forms-admin.php:836
400
  msgid "This lets you customize the error message displayed when this field is required and left blank."
401
  msgstr ""
402
 
403
- #: ../custom-contact-forms-admin.php:708
404
  msgid "Detach field options you"
405
  msgstr ""
406
 
407
- #: ../custom-contact-forms-admin.php:710
408
- #: ../custom-contact-forms-admin.php:1127
409
  msgid "create"
410
  msgstr ""
411
 
412
- #: ../custom-contact-forms-admin.php:727
413
  msgid "Attach field options in the order you want them to display."
414
  msgstr ""
415
 
416
- #: ../custom-contact-forms-admin.php:752
417
- #: ../custom-contact-forms-admin.php:864
418
- #: ../custom-contact-forms-admin.php:927
419
- #: ../custom-contact-forms-admin.php:1160
420
- #: ../custom-contact-forms-admin.php:1730
421
- #: ../custom-contact-forms-admin.php:1954
422
- msgid "Bulk Actions"
423
- msgstr ""
424
-
425
  #: ../custom-contact-forms-admin.php:753
426
  #: ../custom-contact-forms-admin.php:865
427
  #: ../custom-contact-forms-admin.php:928
428
- #: ../custom-contact-forms-admin.php:1161
429
- #: ../custom-contact-forms-admin.php:1731
430
- msgid "Save"
 
431
  msgstr ""
432
 
433
  #: ../custom-contact-forms-admin.php:754
 
434
  #: ../custom-contact-forms-admin.php:929
435
- #: ../custom-contact-forms-admin.php:1162
436
- #: ../custom-contact-forms-admin.php:1732
437
- #: ../custom-contact-forms-admin.php:1955
438
- msgid "Delete"
439
  msgstr ""
440
 
441
  #: ../custom-contact-forms-admin.php:755
442
- #: ../custom-contact-forms-admin.php:866
443
  #: ../custom-contact-forms-admin.php:930
444
- #: ../custom-contact-forms-admin.php:1163
445
- #: ../custom-contact-forms-admin.php:1733
446
- #: ../custom-contact-forms-admin.php:1956
 
 
 
 
 
 
 
 
 
447
  msgid "Apply"
448
  msgstr ""
449
 
450
- #: ../custom-contact-forms-admin.php:787
451
- #: ../custom-contact-forms-admin.php:818
452
- #: ../custom-contact-forms-admin.php:2313
453
  msgid "None"
454
  msgstr ""
455
 
456
- #: ../custom-contact-forms-admin.php:882
457
- #: ../custom-contact-forms-admin.php:891
458
  msgid "Value"
459
  msgstr ""
460
 
461
- #: ../custom-contact-forms-admin.php:883
462
- #: ../custom-contact-forms-admin.php:892
463
  msgid "Is Dead"
464
  msgstr ""
465
 
466
- #: ../custom-contact-forms-admin.php:919
467
  msgid "No field options have been created."
468
  msgstr ""
469
 
470
- #: ../custom-contact-forms-admin.php:937
471
  msgid "Create A Field Option"
472
  msgstr ""
473
 
474
- #: ../custom-contact-forms-admin.php:944
475
  msgid "Option Slug:"
476
  msgstr ""
477
 
478
- #: ../custom-contact-forms-admin.php:948
479
  msgid "Used to identify this option, solely for admin purposes; must be unique, and contain only letters, numbers, and underscores. Example: 'slug_one'"
480
  msgstr ""
481
 
482
- #: ../custom-contact-forms-admin.php:952
 
483
  msgid "Option Label:"
484
  msgstr ""
485
 
486
- #: ../custom-contact-forms-admin.php:956
487
  msgid "This is what is shown to the user in the dropdown or radio field. Example: 'United States'"
488
  msgstr ""
489
 
490
- #: ../custom-contact-forms-admin.php:960
 
491
  msgid "Option Value:"
492
  msgstr ""
493
 
494
- #: ../custom-contact-forms-admin.php:962
495
  msgid "This is the actual value of the option which is not shown to the user. This can be the same thing as the label. An example pairing of label => value is: 'The color green' => 'green' or 'Yes' => '1'."
496
  msgstr ""
497
 
498
- #: ../custom-contact-forms-admin.php:964
499
  msgid "This is the actual value of the option which is not shown to the user. This can be the same thing as the label. An example pairing of label => value is: \"The color green\" => \"green\" or \"Yes\" => \"1\"."
500
  msgstr ""
501
 
502
- #: ../custom-contact-forms-admin.php:967
 
503
  msgid "Is Dead Option:"
504
  msgstr ""
505
 
506
- #: ../custom-contact-forms-admin.php:969
507
  msgid "A dead option is something like 'Please Select One'. This is a useful tool for required dropdown fields. If a dead option is submitted by a user for a required dropdown field, then the user will have to go back and fill out the field again."
508
  msgstr ""
509
 
510
- #: ../custom-contact-forms-admin.php:973
511
  msgid "Create Field Option"
512
  msgstr ""
513
 
514
- #: ../custom-contact-forms-admin.php:983
515
  msgid "Rate This Plugin"
516
  msgstr ""
517
 
518
- #: ../custom-contact-forms-admin.php:984
519
  msgid "We need your help to continue development! Please <span>rate this plugin</span> to show your support."
520
  msgstr ""
521
 
522
- #: ../custom-contact-forms-admin.php:998
523
  msgid "Form Display Code"
524
  msgstr ""
525
 
526
- #: ../custom-contact-forms-admin.php:1000
527
- #: ../custom-contact-forms-admin.php:1149
528
  msgid "Destination Email"
529
  msgstr ""
530
 
531
- #: ../custom-contact-forms-admin.php:1001
532
- #: ../custom-contact-forms-admin.php:1150
533
  msgid "Title"
534
  msgstr ""
535
 
536
- #: ../custom-contact-forms-admin.php:1002
537
- #: ../custom-contact-forms-admin.php:1151
538
  msgid "Button Text"
539
  msgstr ""
540
 
541
- #: ../custom-contact-forms-admin.php:1003
542
- #: ../custom-contact-forms-admin.php:1152
543
  msgid "Style"
544
  msgstr ""
545
 
546
- #: ../custom-contact-forms-admin.php:1036
547
  msgid "Method"
548
  msgstr ""
549
 
550
- #: ../custom-contact-forms-admin.php:1037
551
  msgid "Form Action"
552
  msgstr ""
553
 
554
- #: ../custom-contact-forms-admin.php:1038
555
  msgid "Email Subject"
556
  msgstr ""
557
 
558
- #: ../custom-contact-forms-admin.php:1039
559
  msgid "Email From Name"
560
  msgstr ""
561
 
562
- #: ../custom-contact-forms-admin.php:1040
563
  msgid "Success Message Title"
564
  msgstr ""
565
 
566
- #: ../custom-contact-forms-admin.php:1041
567
  msgid "Success Message"
568
  msgstr ""
569
 
570
- #: ../custom-contact-forms-admin.php:1042
571
  msgid "Custom Success URL"
572
  msgstr ""
573
 
574
- #: ../custom-contact-forms-admin.php:1045
575
  msgid "The Form Method is the method by which information is transfer through your form. If you aren't an expert with HTML and PHP, leave this as Post."
576
  msgstr ""
577
 
578
- #: ../custom-contact-forms-admin.php:1049
579
  msgid "This lets you process your forms through alternate scripts. If you use a service like InfusionSoft or Aweber, set this to be the same form action as the code provided to you by that service, otherwise leave this blank."
580
  msgstr ""
581
 
582
- #: ../custom-contact-forms-admin.php:1051
583
  msgid "This is the form email subject sent to the destination email address. If left blank, the default from General Settings will be used."
584
  msgstr ""
585
 
586
- #: ../custom-contact-forms-admin.php:1053
587
  msgid "This is the from name of the email sent on successful form submission. If left blank, the default from General Settings will be used."
588
  msgstr ""
589
 
590
- #: ../custom-contact-forms-admin.php:1055
591
  msgid "This will be displayed as the header in a popover when the form is filled out successfully when no custom success page is specified; if left blank it will use the default specified in general settings."
592
  msgstr ""
593
 
594
- #: ../custom-contact-forms-admin.php:1057
595
  msgid "This will be displayed in a popover when the form is filled out successfully when no custom success page is specified; if left blank it will use the default specified in general settings."
596
  msgstr ""
597
 
598
- #: ../custom-contact-forms-admin.php:1059
599
  msgid "If this is filled out, users will be sent to this thank you page when they successfully fill out this form. If it is left blank, a popover showing the form's 'success message' will be displayed on form success."
600
  msgstr ""
601
 
602
- #: ../custom-contact-forms-admin.php:1063
603
  msgid "The form display code above ([customcontact form=x]) will only work in Wordpress pages and posts. If you want to display this form in a theme file such as page.php, header.php, index.php, category.php, etc, then insert this PHP snippet."
604
  msgstr ""
605
 
606
- #: ../custom-contact-forms-admin.php:1064
607
  msgid "Code to Display Form in Theme Files:"
608
  msgstr ""
609
 
610
- #: ../custom-contact-forms-admin.php:1067
611
  msgid "This field allows you to insert HTML directly after the starting <form> tag."
612
  msgstr ""
613
 
614
- #: ../custom-contact-forms-admin.php:1068
 
615
  msgid "Custom Code:"
616
  msgstr ""
617
 
618
  #: ../custom-contact-forms-admin.php:1071
 
 
 
 
 
 
 
 
619
  msgid "If you want to show this form to only certain types of users, you can uncheck boxes accordingly. To show this form to anyone, check all the boxes. This will only take effect if 'Form Access Capabilities' is enabled in general settings."
620
  msgstr ""
621
 
622
- #: ../custom-contact-forms-admin.php:1090
623
  msgid "Attached Fields:"
624
  msgstr ""
625
 
626
- #: ../custom-contact-forms-admin.php:1110
627
  msgid "Attach fields in the order you want them displayed."
628
  msgstr ""
629
 
630
- #: ../custom-contact-forms-admin.php:1114
631
  msgid "Attach Field:"
632
  msgstr ""
633
 
634
- #: ../custom-contact-forms-admin.php:1125
635
  msgid "Attach fixed fields or ones you"
636
  msgstr ""
637
 
638
- #: ../custom-contact-forms-admin.php:1147
639
  msgid "Form Code"
640
  msgstr ""
641
 
642
- #: ../custom-contact-forms-admin.php:1169
643
  msgid "Create A Style for Your Forms"
644
  msgstr ""
645
 
646
- #: ../custom-contact-forms-admin.php:1173
647
  msgid "Use this manager to create styles for your forms. Each field is already filled out with nice look defaults. It is recommended you simply input a slug and click create to see the defaults before you start changing values."
648
  msgstr ""
649
 
650
- #: ../custom-contact-forms-admin.php:1179
651
  msgid "Style Slug:"
652
  msgstr ""
653
 
654
- #: ../custom-contact-forms-admin.php:1182
655
  msgid "(Must be unique)"
656
  msgstr ""
657
 
658
- #: ../custom-contact-forms-admin.php:1186
659
- #: ../custom-contact-forms-admin.php:1584
660
- #: ../custom-contact-forms-admin.php:1593
661
  msgid "Title Font Size:"
662
  msgstr ""
663
 
664
- #: ../custom-contact-forms-admin.php:1189
665
  msgid "(ex: 10pt, 10px, 1em)"
666
  msgstr ""
667
 
668
- #: ../custom-contact-forms-admin.php:1193
669
- #: ../custom-contact-forms-admin.php:1632
670
- #: ../custom-contact-forms-admin.php:1700
671
  msgid "Title Font Color:"
672
  msgstr ""
673
 
674
- #: ../custom-contact-forms-admin.php:1196
675
- #: ../custom-contact-forms-admin.php:1217
676
- #: ../custom-contact-forms-admin.php:1281
677
- #: ../custom-contact-forms-admin.php:1382
678
- #: ../custom-contact-forms-admin.php:1389
679
- #: ../custom-contact-forms-admin.php:1417
680
  msgid "(ex: FF0000)"
681
  msgstr ""
682
 
683
- #: ../custom-contact-forms-admin.php:1200
684
- #: ../custom-contact-forms-admin.php:1557
685
  msgid "Label Width:"
686
  msgstr ""
687
 
688
- #: ../custom-contact-forms-admin.php:1203
689
  msgid "(ex: 100px or 20%)"
690
  msgstr ""
691
 
692
- #: ../custom-contact-forms-admin.php:1207
693
- #: ../custom-contact-forms-admin.php:1598
694
  msgid "Label Font Size:"
695
  msgstr ""
696
 
697
- #: ../custom-contact-forms-admin.php:1210
698
- #: ../custom-contact-forms-admin.php:1375
699
  msgid "(ex: 10px, 10pt, 1em)"
700
  msgstr ""
701
 
702
- #: ../custom-contact-forms-admin.php:1214
703
- #: ../custom-contact-forms-admin.php:1637
704
  msgid "Label Font Color:"
705
  msgstr ""
706
 
707
- #: ../custom-contact-forms-admin.php:1221
708
- #: ../custom-contact-forms-admin.php:1524
709
  msgid "Text Field Width:"
710
  msgstr ""
711
 
712
- #: ../custom-contact-forms-admin.php:1224
713
- #: ../custom-contact-forms-admin.php:1231
714
- #: ../custom-contact-forms-admin.php:1238
715
- #: ../custom-contact-forms-admin.php:1318
716
  msgid "(ex: 100px or 100%)"
717
  msgstr ""
718
 
719
- #: ../custom-contact-forms-admin.php:1228
720
  msgid "Textarea Field Width:"
721
  msgstr ""
722
 
723
- #: ../custom-contact-forms-admin.php:1235
724
  msgid "Textarea Field Height:"
725
  msgstr ""
726
 
727
- #: ../custom-contact-forms-admin.php:1242
728
- #: ../custom-contact-forms-admin.php:1603
729
  msgid "Field Font Size:"
730
  msgstr ""
731
 
732
- #: ../custom-contact-forms-admin.php:1245
733
  msgid "(ex: 10px, 10pt, 1em"
734
  msgstr ""
735
 
736
- #: ../custom-contact-forms-admin.php:1249
737
- #: ../custom-contact-forms-admin.php:1642
738
  msgid "Field Font Color:"
739
  msgstr ""
740
 
741
- #: ../custom-contact-forms-admin.php:1252
742
- #: ../custom-contact-forms-admin.php:1288
743
  msgid "(ex: 333333)"
744
  msgstr ""
745
 
746
- #: ../custom-contact-forms-admin.php:1256
747
- #: ../custom-contact-forms-admin.php:1691
748
  msgid "Field Border Style:"
749
  msgstr ""
750
 
751
- #: ../custom-contact-forms-admin.php:1264
752
- #: ../custom-contact-forms-admin.php:1652
753
  msgid "Form Margin:"
754
  msgstr ""
755
 
756
- #: ../custom-contact-forms-admin.php:1267
757
- #: ../custom-contact-forms-admin.php:1274
758
- #: ../custom-contact-forms-admin.php:1396
759
- #: ../custom-contact-forms-admin.php:1403
760
  msgid "(ex: 5px or 1em)"
761
  msgstr ""
762
 
763
- #: ../custom-contact-forms-admin.php:1271
764
- #: ../custom-contact-forms-admin.php:1544
765
  msgid "Label Margin:"
766
  msgstr ""
767
 
768
- #: ../custom-contact-forms-admin.php:1278
769
  msgid "Textarea Background Color:"
770
  msgstr ""
771
 
772
- #: ../custom-contact-forms-admin.php:1285
773
  msgid "Success Popover Font Color:"
774
  msgstr ""
775
 
776
- #: ../custom-contact-forms-admin.php:1292
777
  msgid "Success Popover Title Font Size:"
778
  msgstr ""
779
 
780
- #: ../custom-contact-forms-admin.php:1295
781
- #: ../custom-contact-forms-admin.php:1302
782
- #: ../custom-contact-forms-admin.php:1424
783
- #: ../custom-contact-forms-admin.php:1447
784
  msgid "(ex: 12px, 1em, 100%)"
785
  msgstr ""
786
 
787
- #: ../custom-contact-forms-admin.php:1299
788
- #: ../custom-contact-forms-admin.php:1588
789
  msgid "Form Background Color:"
790
  msgstr ""
791
 
792
- #: ../custom-contact-forms-admin.php:1306
793
  msgid "Tooltip Background Color:"
794
  msgstr ""
795
 
796
- #: ../custom-contact-forms-admin.php:1309
797
  msgid "(ex: 000000 or black)"
798
  msgstr ""
799
 
800
- #: ../custom-contact-forms-admin.php:1315
801
- #: ../custom-contact-forms-admin.php:1686
802
  msgid "Field Border Color:"
803
  msgstr ""
804
 
805
- #: ../custom-contact-forms-admin.php:1322
806
- #: ../custom-contact-forms-admin.php:1669
807
  msgid "Form Border Style:"
808
  msgstr ""
809
 
810
- #: ../custom-contact-forms-admin.php:1330
811
- #: ../custom-contact-forms-admin.php:1681
812
  msgid "Form Border Color:"
813
  msgstr ""
814
 
815
- #: ../custom-contact-forms-admin.php:1333
816
  msgid "(ex: 000000)"
817
  msgstr ""
818
 
819
- #: ../custom-contact-forms-admin.php:1337
820
- #: ../custom-contact-forms-admin.php:1676
821
  msgid "Form Border Width:"
822
  msgstr ""
823
 
824
- #: ../custom-contact-forms-admin.php:1340
825
  msgid "(ex: 1px)"
826
  msgstr ""
827
 
828
- #: ../custom-contact-forms-admin.php:1344
829
- #: ../custom-contact-forms-admin.php:1519
830
  msgid "Form Width:"
831
  msgstr ""
832
 
833
- #: ../custom-contact-forms-admin.php:1347
834
  msgid "(ex: 100px or 50%)"
835
  msgstr ""
836
 
837
- #: ../custom-contact-forms-admin.php:1351
838
  msgid "Form Font Family:"
839
  msgstr ""
840
 
841
- #: ../custom-contact-forms-admin.php:1354
842
  msgid "(ex: Verdana, Tahoma, Arial)"
843
  msgstr ""
844
 
845
- #: ../custom-contact-forms-admin.php:1358
846
- #: ../custom-contact-forms-admin.php:1562
847
  msgid "Button Width:"
848
  msgstr ""
849
 
850
- #: ../custom-contact-forms-admin.php:1361
851
  msgid "(ex: 100px, 30%, auto)"
852
  msgstr ""
853
 
854
- #: ../custom-contact-forms-admin.php:1365
855
- #: ../custom-contact-forms-admin.php:1567
856
  msgid "Button Height:"
857
  msgstr ""
858
 
859
- #: ../custom-contact-forms-admin.php:1368
860
  msgid "(ex: 100px or 30%)"
861
  msgstr ""
862
 
863
- #: ../custom-contact-forms-admin.php:1372
864
- #: ../custom-contact-forms-admin.php:1608
865
  msgid "Button Font Size:"
866
  msgstr ""
867
 
868
- #: ../custom-contact-forms-admin.php:1379
869
- #: ../custom-contact-forms-admin.php:1647
870
  msgid "Button Font Color:"
871
  msgstr ""
872
 
873
- #: ../custom-contact-forms-admin.php:1386
874
- #: ../custom-contact-forms-admin.php:1572
875
  msgid "Field Background Color:"
876
  msgstr ""
877
 
878
- #: ../custom-contact-forms-admin.php:1393
879
- #: ../custom-contact-forms-admin.php:1613
880
  msgid "Form Padding:"
881
  msgstr ""
882
 
883
- #: ../custom-contact-forms-admin.php:1400
884
- #: ../custom-contact-forms-admin.php:1577
885
  msgid "Title Margin:"
886
  msgstr ""
887
 
888
- #: ../custom-contact-forms-admin.php:1407
889
- #: ../custom-contact-forms-admin.php:1539
890
  msgid "Dropdown Width:"
891
  msgstr ""
892
 
893
- #: ../custom-contact-forms-admin.php:1410
894
  msgid "(ex: 30px, 20%, or auto)"
895
  msgstr ""
896
 
897
- #: ../custom-contact-forms-admin.php:1414
898
  msgid "Success Popover Border Color:"
899
  msgstr ""
900
 
901
- #: ../custom-contact-forms-admin.php:1421
902
  msgid "Success Popover Font Size:"
903
  msgstr ""
904
 
905
- #: ../custom-contact-forms-admin.php:1428
906
  msgid "Success Popover Height:"
907
  msgstr ""
908
 
909
- #: ../custom-contact-forms-admin.php:1431
910
  msgid "(ex: 200px, 6em, 50%)"
911
  msgstr ""
912
 
913
- #: ../custom-contact-forms-admin.php:1435
914
- #: ../custom-contact-forms-admin.php:1705
915
  msgid "Field Border Roundness:"
916
  msgstr ""
917
 
918
- #: ../custom-contact-forms-admin.php:1438
919
  msgid "(ex: 6px, or 0px)"
920
  msgstr ""
921
 
922
- #: ../custom-contact-forms-admin.php:1442
923
- #: ../custom-contact-forms-admin.php:1512
924
- #: ../custom-contact-forms-admin.php:1625
925
  msgid "Tooltip"
926
  msgstr ""
927
 
928
- #: ../custom-contact-forms-admin.php:1443
929
- #: ../custom-contact-forms-admin.php:1513
930
- #: ../custom-contact-forms-admin.php:1626
931
  msgid "A tooltip is the little box that fades in displaying 'Field Instructions' when a user selects a particular field."
932
  msgstr ""
933
 
934
- #: ../custom-contact-forms-admin.php:1444
935
- #: ../custom-contact-forms-admin.php:1620
936
  msgid "Font Size:"
937
  msgstr ""
938
 
939
- #: ../custom-contact-forms-admin.php:1451
940
  msgid "Tooltip Font Color:"
941
  msgstr ""
942
 
943
- #: ../custom-contact-forms-admin.php:1454
944
  msgid "(ex: ffffff or white)"
945
  msgstr ""
946
 
947
- #: ../custom-contact-forms-admin.php:1458
948
  msgid "Create Style"
949
  msgstr ""
950
 
951
- #: ../custom-contact-forms-admin.php:1466
952
  msgid "Manage Form Styles"
953
  msgstr ""
954
 
955
- #: ../custom-contact-forms-admin.php:1488
 
 
 
956
  msgid "Slug:"
957
  msgstr ""
958
 
959
- #: ../custom-contact-forms-admin.php:1493
960
  msgid "Font Family:"
961
  msgstr ""
962
 
963
- #: ../custom-contact-forms-admin.php:1498
964
  msgid "Textarea Background"
965
  msgstr ""
966
 
967
- #: ../custom-contact-forms-admin.php:1500
968
  msgid "Color:"
969
  msgstr ""
970
 
971
- #: ../custom-contact-forms-admin.php:1505
972
- #: ../custom-contact-forms-admin.php:1549
973
- #: ../custom-contact-forms-admin.php:1582
974
- #: ../custom-contact-forms-admin.php:1618
975
- #: ../custom-contact-forms-admin.php:1657
976
- #: ../custom-contact-forms-admin.php:1698
977
  msgid "Success Popover"
978
  msgstr ""
979
 
980
- #: ../custom-contact-forms-admin.php:1507
981
  msgid "Border Color:"
982
  msgstr ""
983
 
984
- #: ../custom-contact-forms-admin.php:1514
985
- #: ../custom-contact-forms-admin.php:1659
986
  msgid "Font Color:"
987
  msgstr ""
988
 
989
- #: ../custom-contact-forms-admin.php:1529
990
  msgid "Textarea Width:"
991
  msgstr ""
992
 
993
- #: ../custom-contact-forms-admin.php:1534
994
  msgid "Textarea Height:"
995
  msgstr ""
996
 
997
- #: ../custom-contact-forms-admin.php:1551
998
  msgid "Height:"
999
  msgstr ""
1000
 
1001
- #: ../custom-contact-forms-admin.php:1627
1002
  msgid "Background Color:"
1003
  msgstr ""
1004
 
1005
- #: ../custom-contact-forms-admin.php:1664
1006
  msgid "Tooltip Font Size:"
1007
  msgstr ""
1008
 
1009
- #: ../custom-contact-forms-admin.php:1738
1010
  msgid "Report a Bug/Suggest a Feature"
1011
  msgstr ""
1012
 
1013
- #: ../custom-contact-forms-admin.php:1745
1014
  msgid "Your Name:"
1015
  msgstr ""
1016
 
1017
- #: ../custom-contact-forms-admin.php:1751
1018
  msgid "Your Email:"
1019
  msgstr ""
1020
 
1021
- #: ../custom-contact-forms-admin.php:1757
1022
  msgid "Who Hosts Your Website?"
1023
  msgstr ""
1024
 
1025
- #: ../custom-contact-forms-admin.php:1763
1026
  msgid "Your Message:"
1027
  msgstr ""
1028
 
1029
- #: ../custom-contact-forms-admin.php:1769
1030
  msgid "Purpose of this message:"
1031
  msgstr ""
1032
 
1033
- #: ../custom-contact-forms-admin.php:1779
1034
  msgid "Plugin Question"
1035
  msgstr ""
1036
 
1037
- #: ../custom-contact-forms-admin.php:1785
1038
  msgid "Version of Custom Contact Forms?"
1039
  msgstr ""
1040
 
1041
- #: ../custom-contact-forms-admin.php:1791
1042
  msgid "Version of WordPress?"
1043
  msgstr ""
1044
 
1045
- #: ../custom-contact-forms-admin.php:1797
1046
  msgid "Send Message"
1047
  msgstr ""
1048
 
1049
- #: ../custom-contact-forms-admin.php:1805
1050
  msgid "Custom HTML Forms (Advanced)"
1051
  msgstr ""
1052
 
1053
- #: ../custom-contact-forms-admin.php:1809
1054
  msgid ""
1055
  "If you know HTML and simply want to use this plugin to process form requests, this feature is for you. \n"
1056
  "\t\t\t\t\tThe following HTML is a the framework to which you must adhere. In order for your form to work you MUST do the following: a) Keep the form action/method the same (yes the action is supposed to be empty), b) Include all the hidden fields shown below, c) provide a \n"
1057
  "\t\t\t\t\thidden field with a success message or thank you page (both hidden fields are included below, you must choose one or the other and fill in the value part of the input field appropriately."
1058
  msgstr ""
1059
 
1060
- #: ../custom-contact-forms-admin.php:1816
1061
  msgid "Thank you for filling out our form!"
1062
  msgstr ""
1063
 
1064
- #: ../custom-contact-forms-admin.php:1821
1065
  msgid ""
1066
  "Paste all this code into a page or post and edit it to your liking. It is recommended you only use this feature if you are experienced with HTML. The destination_email \n"
1067
  "field specifies where emails will be sent on successful submission; you can have the form send to multiple addresses by separating email's with semi-colons (i.e. email@google.com; email2@google.com). \n"
@@ -1070,359 +1105,380 @@ msgid ""
1070
  "the field names you want required by commas. Remember to use underscores instead of spaces in field names!"
1071
  msgstr ""
1072
 
1073
- #: ../custom-contact-forms-admin.php:1884
 
 
 
 
 
1074
  msgid "Saved Form Submissions"
1075
  msgstr ""
1076
 
1077
- #: ../custom-contact-forms-admin.php:1891
1078
- #: ../custom-contact-forms-admin.php:1945
1079
  msgid "Date Submitted"
1080
  msgstr ""
1081
 
1082
- #: ../custom-contact-forms-admin.php:1892
1083
- #: ../custom-contact-forms-admin.php:1946
1084
  msgid "Form Submitted"
1085
  msgstr ""
1086
 
1087
- #: ../custom-contact-forms-admin.php:1893
1088
- #: ../custom-contact-forms-admin.php:1947
1089
  msgid "Form Page"
1090
  msgstr ""
1091
 
1092
- #: ../custom-contact-forms-admin.php:1912
1093
  msgid "Custom HTML Form"
1094
  msgstr ""
1095
 
1096
- #: ../custom-contact-forms-admin.php:2029
1097
  msgid "General Settings"
1098
  msgstr ""
1099
 
1100
- #: ../custom-contact-forms-admin.php:2036
1101
  msgid "Email Form Submissions:"
1102
  msgstr ""
1103
 
1104
- #: ../custom-contact-forms-admin.php:2048
1105
  msgid "When a user fills out one of your forms, the info submitted is saved in the Saved Form Submission section of the admin panel for you to view. If this is enabled, you will also be sent an email containing the submission info."
1106
  msgstr ""
1107
 
1108
- #: ../custom-contact-forms-admin.php:2052
1109
  msgid "Default Email:"
1110
  msgstr ""
1111
 
1112
- #: ../custom-contact-forms-admin.php:2057
1113
  msgid "Form emails will be sent <span>to</span> this address, if no destination email is specified by the form."
1114
  msgstr ""
1115
 
1116
- #: ../custom-contact-forms-admin.php:2061
1117
  msgid "Front End JQuery:"
1118
  msgstr ""
1119
 
1120
- #: ../custom-contact-forms-admin.php:2065
1121
- #: ../custom-contact-forms-admin.php:2108
1122
- #: ../custom-contact-forms-admin.php:2187
1123
- #: ../custom-contact-forms-admin.php:2216
1124
- #: ../custom-contact-forms-admin.php:2244
1125
  msgid "Enabled"
1126
  msgstr ""
1127
 
1128
- #: ../custom-contact-forms-admin.php:2068
1129
- #: ../custom-contact-forms-admin.php:2111
1130
- #: ../custom-contact-forms-admin.php:2190
1131
- #: ../custom-contact-forms-admin.php:2219
1132
- #: ../custom-contact-forms-admin.php:2241
1133
  msgid "Disabled"
1134
  msgstr ""
1135
 
1136
- #: ../custom-contact-forms-admin.php:2073
1137
  #, php-format
1138
  msgid "Some plugins don't setup JQuery correctly, so when any other plugin uses JQuery (whether correctly or not), JQuery works for neither plugin. This plugin uses JQuery correctly. If another plugin isn't using JQuery correctly but is more important to you than this one: disable this option. 99% of this plugin's functionality will work without JQuery, just no field instruction tooltips."
1139
  msgstr ""
1140
 
1141
- #: ../custom-contact-forms-admin.php:2077
1142
  msgid "Default From Email:"
1143
  msgstr ""
1144
 
1145
- #: ../custom-contact-forms-admin.php:2082
1146
  msgid "Form emails will be sent <span>from</span> this address. It is recommended you provide a real email address that has been created through your host."
1147
  msgstr ""
1148
 
1149
- #: ../custom-contact-forms-admin.php:2086
1150
  msgid "Default From Name:"
1151
  msgstr ""
1152
 
1153
- #: ../custom-contact-forms-admin.php:2091
1154
  msgid "This setting allows you to specify the name under which form emails are sent. The default is 'Custom Contact Forms'."
1155
  msgstr ""
1156
 
1157
- #: ../custom-contact-forms-admin.php:2095
1158
  msgid "Default Email Subject:"
1159
  msgstr ""
1160
 
1161
- #: ../custom-contact-forms-admin.php:2100
1162
  msgid "Default subject to be included in all form emails."
1163
  msgstr ""
1164
 
1165
- #: ../custom-contact-forms-admin.php:2104
1166
  msgid "Enable Dashboard Widget:"
1167
  msgstr ""
1168
 
1169
- #: ../custom-contact-forms-admin.php:2115
1170
  msgid "Enabling this will display a widget on your dashboard that shows the latest form submissions."
1171
  msgstr ""
1172
 
1173
- #: ../custom-contact-forms-admin.php:2119
1174
  msgid "Dashboard Widget Accessibility:"
1175
  msgstr ""
1176
 
1177
- #: ../custom-contact-forms-admin.php:2123
1178
  msgid "Only admins can view"
1179
  msgstr ""
1180
 
1181
- #: ../custom-contact-forms-admin.php:2126
1182
  msgid "All roles except subscribers can view"
1183
  msgstr ""
1184
 
1185
- #: ../custom-contact-forms-admin.php:2129
1186
  msgid "All roles can view"
1187
  msgstr ""
1188
 
1189
- #: ../custom-contact-forms-admin.php:2133
1190
  msgid "If you are using the dashboard widget, this allows you to disallow certain users from viewing it."
1191
  msgstr ""
1192
 
1193
- #: ../custom-contact-forms-admin.php:2137
1194
- msgid "Default Form Error Header:"
1195
  msgstr ""
1196
 
1197
- #: ../custom-contact-forms-admin.php:2142
1198
- msgid "When a form is filled out incorrectly, this message will be displayed followed by the individual field error messages."
 
 
 
 
1199
  msgstr ""
1200
 
1201
- #: ../custom-contact-forms-admin.php:2149
 
 
 
 
1202
  msgid "Default Form Success Message Title:"
1203
  msgstr ""
1204
 
1205
- #: ../custom-contact-forms-admin.php:2154
1206
  msgid "If someone fills out a form for which a success message title is not provided and a custom success page is not provided, the plugin will show a popover using this field as the window title."
1207
  msgstr ""
1208
 
1209
- #: ../custom-contact-forms-admin.php:2158
1210
  msgid "Default Form Success Message:"
1211
  msgstr ""
1212
 
1213
- #: ../custom-contact-forms-admin.php:2163
1214
  msgid "If someone fills out a form for which a success message is not provided and a custom success page is not provided, the plugin will show a popover containing this message."
1215
  msgstr ""
1216
 
1217
- #: ../custom-contact-forms-admin.php:2167
 
 
 
 
 
 
 
 
1218
  msgid "Remember Field Values:"
1219
  msgstr ""
1220
 
1221
- #: ../custom-contact-forms-admin.php:2179
1222
  msgid "Selecting yes will make form fields remember how they were last filled out."
1223
  msgstr ""
1224
 
1225
- #: ../custom-contact-forms-admin.php:2183
1226
  msgid "Tooltips in Widget:"
1227
  msgstr ""
1228
 
1229
- #: ../custom-contact-forms-admin.php:2195
1230
  msgid "Enabling this shows tooltips containing field instructions on forms in the widget."
1231
  msgstr ""
1232
 
1233
- #: ../custom-contact-forms-admin.php:2199
1234
  msgid "Hide Plugin Author Link in Code:"
1235
  msgstr ""
1236
 
1237
- #: ../custom-contact-forms-admin.php:2212
1238
  msgid "Fancy Admin AJAX Abilities:"
1239
  msgstr ""
1240
 
1241
- #: ../custom-contact-forms-admin.php:2224
1242
  msgid "If you enable this, creating, editing and modifying forms, fields, styles, etc in the admin panel will be done using AJAX. This means that clicking things like 'Edit' or 'Delete' will not cause the page to reload thus managing your forms will be much smoother and quicker. If you are having problems with things not saving, deleting, or inserting correctly, then disable this and fill out a bug report below."
1243
  msgstr ""
1244
 
1245
- #: ../custom-contact-forms-admin.php:2228
1246
  msgid "Default Permissions Error:"
1247
  msgstr ""
1248
 
1249
- #: ../custom-contact-forms-admin.php:2233
1250
  msgid "When someone doesn't have the proper permissions to use a form, this message is displayed in place of the form. You control who can view each form with the form access manager which is located inside the form manager."
1251
  msgstr ""
1252
 
1253
- #: ../custom-contact-forms-admin.php:2237
1254
  msgid "Form Access Capabilities:"
1255
  msgstr ""
1256
 
1257
- #: ../custom-contact-forms-admin.php:2249
1258
  msgid "The form access manager within each form allows you to control who can view your form. However, that will take effect on any of your forms unless this is enabled."
1259
  msgstr ""
1260
 
1261
- #: ../custom-contact-forms-admin.php:2252
1262
  msgid "Show Sidebar Widget:"
1263
  msgstr ""
1264
 
1265
- #: ../custom-contact-forms-admin.php:2257
1266
  msgid "On Homepage"
1267
  msgstr ""
1268
 
1269
- #: ../custom-contact-forms-admin.php:2261
1270
  msgid "On Pages"
1271
  msgstr ""
1272
 
1273
- #: ../custom-contact-forms-admin.php:2265
1274
  msgid "On Single Posts"
1275
  msgstr ""
1276
 
1277
- #: ../custom-contact-forms-admin.php:2270
1278
  msgid "On Categories"
1279
  msgstr ""
1280
 
1281
- #: ../custom-contact-forms-admin.php:2274
1282
  msgid "On Archives"
1283
  msgstr ""
1284
 
1285
- #: ../custom-contact-forms-admin.php:2279
1286
- msgid "Use Code Type:"
1287
- msgstr ""
1288
-
1289
- #: ../custom-contact-forms-admin.php:2287
1290
- msgid "This lets you switch the form code between HTML and XHTML."
1291
- msgstr ""
1292
-
1293
- #: ../custom-contact-forms-admin.php:2290
1294
  msgid "Update"
1295
  msgstr ""
1296
 
1297
- #: ../custom-contact-forms-admin.php:2298
1298
  msgid "Mail Settings"
1299
  msgstr ""
1300
 
1301
- #: ../custom-contact-forms-admin.php:2302
1302
  msgid "There are two ways you can send emails: using the PHP mail() function or using SMTP (secure/insecure). If you choose to use the PHP mail() function you can ignore all the other options. For some people Wordpress's default way of sending mail does not work; if for some reason your mail is being sent you should try the SMTP option."
1303
  msgstr ""
1304
 
1305
- #: ../custom-contact-forms-admin.php:2303
1306
  msgid "* Send My Emails Using the Following:"
1307
  msgstr ""
1308
 
1309
- #: ../custom-contact-forms-admin.php:2305
1310
  msgid "Wordpress Default"
1311
  msgstr ""
1312
 
1313
- #: ../custom-contact-forms-admin.php:2306
1314
  msgid "SMTP"
1315
  msgstr ""
1316
 
1317
- #: ../custom-contact-forms-admin.php:2307
1318
  msgid "(If mail isn't sending, try toggling this option.)"
1319
  msgstr ""
1320
 
1321
- #: ../custom-contact-forms-admin.php:2310
1322
  msgid "SMTP Host:"
1323
  msgstr ""
1324
 
1325
- #: ../custom-contact-forms-admin.php:2311
1326
  msgid "SMTP Port:"
1327
  msgstr ""
1328
 
1329
- #: ../custom-contact-forms-admin.php:2312
1330
  msgid "Encryption:"
1331
  msgstr ""
1332
 
1333
- #: ../custom-contact-forms-admin.php:2314
1334
  msgid "SSL"
1335
  msgstr ""
1336
 
1337
- #: ../custom-contact-forms-admin.php:2315
1338
  msgid "TLS"
1339
  msgstr ""
1340
 
1341
- #: ../custom-contact-forms-admin.php:2319
1342
  msgid "SMTP Authentication:"
1343
  msgstr ""
1344
 
1345
- #: ../custom-contact-forms-admin.php:2319
1346
  msgid "None Needed"
1347
  msgstr ""
1348
 
1349
- #: ../custom-contact-forms-admin.php:2319
1350
  msgid "Use SMTP Username/Password"
1351
  msgstr ""
1352
 
1353
- #: ../custom-contact-forms-admin.php:2320
1354
  msgid "SMTP Username:"
1355
  msgstr ""
1356
 
1357
- #: ../custom-contact-forms-admin.php:2321
1358
  msgid "SMTP Password:"
1359
  msgstr ""
1360
 
1361
- #: ../custom-contact-forms-admin.php:2324
1362
  msgid "Save Mail Sending Options"
1363
  msgstr ""
1364
 
1365
- #: ../custom-contact-forms-admin.php:2331
1366
  msgid "Export"
1367
  msgstr ""
1368
 
1369
- #: ../custom-contact-forms-admin.php:2336
1370
  msgid ""
1371
  "Preforming a Custom Contact Forms export will create a file of the form \n"
1372
  "\t\t\t\t\t\tccf-export-xxxx.sql on your web server. The file created contains SQL that \n"
1373
  "\t\t\t\t\t\twill recreate all the plugin data on any Wordpress installation. After Custom Contact Forms creates the export file, you will be prompted to download it. You can use this file as a backup in case your Wordpress database gets ruined."
1374
  msgstr ""
1375
 
1376
- #: ../custom-contact-forms-admin.php:2340
1377
  msgid "Export All CCF Plugin Content"
1378
  msgstr ""
1379
 
1380
- #: ../custom-contact-forms-admin.php:2346
1381
  msgid "Import"
1382
  msgstr ""
1383
 
1384
- #: ../custom-contact-forms-admin.php:2352
1385
  msgid "Browse to a CCF .sql export file to import Custom Contact Form data from another Wordpress installation to this one. Pressing the 'Clear and Import' button deletes all current data and then imports the selected file; this will not work for merging to data!. Clearing all CCF data before importing prevents any conflicts from occuring. Before you attempt an import, you should always download a backup, by clicking the 'Export All' button."
1386
  msgstr ""
1387
 
1388
- #: ../custom-contact-forms-admin.php:2355
1389
  msgid "Choose What You Want to Use from the Import File:"
1390
  msgstr ""
1391
 
1392
- #: ../custom-contact-forms-admin.php:2361
1393
  msgid "Use General Settings"
1394
  msgstr ""
1395
 
1396
- #: ../custom-contact-forms-admin.php:2367
1397
- #: ../custom-contact-forms-admin.php:2385
 
 
1398
  msgid "Forms"
1399
  msgstr ""
1400
 
1401
- #: ../custom-contact-forms-admin.php:2373
 
1402
  msgid "Form Submissions"
1403
  msgstr ""
1404
 
1405
- #: ../custom-contact-forms-admin.php:2379
 
 
1406
  msgid "Fields"
1407
  msgstr ""
1408
 
1409
- #: ../custom-contact-forms-admin.php:2391
 
 
1410
  msgid "Field Options"
1411
  msgstr ""
1412
 
1413
- #: ../custom-contact-forms-admin.php:2397
 
1414
  msgid "Styles"
1415
  msgstr ""
1416
 
1417
- #: ../custom-contact-forms-admin.php:2403
1418
  msgid "Choose an Import File:"
1419
  msgstr ""
1420
 
1421
- #: ../custom-contact-forms-admin.php:2407
1422
  msgid "Clear and Import"
1423
  msgstr ""
1424
 
1425
- #: ../custom-contact-forms-admin.php:2409
1426
  msgid "Yes, I want to do this and have created a backup."
1427
  msgstr ""
1428
 
@@ -1435,6 +1491,7 @@ msgid "First insert some default content by clicking the button below. This will
1435
  msgstr ""
1436
 
1437
  #: ../modules/usage_popover/custom-contact-forms-quick-start-popover.php:8
 
1438
  msgid "Insert Default Content"
1439
  msgstr ""
1440
 
@@ -1451,7 +1508,7 @@ msgid "Plugin Usage Popover"
1451
  msgstr ""
1452
 
1453
  #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:11
1454
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:177
1455
  msgid "Fixed Fields"
1456
  msgstr ""
1457
 
@@ -1490,355 +1547,363 @@ msgid "Text:"
1490
  msgstr ""
1491
 
1492
  #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:59
1493
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:66
1494
  msgid "This is a text field"
1495
  msgstr ""
1496
 
1497
  #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:63
1498
- msgid "Textarea:"
 
 
 
 
1499
  msgstr ""
1500
 
1501
  #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:70
 
 
 
 
1502
  msgid "Dropdown:"
1503
  msgstr ""
1504
 
1505
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:75
1506
  msgid "This is a dropdown field"
1507
  msgstr ""
1508
 
1509
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:78
1510
  msgid "Field Option 2!"
1511
  msgstr ""
1512
 
1513
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:81
1514
  msgid "Field Option 3!"
1515
  msgstr ""
1516
 
1517
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:84
1518
  msgid "Field Option 4!"
1519
  msgstr ""
1520
 
1521
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:87
1522
  msgid "Unlimited # of options allowed"
1523
  msgstr ""
1524
 
1525
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:93
1526
  msgid "Radio:"
1527
  msgstr ""
1528
 
1529
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:97
1530
  msgid "A radio field"
1531
  msgstr ""
1532
 
1533
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:99
1534
  msgid "Field Option 2"
1535
  msgstr ""
1536
 
1537
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:101
1538
  msgid "Field Option 3"
1539
  msgstr ""
1540
 
1541
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:105
1542
  msgid "Checkbox:"
1543
  msgstr ""
1544
 
1545
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:109
1546
  msgid "This is a checkbox field"
1547
  msgstr ""
1548
 
1549
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:113
1550
  msgid "(advanced) Hidden:"
1551
  msgstr ""
1552
 
1553
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:115
1554
  msgid "These fields are hidden (obviously), they allow you to pass hidden information within your forms. Great for using other form processors like Aweber or InfusionSoft."
1555
  msgstr ""
1556
 
1557
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:119
1558
  msgid "There are a variety of different options that you can use when creating a field,"
1559
  msgstr ""
1560
 
1561
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:121
1562
  msgid "denotes something required:"
1563
  msgstr ""
1564
 
1565
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:127
1566
  msgid "A slug is simply a way to identify your field. It can only contain underscores, letters, and numbers and must be unique."
1567
  msgstr ""
1568
 
1569
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:137
1570
  msgid "The six field types you can choose from are explained above."
1571
  msgstr ""
1572
 
1573
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:142
1574
  msgid "This is the initial value of the field. If you set the type as checkbox, it is recommend you set this to what the checkbox is implying. For example if I were creating the checkbox 'Are you human?', I would set the initial value to 'Yes'. If you set the field type as 'Dropdown' or 'Radio', you should enter the slug of the field option you would like initially selected (or just leave it blank and the first option attached will be selected)."
1575
  msgstr ""
1576
 
1577
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:147
1578
  msgid "This allows you to limit the amount of characters a user can enter in a field (does not apply to textareas as of version 3.5.5)"
1579
  msgstr ""
1580
 
1581
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:152
1582
  msgid "If a field is required and a user leaves it blank, the plugin will display an error message explaining the problem. The user will then have to go back and fill in the field properly."
1583
  msgstr ""
1584
 
1585
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:157
1586
  msgid "If this is filled out, a stylish tooltip popover displaying this text will show when the field is selected. This will only work if JQuery is enabled in general options."
1587
  msgstr ""
1588
 
1589
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:165
1590
  msgid "(advanced) Field Class:"
1591
  msgstr ""
1592
 
1593
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:167
1594
  msgid "This allows you to assign a CSS class to an individual field without affecting anything else. This is a great way to take the customization of your form to the next level."
1595
  msgstr ""
1596
 
1597
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:170
1598
  msgid "Field Options:"
1599
  msgstr ""
1600
 
1601
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:172
1602
  msgid "After you create a field, if it's field type is radio or dropdown, you can attach field options to the field. Field options are explained in the next section."
1603
  msgstr ""
1604
 
1605
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:180
1606
  msgid "The last important thing related to fields are <span>Fixed Fields</span>. Fixed Fields are special fields that come already created within the plugin such as the captcha spam blocker and email field. Fixed Fields do special things that you wouldn't be able to accomplish with normal fields; they cannot be deleted or created. For example, if you use the fixedEmail field, as opposed to creating your own email field. the users email will be checked to make sure it is valid, if it isn't a form error will be displayed. Below is a list of fixed fields and their descriptions."
1607
  msgstr ""
1608
 
1609
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:183
1610
  msgid "fixedEmail:"
1611
  msgstr ""
1612
 
1613
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:183
1614
  msgid "When attached to a form and set to required, this field will validate a user's email addresses. If a user's email is not valid, an error will be shown."
1615
  msgstr ""
1616
 
1617
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:184
1618
  msgid "captcha:"
1619
  msgstr ""
1620
 
1621
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:184
1622
  msgid "This field helps prevent spam by prompting users to copy numbers displayed on an image. If a user copies the numbers incorrectly, the form will show an error."
1623
  msgstr ""
1624
 
1625
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:185
1626
  msgid "fixedWebsite:"
1627
  msgstr ""
1628
 
1629
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:185
1630
  msgid "When attached to a form and set to required, this field will validate a user's website. If a user's website is not valid, an error will be shown."
1631
  msgstr ""
1632
 
1633
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:186
1634
  msgid "emailSubject:"
1635
  msgstr ""
1636
 
1637
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:186
1638
  msgid "This lets a user enter in an email subject that will carry over as the subject of the email sent to you on form completion"
1639
  msgstr ""
1640
 
1641
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:187
1642
  msgid "usaStates:"
1643
  msgstr ""
1644
 
1645
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:187
1646
  msgid "This field displays a dropdown of all the states in the US."
1647
  msgstr ""
1648
 
1649
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:188
1650
  msgid "allCountries:"
1651
  msgstr ""
1652
 
1653
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:188
1654
  msgid "This field displays a dropdown of all the countries in the world."
1655
  msgstr ""
1656
 
1657
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:189
1658
  msgid "resetButton:"
1659
  msgstr ""
1660
 
1661
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:189
1662
  msgid "Attaching this field adds a reset button right next to the submit button in your form."
1663
  msgstr ""
1664
 
1665
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:190
1666
  msgid "ishuman:"
1667
  msgstr ""
1668
 
1669
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:190
1670
  msgid "This field helps prevent spam by prompting users to check a box to verify that they are human. If the box is left unchecked, an error will be displayed and the user will have to go back."
1671
  msgstr ""
1672
 
1673
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:198
1674
  msgid "In the field section above, look at the radio or dropdown fields. See how they have multiple options within the field? Those are called Field Options. Field Options have their own manager. There are only three things you must fill in to create a field option."
1675
  msgstr ""
1676
 
1677
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:204
1678
  msgid "Used to identify the field option, solely for admin purposes; must be unique, and contain only letters, numbers, and underscores. Example: 'slug_one'."
1679
  msgstr ""
1680
 
1681
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:209
1682
  msgid "This is what is shown to the user in the dropdown or radio field."
1683
  msgstr ""
1684
 
1685
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:214
1686
  msgid "This is the actual value of the option which isn't shown to the user. This can be the same thing as the label. An example pairing of label => value is: 'The color green' => 'green' or 'Yes' => '1'. The option value is behind the scences; unseen by the user, but when a user fills out the form, the option value is what is actually emailed to you and stored in the database. For dropdown fields the option value is optional, <span>for radio fields it is required</span>."
1687
  msgstr ""
1688
 
1689
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:218
1690
  msgid "Please Select:"
1691
  msgstr ""
1692
 
1693
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:218
1694
  msgid "Option 1"
1695
  msgstr ""
1696
 
1697
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:218
1698
  msgid "Option 2"
1699
  msgstr ""
1700
 
1701
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:219
1702
  msgid "Dead options are only useful for required dropdown fields. The first field option \"Please Select\" would be a useful way to encorporate a dead option. Assume the field is required; if a user submitted that field and left it as \"Please Select:\", then the form would throw an error and the user would have to go back."
1703
  msgstr ""
1704
 
1705
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:223
1706
  msgid "Once you create field options, you can attach them (in the field manager) to radio and dropdown fields (that are already created). It is important to remember that after you create a dropdown or radio field, they will not work until you attach one or more field options."
1707
  msgstr ""
1708
 
1709
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:231
1710
  msgid "Forms bring everything together. Each form you create in the form manager shows a code to display that form in posts/pages as well as theme files. The post/page form display code looks like: [customcontact id=FORMID]. There are a number of parameters that you can fill out when creating and managing each of your forms."
1711
  msgstr ""
1712
 
1713
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:237
1714
  msgid "A slug is simply a way to identify your form. It can only contain underscores, letters, and numbers and must be unique. Example 'my_contact_form'"
1715
  msgstr ""
1716
 
1717
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:242
1718
  msgid "The form title is heading text shown at the top of the form to users. Here's an example: 'My Contact Form'."
1719
  msgstr ""
1720
 
1721
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:245
1722
  msgid "Form Method:"
1723
  msgstr ""
1724
 
1725
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:247
1726
  msgid "If you don't know what this is leave it as 'Post'. This allows you to change the way a form sends user information."
1727
  msgstr ""
1728
 
1729
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:250
1730
  msgid "Form Action:"
1731
  msgstr ""
1732
 
1733
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:252
1734
  msgid "This allows you to process your forms using 3rd party services or your own scripts. If you don't know what this is, then leave it blank. This is useful if you use a service like Aweber or InfusionSoft."
1735
  msgstr ""
1736
 
1737
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:257
1738
  msgid "This allows you to apply styles you create in the style manager to your forms. If you haven't created a custom style yet, just choose 'Default'."
1739
  msgstr ""
1740
 
1741
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:262
1742
  msgid "Here, you can specify the text that shows on the submit button."
1743
  msgstr ""
1744
 
1745
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:267
1746
  msgid "If unsure, leave blank. This field allows you to insert custom HTML directly after the starting form tag."
1747
  msgstr ""
1748
 
1749
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:272
1750
  msgid "Specify the email address(es) that should receive all form submissions. Seperate multiple email addresses with semi-colons (ex: email1@gmail.com;email2@gmail.com;email3@gmail.com). If you leave this blank it will revert to the default specified in general settings. You can set forms not to send email in General Settings."
1751
  msgstr ""
1752
 
1753
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:277
1754
  msgid "Will be displayed in a popover after the form is filled out successfully when no custom success page is specified; if left blank it will use the default specified in general settings."
1755
  msgstr ""
1756
 
1757
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:287
1758
  msgid "If this is filled out, users will be sent to this page when they successfully fill out the form. If it is left blank, a popover showing the form's 'success message' will be displayed on successful form submission."
1759
  msgstr ""
1760
 
1761
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:290
1762
  msgid "Email From Name:"
1763
  msgstr ""
1764
 
1765
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:292
1766
  msgid "The email sent to you on form completion will be from this name. If this is left blank, it will default to the 'Default From Name' provided in General Settings."
1767
  msgstr ""
1768
 
1769
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:295
1770
  msgid "Email Subject:"
1771
  msgstr ""
1772
 
1773
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:297
1774
  msgid "This is the subject of the email that will be sent to you on form completion. If this is left blank, it will default to the 'Default Email Subject' provided in General Settings."
1775
  msgstr ""
1776
 
1777
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:300
1778
  msgid "Can View Form:"
1779
  msgstr ""
1780
 
1781
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:302
1782
  msgid "This lets you choose which types of users can view your form. If you want everyone to see the form, check all the boxes. If a user doesn't have access to the form, they will not be able to see it."
1783
  msgstr ""
1784
 
1785
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:305
1786
  msgid "Attach Fields:"
1787
  msgstr ""
1788
 
1789
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:307
1790
  msgid "After creating a form you are given the option to attach (and detach) fields to that specific form. Forms are useless until you attach fields."
1791
  msgstr ""
1792
 
1793
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:311
1794
  msgid "The form success message and success title apply to a popover that fades in after someone successfully completes a form (that does not have a custom success URL provided). The image below will help to give you a feel to how the popover will look and where the title and message actually show up."
1795
  msgstr ""
1796
 
1797
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:317
1798
  msgid "Style Manager"
1799
  msgstr ""
1800
 
1801
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:320
1802
  msgid "The style manager allows you to customize the appearance of forms without any knowledge of CSS. There are a ton of parameters you can fill out with each style and all of them are pretty self-explanitory. After you create a style, you need to go to the form manager and set the form style to the new style you created (the slug will be what shows in the 'Form Style' dropdown)."
1803
  msgstr ""
1804
 
1805
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:323
1806
  msgid "The image below will help you better understand how each style option will change your forms."
1807
  msgstr ""
1808
 
1809
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:329
1810
  msgid "Custom HTML Forms Feature (advanced)"
1811
  msgstr ""
1812
 
1813
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:332
1814
  msgid "If you know HTML and simply want to use this plugin to process form requests, this feature is for you. The following HTML is a the framework to which you must adhere. In order for your form to work you MUST do the following:"
1815
  msgstr ""
1816
 
1817
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:336
1818
  msgid "Keep the form action/method the same (yes the action is supposed to be empty)."
1819
  msgstr ""
1820
 
1821
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:339
1822
  msgid "Include all the hidden fields shown below."
1823
  msgstr ""
1824
 
1825
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:342
1826
  msgid "Provide a hidden field with a success message or thank you page (both hidden fields are included below, you must choose one or the other and fill in the value part of the input field appropriately)."
1827
  msgstr ""
1828
 
1829
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:346
1830
  msgid "Just to be clear, you don't edit the code in the Custom HTML Forms feature within the admin panel. Instead, you copy the code in to the page, post, or theme file you want to display a form, then edit the code to look how you want following the guidelines provided above."
1831
  msgstr ""
1832
 
1833
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:354
1834
  msgid "This features saves each user form submission. All the fields attached to the form along with the time of submission and form URL are saved in the database and displayed in a stylish format in the admin panel."
1835
  msgstr ""
1836
 
1837
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:359
1838
  msgid "Import / Export"
1839
  msgstr ""
1840
 
1841
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:362
1842
  msgid ""
1843
  "Import/export is a new feature that allows you to transfer forms, fields, field options, styles and everything else saved by the plugin between Wordpress installations. Clicking the Export All button will create a .SQL file for download. With the .SQL export file you can use the importer within the CCF plugin admin page to import the .SQL file. The built-in importer is completely safe as long as you only import files that have been generated by the CCF exporter. \n"
1844
  " You can also use PHPMyAdmin or any other MySQL database administration tool to run the import file. Importing a .SQL file will never overwrite any existing data. \n"
@@ -1846,31 +1911,31 @@ msgid ""
1846
  " If you are importing without using the built-in importer (such as PHPMyAdmin), then note the following: You should only run the import file on Wordpress installations that already have Custom Contact Forms installed; also you will need to change the table prefix for each query within the .SQL file."
1847
  msgstr ""
1848
 
1849
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:367
1850
  msgid "Custom Contact Forms allows you to import data in different ways."
1851
  msgstr ""
1852
 
1853
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:369
1854
  msgid "Clear and Import:"
1855
  msgstr ""
1856
 
1857
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:369
1858
  msgid "This is the safest way to import because it deletes all current content before importing. This is important because it prevents occurences of conflicting data ID's or slugs."
1859
  msgstr ""
1860
 
1861
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:371
1862
  msgid "You can also export data in different ways."
1863
  msgstr ""
1864
 
1865
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:373
1866
  msgid "Export All:"
1867
  msgstr ""
1868
 
1869
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:373
1870
  msgid "This exports all custom contact form data including your general settings in SQL format. This is allows you to easily create backups."
1871
  msgstr ""
1872
 
1873
- #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:375
1874
  msgid "More import/export methods will be added in the future. Always create a backup before attempting an import! * Note: If you are having problems getting the importer/exporter to work, try CHMODing the import/ and export/ directories to 0777."
1875
  msgstr ""
1876
 
2
  msgstr ""
3
  "Project-Id-Version: custom-contact-forms\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-05-28 15:02-0500\n"
6
+ "PO-Revision-Date: 2011-05-28 15:02-0500\n"
7
  "Last-Translator: Taylor Lovett <admin@taylorlovett.com>\n"
8
  "Language-Team: TaylorLovett.com <admin@taylorlovett.com>\n"
9
  "MIME-Version: 1.0\n"
21
  "X-Poedit-SearchPath-5: ../modules/widget\n"
22
 
23
  #: ../custom-contact-forms-admin.php:345
24
+ #: ../custom-contact-forms-admin.php:1871
25
+ #: ../custom-contact-forms-admin.php:2013
26
  msgid "Custom Contact Forms"
27
  msgstr ""
28
 
29
  #: ../custom-contact-forms-admin.php:347
30
+ #: ../custom-contact-forms-admin.php:1873
31
+ #: ../custom-contact-forms-admin.php:2015
32
  #: ../modules/usage_popover/custom-contact-forms-quick-start-popover.php:1
33
  msgid "Quick Start Guide"
34
  msgstr ""
35
 
36
  #: ../custom-contact-forms-admin.php:348
37
+ #: ../custom-contact-forms-admin.php:1874
38
+ #: ../custom-contact-forms-admin.php:2016
39
  msgid "Plugin Usage Manual"
40
  msgstr ""
41
 
52
  msgstr ""
53
 
54
  #: ../custom-contact-forms-admin.php:354
55
+ #: ../custom-contact-forms-admin.php:760
56
  msgid "Manage Fixed Fields"
57
  msgstr ""
58
 
59
  #: ../custom-contact-forms-admin.php:355
60
+ #: ../custom-contact-forms-admin.php:992
61
  msgid "Manage Forms"
62
  msgstr ""
63
 
70
  msgstr ""
71
 
72
  #: ../custom-contact-forms-admin.php:358
73
+ #: ../custom-contact-forms-admin.php:872
74
  msgid "Manage Field Options"
75
  msgstr ""
76
 
77
  #: ../custom-contact-forms-admin.php:359
78
+ #: ../custom-contact-forms-admin.php:1780
79
  msgid "Suggest a Feature"
80
  msgstr ""
81
 
82
  #: ../custom-contact-forms-admin.php:360
83
+ #: ../custom-contact-forms-admin.php:1777
84
  msgid "Bug Report"
85
  msgstr ""
86
 
87
  #: ../custom-contact-forms-admin.php:361
88
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:20
89
  msgid "Custom HTML Forms"
90
  msgstr ""
91
 
130
  msgstr ""
131
 
132
  #: ../custom-contact-forms-admin.php:405
133
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:137
134
  msgid "Field Label:"
135
  msgstr ""
136
 
137
  #: ../custom-contact-forms-admin.php:409
138
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:139
139
  msgid "The field label is displayed next to the field and is visible to the user."
140
  msgstr ""
141
 
142
  #: ../custom-contact-forms-admin.php:413
143
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:142
144
  msgid "Field Type:"
145
  msgstr ""
146
 
147
+ #: ../custom-contact-forms-admin.php:427
148
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:147
149
  msgid "Initial Value:"
150
  msgstr ""
151
 
152
+ #: ../custom-contact-forms-admin.php:432
153
  msgid ""
154
  "This is the initial value of the field. If you set the type as checkbox, it is recommend you set this to what the checkbox is implying. For example if I were creating the checkbox \n"
155
  "\t\t\t\t\t\t'Are you human?', I would set the initial value to 'Yes'."
156
  msgstr ""
157
 
158
+ #: ../custom-contact-forms-admin.php:434
159
  msgid "If you set the field type as 'Dropdown' or 'Radio', you should enter the slug of the"
160
  msgstr ""
161
 
162
+ #: ../custom-contact-forms-admin.php:435
163
  msgid "Create a Field Option"
164
  msgstr ""
165
 
166
+ #: ../custom-contact-forms-admin.php:435
167
  msgid "field option"
168
  msgstr ""
169
 
170
+ #: ../custom-contact-forms-admin.php:436
171
  msgid "you would like initially selected."
172
  msgstr ""
173
 
174
+ #: ../custom-contact-forms-admin.php:440
175
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:152
176
  msgid "Max Length:"
177
  msgstr ""
178
 
179
+ #: ../custom-contact-forms-admin.php:444
180
  msgid "0 for no limit; only applies to Text fields"
181
  msgstr ""
182
 
183
+ #: ../custom-contact-forms-admin.php:448
184
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:157
185
  msgid "Required Field:"
186
  msgstr ""
187
 
188
+ #: ../custom-contact-forms-admin.php:452
189
+ #: ../custom-contact-forms-admin.php:650
190
+ #: ../custom-contact-forms-admin.php:805
191
+ #: ../custom-contact-forms-admin.php:912
192
+ #: ../custom-contact-forms-admin.php:969
193
+ #: ../custom-contact-forms-admin.php:2056
194
+ #: ../custom-contact-forms-admin.php:2169
195
+ #: ../custom-contact-forms-admin.php:2215
196
+ #: ../custom-contact-forms-admin.php:2247
197
  msgid "No"
198
  msgstr ""
199
 
200
+ #: ../custom-contact-forms-admin.php:455
201
+ #: ../custom-contact-forms-admin.php:647
202
+ #: ../custom-contact-forms-admin.php:802
203
+ #: ../custom-contact-forms-admin.php:812
204
+ #: ../custom-contact-forms-admin.php:912
205
+ #: ../custom-contact-forms-admin.php:969
206
+ #: ../custom-contact-forms-admin.php:2053
207
+ #: ../custom-contact-forms-admin.php:2166
208
+ #: ../custom-contact-forms-admin.php:2212
209
+ #: ../custom-contact-forms-admin.php:2244
210
  msgid "Yes"
211
  msgstr ""
212
 
213
+ #: ../custom-contact-forms-admin.php:459
214
  msgid "If a field is required and a user leaves it blank, the plugin will display an error message (which you can customize using 'Field Error') explaining the problem."
215
  msgstr ""
216
 
217
+ #: ../custom-contact-forms-admin.php:463
218
+ #: ../custom-contact-forms-admin.php:669
219
+ #: ../custom-contact-forms-admin.php:834
220
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:162
221
  msgid "Field Instructions:"
222
  msgstr ""
223
 
224
+ #: ../custom-contact-forms-admin.php:467
225
+ #: ../custom-contact-forms-admin.php:667
226
+ #: ../custom-contact-forms-admin.php:832
227
  msgid "If this is filled out, a tooltip popover displaying this text will show when the field is selected."
228
  msgstr ""
229
 
230
+ #: ../custom-contact-forms-admin.php:471
231
+ #: ../custom-contact-forms-admin.php:674
232
+ #: ../custom-contact-forms-admin.php:828
233
  msgid "Field Class:"
234
  msgstr ""
235
 
236
+ #: ../custom-contact-forms-admin.php:475
237
  msgid "If you manage your own .css stylesheet, you can use this to attach a class to this field. Leaving this blank will do nothing."
238
  msgstr ""
239
 
240
+ #: ../custom-contact-forms-admin.php:479
241
+ #: ../custom-contact-forms-admin.php:679
242
+ #: ../custom-contact-forms-admin.php:839
243
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:167
244
  msgid "Field Error:"
245
  msgstr ""
246
 
247
+ #: ../custom-contact-forms-admin.php:483
248
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:169
249
  msgid "If a user leaves this field blank and the field is required, this error message will be shown. A generic default will show if left blank."
250
  msgstr ""
251
 
252
+ #: ../custom-contact-forms-admin.php:488
253
  msgid "Create Field"
254
  msgstr ""
255
 
256
+ #: ../custom-contact-forms-admin.php:490
257
  msgid "If this is a dropdown or radio field, you should go to the field manager below to attach field options after you create it."
258
  msgstr ""
259
 
260
+ #: ../custom-contact-forms-admin.php:499
261
  msgid "Create A Form"
262
  msgstr ""
263
 
264
+ #: ../custom-contact-forms-admin.php:506
265
  msgid "Form Slug:"
266
  msgstr ""
267
 
268
+ #: ../custom-contact-forms-admin.php:510
269
  msgid "This is just a unique way for CCF to refer to your form. Must be unique from other slugs and contain only underscores and alphanumeric characters."
270
  msgstr ""
271
 
272
+ #: ../custom-contact-forms-admin.php:514
273
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:247
274
  msgid "Form Title:"
275
  msgstr ""
276
 
277
+ #: ../custom-contact-forms-admin.php:517
278
  msgid "This text is displayed above the form as the heading."
279
  msgstr ""
280
 
281
+ #: ../custom-contact-forms-admin.php:521
282
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:262
283
  msgid "Form Style:"
284
  msgstr ""
285
 
286
+ #: ../custom-contact-forms-admin.php:526
287
  msgid "Click to create a style"
288
  msgstr ""
289
 
290
+ #: ../custom-contact-forms-admin.php:529
291
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:267
292
  msgid "Submit Button Text:"
293
  msgstr ""
294
 
295
+ #: ../custom-contact-forms-admin.php:535
296
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:277
297
  msgid "Form Destination Email:"
298
  msgstr ""
299
 
300
+ #: ../custom-contact-forms-admin.php:539
301
  msgid "Will receive all submissions from this form; if left blank it will use the default specified in general settings."
302
  msgstr ""
303
 
304
+ #: ../custom-contact-forms-admin.php:543
305
  msgid "Form Email Subject:"
306
  msgstr ""
307
 
308
+ #: ../custom-contact-forms-admin.php:547
309
  msgid "When submitted and configured accordingly, the form will send an email with this subject."
310
  msgstr ""
311
 
312
+ #: ../custom-contact-forms-admin.php:551
313
  msgid "Form Email Name:"
314
  msgstr ""
315
 
316
+ #: ../custom-contact-forms-admin.php:555
317
  msgid "When submitted and configured accordingly, the form will send an email with this as the email 'from name'."
318
  msgstr ""
319
 
320
+ #: ../custom-contact-forms-admin.php:559
321
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:282
322
  msgid "Form Success Message:"
323
  msgstr ""
324
 
325
+ #: ../custom-contact-forms-admin.php:563
326
+ #: ../custom-contact-forms-admin.php:571
327
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:289
328
  msgid "Will be displayed in a popover when the form is filled out successfully when no custom success page is specified; if left blank it will use the default specified in general settings."
329
  msgstr ""
330
 
331
+ #: ../custom-contact-forms-admin.php:567
332
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:287
333
  msgid "Form Success Message Title:"
334
  msgstr ""
335
 
336
+ #: ../custom-contact-forms-admin.php:575
337
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:292
338
  msgid "Custom Success URL:"
339
  msgstr ""
340
 
341
+ #: ../custom-contact-forms-admin.php:579
342
  msgid "If this is filled out, users will be sent to this page when they successfully fill out this form. If it is left blank, a popover showing the form's 'success message' will be displayed on form success."
343
  msgstr ""
344
 
345
+ #: ../custom-contact-forms-admin.php:582
346
  msgid "Who Can View This Form:"
347
  msgstr ""
348
 
349
+ #: ../custom-contact-forms-admin.php:598
350
  msgid "Choose which types of users should be able to view this form."
351
  msgstr ""
352
 
353
+ #: ../custom-contact-forms-admin.php:602
354
  msgid "Create Form"
355
  msgstr ""
356
 
357
+ #: ../custom-contact-forms-admin.php:604
358
  msgid "You should go to the form manager below to attach fields to this form after you create it."
359
  msgstr ""
360
 
361
+ #: ../custom-contact-forms-admin.php:611
362
  msgid "Manage User Fields"
363
  msgstr ""
364
 
 
 
 
 
 
 
 
 
 
 
 
365
  #: ../custom-contact-forms-admin.php:618
366
  #: ../custom-contact-forms-admin.php:742
367
  #: ../custom-contact-forms-admin.php:767
368
  #: ../custom-contact-forms-admin.php:854
369
  #: ../custom-contact-forms-admin.php:881
370
  #: ../custom-contact-forms-admin.php:890
371
+ #: ../custom-contact-forms-admin.php:1000
372
+ #: ../custom-contact-forms-admin.php:1152
373
+ msgid "Slug"
374
  msgstr ""
375
 
376
  #: ../custom-contact-forms-admin.php:619
377
  #: ../custom-contact-forms-admin.php:743
378
  #: ../custom-contact-forms-admin.php:768
379
  #: ../custom-contact-forms-admin.php:855
380
+ #: ../custom-contact-forms-admin.php:882
381
+ #: ../custom-contact-forms-admin.php:891
382
+ msgid "Label"
383
  msgstr ""
384
 
385
  #: ../custom-contact-forms-admin.php:620
386
  #: ../custom-contact-forms-admin.php:744
387
  #: ../custom-contact-forms-admin.php:769
388
  #: ../custom-contact-forms-admin.php:856
389
+ msgid "Type"
390
  msgstr ""
391
 
392
  #: ../custom-contact-forms-admin.php:621
393
  #: ../custom-contact-forms-admin.php:745
394
  #: ../custom-contact-forms-admin.php:770
395
  #: ../custom-contact-forms-admin.php:857
396
+ msgid "Initial Value"
397
  msgstr ""
398
 
399
  #: ../custom-contact-forms-admin.php:622
400
  #: ../custom-contact-forms-admin.php:746
401
  #: ../custom-contact-forms-admin.php:771
402
  #: ../custom-contact-forms-admin.php:858
403
+ msgid "Required"
404
+ msgstr ""
405
+
406
+ #: ../custom-contact-forms-admin.php:623
407
+ #: ../custom-contact-forms-admin.php:747
408
+ #: ../custom-contact-forms-admin.php:772
409
+ #: ../custom-contact-forms-admin.php:859
410
  msgid "Maxlength"
411
  msgstr ""
412
 
413
+ #: ../custom-contact-forms-admin.php:672
414
+ #: ../custom-contact-forms-admin.php:827
415
  msgid "If you manage a .CSS file for your theme, you could create a class in that file and add it to this field. If the form attaching this field is using a \"Form Style\" other than the default, styles inherited from the \"Field Class\" might be overwritten."
416
  msgstr ""
417
 
418
+ #: ../custom-contact-forms-admin.php:677
419
+ #: ../custom-contact-forms-admin.php:837
420
  msgid "This lets you customize the error message displayed when this field is required and left blank."
421
  msgstr ""
422
 
423
+ #: ../custom-contact-forms-admin.php:709
424
  msgid "Detach field options you"
425
  msgstr ""
426
 
427
+ #: ../custom-contact-forms-admin.php:711
428
+ #: ../custom-contact-forms-admin.php:1131
429
  msgid "create"
430
  msgstr ""
431
 
432
+ #: ../custom-contact-forms-admin.php:728
433
  msgid "Attach field options in the order you want them to display."
434
  msgstr ""
435
 
 
 
 
 
 
 
 
 
 
436
  #: ../custom-contact-forms-admin.php:753
437
  #: ../custom-contact-forms-admin.php:865
438
  #: ../custom-contact-forms-admin.php:928
439
+ #: ../custom-contact-forms-admin.php:1164
440
+ #: ../custom-contact-forms-admin.php:1734
441
+ #: ../custom-contact-forms-admin.php:1967
442
+ msgid "Bulk Actions"
443
  msgstr ""
444
 
445
  #: ../custom-contact-forms-admin.php:754
446
+ #: ../custom-contact-forms-admin.php:866
447
  #: ../custom-contact-forms-admin.php:929
448
+ #: ../custom-contact-forms-admin.php:1165
449
+ #: ../custom-contact-forms-admin.php:1735
450
+ msgid "Save"
 
451
  msgstr ""
452
 
453
  #: ../custom-contact-forms-admin.php:755
 
454
  #: ../custom-contact-forms-admin.php:930
455
+ #: ../custom-contact-forms-admin.php:1166
456
+ #: ../custom-contact-forms-admin.php:1736
457
+ #: ../custom-contact-forms-admin.php:1968
458
+ msgid "Delete"
459
+ msgstr ""
460
+
461
+ #: ../custom-contact-forms-admin.php:756
462
+ #: ../custom-contact-forms-admin.php:867
463
+ #: ../custom-contact-forms-admin.php:931
464
+ #: ../custom-contact-forms-admin.php:1167
465
+ #: ../custom-contact-forms-admin.php:1737
466
+ #: ../custom-contact-forms-admin.php:1969
467
  msgid "Apply"
468
  msgstr ""
469
 
470
+ #: ../custom-contact-forms-admin.php:788
471
+ #: ../custom-contact-forms-admin.php:819
472
+ #: ../custom-contact-forms-admin.php:2343
473
  msgid "None"
474
  msgstr ""
475
 
476
+ #: ../custom-contact-forms-admin.php:883
477
+ #: ../custom-contact-forms-admin.php:892
478
  msgid "Value"
479
  msgstr ""
480
 
481
+ #: ../custom-contact-forms-admin.php:884
482
+ #: ../custom-contact-forms-admin.php:893
483
  msgid "Is Dead"
484
  msgstr ""
485
 
486
+ #: ../custom-contact-forms-admin.php:920
487
  msgid "No field options have been created."
488
  msgstr ""
489
 
490
+ #: ../custom-contact-forms-admin.php:938
491
  msgid "Create A Field Option"
492
  msgstr ""
493
 
494
+ #: ../custom-contact-forms-admin.php:945
495
  msgid "Option Slug:"
496
  msgstr ""
497
 
498
+ #: ../custom-contact-forms-admin.php:949
499
  msgid "Used to identify this option, solely for admin purposes; must be unique, and contain only letters, numbers, and underscores. Example: 'slug_one'"
500
  msgstr ""
501
 
502
+ #: ../custom-contact-forms-admin.php:953
503
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:214
504
  msgid "Option Label:"
505
  msgstr ""
506
 
507
+ #: ../custom-contact-forms-admin.php:957
508
  msgid "This is what is shown to the user in the dropdown or radio field. Example: 'United States'"
509
  msgstr ""
510
 
511
+ #: ../custom-contact-forms-admin.php:961
512
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:219
513
  msgid "Option Value:"
514
  msgstr ""
515
 
516
+ #: ../custom-contact-forms-admin.php:963
517
  msgid "This is the actual value of the option which is not shown to the user. This can be the same thing as the label. An example pairing of label => value is: 'The color green' => 'green' or 'Yes' => '1'."
518
  msgstr ""
519
 
520
+ #: ../custom-contact-forms-admin.php:965
521
  msgid "This is the actual value of the option which is not shown to the user. This can be the same thing as the label. An example pairing of label => value is: \"The color green\" => \"green\" or \"Yes\" => \"1\"."
522
  msgstr ""
523
 
524
+ #: ../custom-contact-forms-admin.php:968
525
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:224
526
  msgid "Is Dead Option:"
527
  msgstr ""
528
 
529
+ #: ../custom-contact-forms-admin.php:970
530
  msgid "A dead option is something like 'Please Select One'. This is a useful tool for required dropdown fields. If a dead option is submitted by a user for a required dropdown field, then the user will have to go back and fill out the field again."
531
  msgstr ""
532
 
533
+ #: ../custom-contact-forms-admin.php:974
534
  msgid "Create Field Option"
535
  msgstr ""
536
 
537
+ #: ../custom-contact-forms-admin.php:984
538
  msgid "Rate This Plugin"
539
  msgstr ""
540
 
541
+ #: ../custom-contact-forms-admin.php:985
542
  msgid "We need your help to continue development! Please <span>rate this plugin</span> to show your support."
543
  msgstr ""
544
 
545
+ #: ../custom-contact-forms-admin.php:999
546
  msgid "Form Display Code"
547
  msgstr ""
548
 
549
+ #: ../custom-contact-forms-admin.php:1001
550
+ #: ../custom-contact-forms-admin.php:1153
551
  msgid "Destination Email"
552
  msgstr ""
553
 
554
+ #: ../custom-contact-forms-admin.php:1002
555
+ #: ../custom-contact-forms-admin.php:1154
556
  msgid "Title"
557
  msgstr ""
558
 
559
+ #: ../custom-contact-forms-admin.php:1003
560
+ #: ../custom-contact-forms-admin.php:1155
561
  msgid "Button Text"
562
  msgstr ""
563
 
564
+ #: ../custom-contact-forms-admin.php:1004
565
+ #: ../custom-contact-forms-admin.php:1156
566
  msgid "Style"
567
  msgstr ""
568
 
569
+ #: ../custom-contact-forms-admin.php:1037
570
  msgid "Method"
571
  msgstr ""
572
 
573
+ #: ../custom-contact-forms-admin.php:1038
574
  msgid "Form Action"
575
  msgstr ""
576
 
577
+ #: ../custom-contact-forms-admin.php:1039
578
  msgid "Email Subject"
579
  msgstr ""
580
 
581
+ #: ../custom-contact-forms-admin.php:1040
582
  msgid "Email From Name"
583
  msgstr ""
584
 
585
+ #: ../custom-contact-forms-admin.php:1041
586
  msgid "Success Message Title"
587
  msgstr ""
588
 
589
+ #: ../custom-contact-forms-admin.php:1042
590
  msgid "Success Message"
591
  msgstr ""
592
 
593
+ #: ../custom-contact-forms-admin.php:1043
594
  msgid "Custom Success URL"
595
  msgstr ""
596
 
597
+ #: ../custom-contact-forms-admin.php:1046
598
  msgid "The Form Method is the method by which information is transfer through your form. If you aren't an expert with HTML and PHP, leave this as Post."
599
  msgstr ""
600
 
601
+ #: ../custom-contact-forms-admin.php:1050
602
  msgid "This lets you process your forms through alternate scripts. If you use a service like InfusionSoft or Aweber, set this to be the same form action as the code provided to you by that service, otherwise leave this blank."
603
  msgstr ""
604
 
605
+ #: ../custom-contact-forms-admin.php:1052
606
  msgid "This is the form email subject sent to the destination email address. If left blank, the default from General Settings will be used."
607
  msgstr ""
608
 
609
+ #: ../custom-contact-forms-admin.php:1054
610
  msgid "This is the from name of the email sent on successful form submission. If left blank, the default from General Settings will be used."
611
  msgstr ""
612
 
613
+ #: ../custom-contact-forms-admin.php:1056
614
  msgid "This will be displayed as the header in a popover when the form is filled out successfully when no custom success page is specified; if left blank it will use the default specified in general settings."
615
  msgstr ""
616
 
617
+ #: ../custom-contact-forms-admin.php:1058
618
  msgid "This will be displayed in a popover when the form is filled out successfully when no custom success page is specified; if left blank it will use the default specified in general settings."
619
  msgstr ""
620
 
621
+ #: ../custom-contact-forms-admin.php:1060
622
  msgid "If this is filled out, users will be sent to this thank you page when they successfully fill out this form. If it is left blank, a popover showing the form's 'success message' will be displayed on form success."
623
  msgstr ""
624
 
625
+ #: ../custom-contact-forms-admin.php:1064
626
  msgid "The form display code above ([customcontact form=x]) will only work in Wordpress pages and posts. If you want to display this form in a theme file such as page.php, header.php, index.php, category.php, etc, then insert this PHP snippet."
627
  msgstr ""
628
 
629
+ #: ../custom-contact-forms-admin.php:1065
630
  msgid "Code to Display Form in Theme Files:"
631
  msgstr ""
632
 
633
+ #: ../custom-contact-forms-admin.php:1068
634
  msgid "This field allows you to insert HTML directly after the starting <form> tag."
635
  msgstr ""
636
 
637
+ #: ../custom-contact-forms-admin.php:1069
638
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:272
639
  msgid "Custom Code:"
640
  msgstr ""
641
 
642
  #: ../custom-contact-forms-admin.php:1071
643
+ msgid "Insert the page id's that your form will be used on. This will make it so the plugin will only load JS and CSS files on these select pages. This will improve your site's load time."
644
+ msgstr ""
645
+
646
+ #: ../custom-contact-forms-admin.php:1072
647
+ msgid "Form Pages:"
648
+ msgstr ""
649
+
650
+ #: ../custom-contact-forms-admin.php:1075
651
  msgid "If you want to show this form to only certain types of users, you can uncheck boxes accordingly. To show this form to anyone, check all the boxes. This will only take effect if 'Form Access Capabilities' is enabled in general settings."
652
  msgstr ""
653
 
654
+ #: ../custom-contact-forms-admin.php:1094
655
  msgid "Attached Fields:"
656
  msgstr ""
657
 
658
+ #: ../custom-contact-forms-admin.php:1114
659
  msgid "Attach fields in the order you want them displayed."
660
  msgstr ""
661
 
662
+ #: ../custom-contact-forms-admin.php:1118
663
  msgid "Attach Field:"
664
  msgstr ""
665
 
666
+ #: ../custom-contact-forms-admin.php:1129
667
  msgid "Attach fixed fields or ones you"
668
  msgstr ""
669
 
670
+ #: ../custom-contact-forms-admin.php:1151
671
  msgid "Form Code"
672
  msgstr ""
673
 
674
+ #: ../custom-contact-forms-admin.php:1173
675
  msgid "Create A Style for Your Forms"
676
  msgstr ""
677
 
678
+ #: ../custom-contact-forms-admin.php:1177
679
  msgid "Use this manager to create styles for your forms. Each field is already filled out with nice look defaults. It is recommended you simply input a slug and click create to see the defaults before you start changing values."
680
  msgstr ""
681
 
682
+ #: ../custom-contact-forms-admin.php:1183
683
  msgid "Style Slug:"
684
  msgstr ""
685
 
686
+ #: ../custom-contact-forms-admin.php:1186
687
  msgid "(Must be unique)"
688
  msgstr ""
689
 
690
+ #: ../custom-contact-forms-admin.php:1190
691
+ #: ../custom-contact-forms-admin.php:1588
692
+ #: ../custom-contact-forms-admin.php:1597
693
  msgid "Title Font Size:"
694
  msgstr ""
695
 
696
+ #: ../custom-contact-forms-admin.php:1193
697
  msgid "(ex: 10pt, 10px, 1em)"
698
  msgstr ""
699
 
700
+ #: ../custom-contact-forms-admin.php:1197
701
+ #: ../custom-contact-forms-admin.php:1636
702
+ #: ../custom-contact-forms-admin.php:1704
703
  msgid "Title Font Color:"
704
  msgstr ""
705
 
706
+ #: ../custom-contact-forms-admin.php:1200
707
+ #: ../custom-contact-forms-admin.php:1221
708
+ #: ../custom-contact-forms-admin.php:1285
709
+ #: ../custom-contact-forms-admin.php:1386
710
+ #: ../custom-contact-forms-admin.php:1393
711
+ #: ../custom-contact-forms-admin.php:1421
712
  msgid "(ex: FF0000)"
713
  msgstr ""
714
 
715
+ #: ../custom-contact-forms-admin.php:1204
716
+ #: ../custom-contact-forms-admin.php:1561
717
  msgid "Label Width:"
718
  msgstr ""
719
 
720
+ #: ../custom-contact-forms-admin.php:1207
721
  msgid "(ex: 100px or 20%)"
722
  msgstr ""
723
 
724
+ #: ../custom-contact-forms-admin.php:1211
725
+ #: ../custom-contact-forms-admin.php:1602
726
  msgid "Label Font Size:"
727
  msgstr ""
728
 
729
+ #: ../custom-contact-forms-admin.php:1214
730
+ #: ../custom-contact-forms-admin.php:1379
731
  msgid "(ex: 10px, 10pt, 1em)"
732
  msgstr ""
733
 
734
+ #: ../custom-contact-forms-admin.php:1218
735
+ #: ../custom-contact-forms-admin.php:1641
736
  msgid "Label Font Color:"
737
  msgstr ""
738
 
739
+ #: ../custom-contact-forms-admin.php:1225
740
+ #: ../custom-contact-forms-admin.php:1528
741
  msgid "Text Field Width:"
742
  msgstr ""
743
 
744
+ #: ../custom-contact-forms-admin.php:1228
745
+ #: ../custom-contact-forms-admin.php:1235
746
+ #: ../custom-contact-forms-admin.php:1242
747
+ #: ../custom-contact-forms-admin.php:1322
748
  msgid "(ex: 100px or 100%)"
749
  msgstr ""
750
 
751
+ #: ../custom-contact-forms-admin.php:1232
752
  msgid "Textarea Field Width:"
753
  msgstr ""
754
 
755
+ #: ../custom-contact-forms-admin.php:1239
756
  msgid "Textarea Field Height:"
757
  msgstr ""
758
 
759
+ #: ../custom-contact-forms-admin.php:1246
760
+ #: ../custom-contact-forms-admin.php:1607
761
  msgid "Field Font Size:"
762
  msgstr ""
763
 
764
+ #: ../custom-contact-forms-admin.php:1249
765
  msgid "(ex: 10px, 10pt, 1em"
766
  msgstr ""
767
 
768
+ #: ../custom-contact-forms-admin.php:1253
769
+ #: ../custom-contact-forms-admin.php:1646
770
  msgid "Field Font Color:"
771
  msgstr ""
772
 
773
+ #: ../custom-contact-forms-admin.php:1256
774
+ #: ../custom-contact-forms-admin.php:1292
775
  msgid "(ex: 333333)"
776
  msgstr ""
777
 
778
+ #: ../custom-contact-forms-admin.php:1260
779
+ #: ../custom-contact-forms-admin.php:1695
780
  msgid "Field Border Style:"
781
  msgstr ""
782
 
783
+ #: ../custom-contact-forms-admin.php:1268
784
+ #: ../custom-contact-forms-admin.php:1656
785
  msgid "Form Margin:"
786
  msgstr ""
787
 
788
+ #: ../custom-contact-forms-admin.php:1271
789
+ #: ../custom-contact-forms-admin.php:1278
790
+ #: ../custom-contact-forms-admin.php:1400
791
+ #: ../custom-contact-forms-admin.php:1407
792
  msgid "(ex: 5px or 1em)"
793
  msgstr ""
794
 
795
+ #: ../custom-contact-forms-admin.php:1275
796
+ #: ../custom-contact-forms-admin.php:1548
797
  msgid "Label Margin:"
798
  msgstr ""
799
 
800
+ #: ../custom-contact-forms-admin.php:1282
801
  msgid "Textarea Background Color:"
802
  msgstr ""
803
 
804
+ #: ../custom-contact-forms-admin.php:1289
805
  msgid "Success Popover Font Color:"
806
  msgstr ""
807
 
808
+ #: ../custom-contact-forms-admin.php:1296
809
  msgid "Success Popover Title Font Size:"
810
  msgstr ""
811
 
812
+ #: ../custom-contact-forms-admin.php:1299
813
+ #: ../custom-contact-forms-admin.php:1306
814
+ #: ../custom-contact-forms-admin.php:1428
815
+ #: ../custom-contact-forms-admin.php:1451
816
  msgid "(ex: 12px, 1em, 100%)"
817
  msgstr ""
818
 
819
+ #: ../custom-contact-forms-admin.php:1303
820
+ #: ../custom-contact-forms-admin.php:1592
821
  msgid "Form Background Color:"
822
  msgstr ""
823
 
824
+ #: ../custom-contact-forms-admin.php:1310
825
  msgid "Tooltip Background Color:"
826
  msgstr ""
827
 
828
+ #: ../custom-contact-forms-admin.php:1313
829
  msgid "(ex: 000000 or black)"
830
  msgstr ""
831
 
832
+ #: ../custom-contact-forms-admin.php:1319
833
+ #: ../custom-contact-forms-admin.php:1690
834
  msgid "Field Border Color:"
835
  msgstr ""
836
 
837
+ #: ../custom-contact-forms-admin.php:1326
838
+ #: ../custom-contact-forms-admin.php:1673
839
  msgid "Form Border Style:"
840
  msgstr ""
841
 
842
+ #: ../custom-contact-forms-admin.php:1334
843
+ #: ../custom-contact-forms-admin.php:1685
844
  msgid "Form Border Color:"
845
  msgstr ""
846
 
847
+ #: ../custom-contact-forms-admin.php:1337
848
  msgid "(ex: 000000)"
849
  msgstr ""
850
 
851
+ #: ../custom-contact-forms-admin.php:1341
852
+ #: ../custom-contact-forms-admin.php:1680
853
  msgid "Form Border Width:"
854
  msgstr ""
855
 
856
+ #: ../custom-contact-forms-admin.php:1344
857
  msgid "(ex: 1px)"
858
  msgstr ""
859
 
860
+ #: ../custom-contact-forms-admin.php:1348
861
+ #: ../custom-contact-forms-admin.php:1523
862
  msgid "Form Width:"
863
  msgstr ""
864
 
865
+ #: ../custom-contact-forms-admin.php:1351
866
  msgid "(ex: 100px or 50%)"
867
  msgstr ""
868
 
869
+ #: ../custom-contact-forms-admin.php:1355
870
  msgid "Form Font Family:"
871
  msgstr ""
872
 
873
+ #: ../custom-contact-forms-admin.php:1358
874
  msgid "(ex: Verdana, Tahoma, Arial)"
875
  msgstr ""
876
 
877
+ #: ../custom-contact-forms-admin.php:1362
878
+ #: ../custom-contact-forms-admin.php:1566
879
  msgid "Button Width:"
880
  msgstr ""
881
 
882
+ #: ../custom-contact-forms-admin.php:1365
883
  msgid "(ex: 100px, 30%, auto)"
884
  msgstr ""
885
 
886
+ #: ../custom-contact-forms-admin.php:1369
887
+ #: ../custom-contact-forms-admin.php:1571
888
  msgid "Button Height:"
889
  msgstr ""
890
 
891
+ #: ../custom-contact-forms-admin.php:1372
892
  msgid "(ex: 100px or 30%)"
893
  msgstr ""
894
 
895
+ #: ../custom-contact-forms-admin.php:1376
896
+ #: ../custom-contact-forms-admin.php:1612
897
  msgid "Button Font Size:"
898
  msgstr ""
899
 
900
+ #: ../custom-contact-forms-admin.php:1383
901
+ #: ../custom-contact-forms-admin.php:1651
902
  msgid "Button Font Color:"
903
  msgstr ""
904
 
905
+ #: ../custom-contact-forms-admin.php:1390
906
+ #: ../custom-contact-forms-admin.php:1576
907
  msgid "Field Background Color:"
908
  msgstr ""
909
 
910
+ #: ../custom-contact-forms-admin.php:1397
911
+ #: ../custom-contact-forms-admin.php:1617
912
  msgid "Form Padding:"
913
  msgstr ""
914
 
915
+ #: ../custom-contact-forms-admin.php:1404
916
+ #: ../custom-contact-forms-admin.php:1581
917
  msgid "Title Margin:"
918
  msgstr ""
919
 
920
+ #: ../custom-contact-forms-admin.php:1411
921
+ #: ../custom-contact-forms-admin.php:1543
922
  msgid "Dropdown Width:"
923
  msgstr ""
924
 
925
+ #: ../custom-contact-forms-admin.php:1414
926
  msgid "(ex: 30px, 20%, or auto)"
927
  msgstr ""
928
 
929
+ #: ../custom-contact-forms-admin.php:1418
930
  msgid "Success Popover Border Color:"
931
  msgstr ""
932
 
933
+ #: ../custom-contact-forms-admin.php:1425
934
  msgid "Success Popover Font Size:"
935
  msgstr ""
936
 
937
+ #: ../custom-contact-forms-admin.php:1432
938
  msgid "Success Popover Height:"
939
  msgstr ""
940
 
941
+ #: ../custom-contact-forms-admin.php:1435
942
  msgid "(ex: 200px, 6em, 50%)"
943
  msgstr ""
944
 
945
+ #: ../custom-contact-forms-admin.php:1439
946
+ #: ../custom-contact-forms-admin.php:1709
947
  msgid "Field Border Roundness:"
948
  msgstr ""
949
 
950
+ #: ../custom-contact-forms-admin.php:1442
951
  msgid "(ex: 6px, or 0px)"
952
  msgstr ""
953
 
954
+ #: ../custom-contact-forms-admin.php:1446
955
+ #: ../custom-contact-forms-admin.php:1516
956
+ #: ../custom-contact-forms-admin.php:1629
957
  msgid "Tooltip"
958
  msgstr ""
959
 
960
+ #: ../custom-contact-forms-admin.php:1447
961
+ #: ../custom-contact-forms-admin.php:1517
962
+ #: ../custom-contact-forms-admin.php:1630
963
  msgid "A tooltip is the little box that fades in displaying 'Field Instructions' when a user selects a particular field."
964
  msgstr ""
965
 
966
+ #: ../custom-contact-forms-admin.php:1448
967
+ #: ../custom-contact-forms-admin.php:1624
968
  msgid "Font Size:"
969
  msgstr ""
970
 
971
+ #: ../custom-contact-forms-admin.php:1455
972
  msgid "Tooltip Font Color:"
973
  msgstr ""
974
 
975
+ #: ../custom-contact-forms-admin.php:1458
976
  msgid "(ex: ffffff or white)"
977
  msgstr ""
978
 
979
+ #: ../custom-contact-forms-admin.php:1462
980
  msgid "Create Style"
981
  msgstr ""
982
 
983
+ #: ../custom-contact-forms-admin.php:1470
984
  msgid "Manage Form Styles"
985
  msgstr ""
986
 
987
+ #: ../custom-contact-forms-admin.php:1492
988
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:132
989
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:209
990
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:242
991
  msgid "Slug:"
992
  msgstr ""
993
 
994
+ #: ../custom-contact-forms-admin.php:1497
995
  msgid "Font Family:"
996
  msgstr ""
997
 
998
+ #: ../custom-contact-forms-admin.php:1502
999
  msgid "Textarea Background"
1000
  msgstr ""
1001
 
1002
+ #: ../custom-contact-forms-admin.php:1504
1003
  msgid "Color:"
1004
  msgstr ""
1005
 
1006
+ #: ../custom-contact-forms-admin.php:1509
1007
+ #: ../custom-contact-forms-admin.php:1553
1008
+ #: ../custom-contact-forms-admin.php:1586
1009
+ #: ../custom-contact-forms-admin.php:1622
1010
+ #: ../custom-contact-forms-admin.php:1661
1011
+ #: ../custom-contact-forms-admin.php:1702
1012
  msgid "Success Popover"
1013
  msgstr ""
1014
 
1015
+ #: ../custom-contact-forms-admin.php:1511
1016
  msgid "Border Color:"
1017
  msgstr ""
1018
 
1019
+ #: ../custom-contact-forms-admin.php:1518
1020
+ #: ../custom-contact-forms-admin.php:1663
1021
  msgid "Font Color:"
1022
  msgstr ""
1023
 
1024
+ #: ../custom-contact-forms-admin.php:1533
1025
  msgid "Textarea Width:"
1026
  msgstr ""
1027
 
1028
+ #: ../custom-contact-forms-admin.php:1538
1029
  msgid "Textarea Height:"
1030
  msgstr ""
1031
 
1032
+ #: ../custom-contact-forms-admin.php:1555
1033
  msgid "Height:"
1034
  msgstr ""
1035
 
1036
+ #: ../custom-contact-forms-admin.php:1631
1037
  msgid "Background Color:"
1038
  msgstr ""
1039
 
1040
+ #: ../custom-contact-forms-admin.php:1668
1041
  msgid "Tooltip Font Size:"
1042
  msgstr ""
1043
 
1044
+ #: ../custom-contact-forms-admin.php:1742
1045
  msgid "Report a Bug/Suggest a Feature"
1046
  msgstr ""
1047
 
1048
+ #: ../custom-contact-forms-admin.php:1749
1049
  msgid "Your Name:"
1050
  msgstr ""
1051
 
1052
+ #: ../custom-contact-forms-admin.php:1755
1053
  msgid "Your Email:"
1054
  msgstr ""
1055
 
1056
+ #: ../custom-contact-forms-admin.php:1761
1057
  msgid "Who Hosts Your Website?"
1058
  msgstr ""
1059
 
1060
+ #: ../custom-contact-forms-admin.php:1767
1061
  msgid "Your Message:"
1062
  msgstr ""
1063
 
1064
+ #: ../custom-contact-forms-admin.php:1773
1065
  msgid "Purpose of this message:"
1066
  msgstr ""
1067
 
1068
+ #: ../custom-contact-forms-admin.php:1783
1069
  msgid "Plugin Question"
1070
  msgstr ""
1071
 
1072
+ #: ../custom-contact-forms-admin.php:1789
1073
  msgid "Version of Custom Contact Forms?"
1074
  msgstr ""
1075
 
1076
+ #: ../custom-contact-forms-admin.php:1795
1077
  msgid "Version of WordPress?"
1078
  msgstr ""
1079
 
1080
+ #: ../custom-contact-forms-admin.php:1801
1081
  msgid "Send Message"
1082
  msgstr ""
1083
 
1084
+ #: ../custom-contact-forms-admin.php:1809
1085
  msgid "Custom HTML Forms (Advanced)"
1086
  msgstr ""
1087
 
1088
+ #: ../custom-contact-forms-admin.php:1813
1089
  msgid ""
1090
  "If you know HTML and simply want to use this plugin to process form requests, this feature is for you. \n"
1091
  "\t\t\t\t\tThe following HTML is a the framework to which you must adhere. In order for your form to work you MUST do the following: a) Keep the form action/method the same (yes the action is supposed to be empty), b) Include all the hidden fields shown below, c) provide a \n"
1092
  "\t\t\t\t\thidden field with a success message or thank you page (both hidden fields are included below, you must choose one or the other and fill in the value part of the input field appropriately."
1093
  msgstr ""
1094
 
1095
+ #: ../custom-contact-forms-admin.php:1820
1096
  msgid "Thank you for filling out our form!"
1097
  msgstr ""
1098
 
1099
+ #: ../custom-contact-forms-admin.php:1825
1100
  msgid ""
1101
  "Paste all this code into a page or post and edit it to your liking. It is recommended you only use this feature if you are experienced with HTML. The destination_email \n"
1102
  "field specifies where emails will be sent on successful submission; you can have the form send to multiple addresses by separating email's with semi-colons (i.e. email@google.com; email2@google.com). \n"
1105
  "the field names you want required by commas. Remember to use underscores instead of spaces in field names!"
1106
  msgstr ""
1107
 
1108
+ #: ../custom-contact-forms-admin.php:1837
1109
+ msgid "Custom Contact Forms Plugin News"
1110
+ msgstr ""
1111
+
1112
+ #: ../custom-contact-forms-admin.php:1897
1113
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:358
1114
  msgid "Saved Form Submissions"
1115
  msgstr ""
1116
 
1117
+ #: ../custom-contact-forms-admin.php:1904
1118
+ #: ../custom-contact-forms-admin.php:1958
1119
  msgid "Date Submitted"
1120
  msgstr ""
1121
 
1122
+ #: ../custom-contact-forms-admin.php:1905
1123
+ #: ../custom-contact-forms-admin.php:1959
1124
  msgid "Form Submitted"
1125
  msgstr ""
1126
 
1127
+ #: ../custom-contact-forms-admin.php:1906
1128
+ #: ../custom-contact-forms-admin.php:1960
1129
  msgid "Form Page"
1130
  msgstr ""
1131
 
1132
+ #: ../custom-contact-forms-admin.php:1925
1133
  msgid "Custom HTML Form"
1134
  msgstr ""
1135
 
1136
+ #: ../custom-contact-forms-admin.php:2042
1137
  msgid "General Settings"
1138
  msgstr ""
1139
 
1140
+ #: ../custom-contact-forms-admin.php:2049
1141
  msgid "Email Form Submissions:"
1142
  msgstr ""
1143
 
1144
+ #: ../custom-contact-forms-admin.php:2061
1145
  msgid "When a user fills out one of your forms, the info submitted is saved in the Saved Form Submission section of the admin panel for you to view. If this is enabled, you will also be sent an email containing the submission info."
1146
  msgstr ""
1147
 
1148
+ #: ../custom-contact-forms-admin.php:2065
1149
  msgid "Default Email:"
1150
  msgstr ""
1151
 
1152
+ #: ../custom-contact-forms-admin.php:2070
1153
  msgid "Form emails will be sent <span>to</span> this address, if no destination email is specified by the form."
1154
  msgstr ""
1155
 
1156
+ #: ../custom-contact-forms-admin.php:2074
1157
  msgid "Front End JQuery:"
1158
  msgstr ""
1159
 
1160
+ #: ../custom-contact-forms-admin.php:2078
1161
+ #: ../custom-contact-forms-admin.php:2121
1162
+ #: ../custom-contact-forms-admin.php:2228
1163
+ #: ../custom-contact-forms-admin.php:2257
1164
+ #: ../custom-contact-forms-admin.php:2285
1165
  msgid "Enabled"
1166
  msgstr ""
1167
 
1168
+ #: ../custom-contact-forms-admin.php:2081
1169
+ #: ../custom-contact-forms-admin.php:2124
1170
+ #: ../custom-contact-forms-admin.php:2231
1171
+ #: ../custom-contact-forms-admin.php:2260
1172
+ #: ../custom-contact-forms-admin.php:2282
1173
  msgid "Disabled"
1174
  msgstr ""
1175
 
1176
+ #: ../custom-contact-forms-admin.php:2086
1177
  #, php-format
1178
  msgid "Some plugins don't setup JQuery correctly, so when any other plugin uses JQuery (whether correctly or not), JQuery works for neither plugin. This plugin uses JQuery correctly. If another plugin isn't using JQuery correctly but is more important to you than this one: disable this option. 99% of this plugin's functionality will work without JQuery, just no field instruction tooltips."
1179
  msgstr ""
1180
 
1181
+ #: ../custom-contact-forms-admin.php:2090
1182
  msgid "Default From Email:"
1183
  msgstr ""
1184
 
1185
+ #: ../custom-contact-forms-admin.php:2095
1186
  msgid "Form emails will be sent <span>from</span> this address. It is recommended you provide a real email address that has been created through your host."
1187
  msgstr ""
1188
 
1189
+ #: ../custom-contact-forms-admin.php:2099
1190
  msgid "Default From Name:"
1191
  msgstr ""
1192
 
1193
+ #: ../custom-contact-forms-admin.php:2104
1194
  msgid "This setting allows you to specify the name under which form emails are sent. The default is 'Custom Contact Forms'."
1195
  msgstr ""
1196
 
1197
+ #: ../custom-contact-forms-admin.php:2108
1198
  msgid "Default Email Subject:"
1199
  msgstr ""
1200
 
1201
+ #: ../custom-contact-forms-admin.php:2113
1202
  msgid "Default subject to be included in all form emails."
1203
  msgstr ""
1204
 
1205
+ #: ../custom-contact-forms-admin.php:2117
1206
  msgid "Enable Dashboard Widget:"
1207
  msgstr ""
1208
 
1209
+ #: ../custom-contact-forms-admin.php:2128
1210
  msgid "Enabling this will display a widget on your dashboard that shows the latest form submissions."
1211
  msgstr ""
1212
 
1213
+ #: ../custom-contact-forms-admin.php:2132
1214
  msgid "Dashboard Widget Accessibility:"
1215
  msgstr ""
1216
 
1217
+ #: ../custom-contact-forms-admin.php:2136
1218
  msgid "Only admins can view"
1219
  msgstr ""
1220
 
1221
+ #: ../custom-contact-forms-admin.php:2139
1222
  msgid "All roles except subscribers can view"
1223
  msgstr ""
1224
 
1225
+ #: ../custom-contact-forms-admin.php:2142
1226
  msgid "All roles can view"
1227
  msgstr ""
1228
 
1229
+ #: ../custom-contact-forms-admin.php:2146
1230
  msgid "If you are using the dashboard widget, this allows you to disallow certain users from viewing it."
1231
  msgstr ""
1232
 
1233
+ #: ../custom-contact-forms-admin.php:2150
1234
+ msgid "Use Code Type:"
1235
  msgstr ""
1236
 
1237
+ #: ../custom-contact-forms-admin.php:2158
1238
+ msgid "This lets you switch the form code between HTML and XHTML."
1239
+ msgstr ""
1240
+
1241
+ #: ../custom-contact-forms-admin.php:2162
1242
+ msgid "Restrict Frontend JS and CSS to Form Pages Only:"
1243
  msgstr ""
1244
 
1245
+ #: ../custom-contact-forms-admin.php:2173
1246
+ msgid "Within each form in the form manager, you can specify the page id's on which that form will be used. If you set this to 'Yes', the plugin will only include CSS and JS files on pages/posts where a CCF form is inserted. If this is set to 'No', CSS and JS files for this plugin will be included on every page of your site except in the admin area."
1247
+ msgstr ""
1248
+
1249
+ #: ../custom-contact-forms-admin.php:2180
1250
  msgid "Default Form Success Message Title:"
1251
  msgstr ""
1252
 
1253
+ #: ../custom-contact-forms-admin.php:2185
1254
  msgid "If someone fills out a form for which a success message title is not provided and a custom success page is not provided, the plugin will show a popover using this field as the window title."
1255
  msgstr ""
1256
 
1257
+ #: ../custom-contact-forms-admin.php:2190
1258
  msgid "Default Form Success Message:"
1259
  msgstr ""
1260
 
1261
+ #: ../custom-contact-forms-admin.php:2195
1262
  msgid "If someone fills out a form for which a success message is not provided and a custom success page is not provided, the plugin will show a popover containing this message."
1263
  msgstr ""
1264
 
1265
+ #: ../custom-contact-forms-admin.php:2199
1266
+ msgid "Default Form Error Header:"
1267
+ msgstr ""
1268
+
1269
+ #: ../custom-contact-forms-admin.php:2204
1270
+ msgid "When a form is filled out incorrectly, this message will be displayed followed by the individual field error messages."
1271
+ msgstr ""
1272
+
1273
+ #: ../custom-contact-forms-admin.php:2208
1274
  msgid "Remember Field Values:"
1275
  msgstr ""
1276
 
1277
+ #: ../custom-contact-forms-admin.php:2220
1278
  msgid "Selecting yes will make form fields remember how they were last filled out."
1279
  msgstr ""
1280
 
1281
+ #: ../custom-contact-forms-admin.php:2224
1282
  msgid "Tooltips in Widget:"
1283
  msgstr ""
1284
 
1285
+ #: ../custom-contact-forms-admin.php:2236
1286
  msgid "Enabling this shows tooltips containing field instructions on forms in the widget."
1287
  msgstr ""
1288
 
1289
+ #: ../custom-contact-forms-admin.php:2240
1290
  msgid "Hide Plugin Author Link in Code:"
1291
  msgstr ""
1292
 
1293
+ #: ../custom-contact-forms-admin.php:2253
1294
  msgid "Fancy Admin AJAX Abilities:"
1295
  msgstr ""
1296
 
1297
+ #: ../custom-contact-forms-admin.php:2265
1298
  msgid "If you enable this, creating, editing and modifying forms, fields, styles, etc in the admin panel will be done using AJAX. This means that clicking things like 'Edit' or 'Delete' will not cause the page to reload thus managing your forms will be much smoother and quicker. If you are having problems with things not saving, deleting, or inserting correctly, then disable this and fill out a bug report below."
1299
  msgstr ""
1300
 
1301
+ #: ../custom-contact-forms-admin.php:2269
1302
  msgid "Default Permissions Error:"
1303
  msgstr ""
1304
 
1305
+ #: ../custom-contact-forms-admin.php:2274
1306
  msgid "When someone doesn't have the proper permissions to use a form, this message is displayed in place of the form. You control who can view each form with the form access manager which is located inside the form manager."
1307
  msgstr ""
1308
 
1309
+ #: ../custom-contact-forms-admin.php:2278
1310
  msgid "Form Access Capabilities:"
1311
  msgstr ""
1312
 
1313
+ #: ../custom-contact-forms-admin.php:2290
1314
  msgid "The form access manager within each form allows you to control who can view your form. However, that will take effect on any of your forms unless this is enabled."
1315
  msgstr ""
1316
 
1317
+ #: ../custom-contact-forms-admin.php:2293
1318
  msgid "Show Sidebar Widget:"
1319
  msgstr ""
1320
 
1321
+ #: ../custom-contact-forms-admin.php:2298
1322
  msgid "On Homepage"
1323
  msgstr ""
1324
 
1325
+ #: ../custom-contact-forms-admin.php:2302
1326
  msgid "On Pages"
1327
  msgstr ""
1328
 
1329
+ #: ../custom-contact-forms-admin.php:2306
1330
  msgid "On Single Posts"
1331
  msgstr ""
1332
 
1333
+ #: ../custom-contact-forms-admin.php:2311
1334
  msgid "On Categories"
1335
  msgstr ""
1336
 
1337
+ #: ../custom-contact-forms-admin.php:2315
1338
  msgid "On Archives"
1339
  msgstr ""
1340
 
1341
+ #: ../custom-contact-forms-admin.php:2320
 
 
 
 
 
 
 
 
1342
  msgid "Update"
1343
  msgstr ""
1344
 
1345
+ #: ../custom-contact-forms-admin.php:2328
1346
  msgid "Mail Settings"
1347
  msgstr ""
1348
 
1349
+ #: ../custom-contact-forms-admin.php:2332
1350
  msgid "There are two ways you can send emails: using the PHP mail() function or using SMTP (secure/insecure). If you choose to use the PHP mail() function you can ignore all the other options. For some people Wordpress's default way of sending mail does not work; if for some reason your mail is being sent you should try the SMTP option."
1351
  msgstr ""
1352
 
1353
+ #: ../custom-contact-forms-admin.php:2333
1354
  msgid "* Send My Emails Using the Following:"
1355
  msgstr ""
1356
 
1357
+ #: ../custom-contact-forms-admin.php:2335
1358
  msgid "Wordpress Default"
1359
  msgstr ""
1360
 
1361
+ #: ../custom-contact-forms-admin.php:2336
1362
  msgid "SMTP"
1363
  msgstr ""
1364
 
1365
+ #: ../custom-contact-forms-admin.php:2337
1366
  msgid "(If mail isn't sending, try toggling this option.)"
1367
  msgstr ""
1368
 
1369
+ #: ../custom-contact-forms-admin.php:2340
1370
  msgid "SMTP Host:"
1371
  msgstr ""
1372
 
1373
+ #: ../custom-contact-forms-admin.php:2341
1374
  msgid "SMTP Port:"
1375
  msgstr ""
1376
 
1377
+ #: ../custom-contact-forms-admin.php:2342
1378
  msgid "Encryption:"
1379
  msgstr ""
1380
 
1381
+ #: ../custom-contact-forms-admin.php:2344
1382
  msgid "SSL"
1383
  msgstr ""
1384
 
1385
+ #: ../custom-contact-forms-admin.php:2345
1386
  msgid "TLS"
1387
  msgstr ""
1388
 
1389
+ #: ../custom-contact-forms-admin.php:2349
1390
  msgid "SMTP Authentication:"
1391
  msgstr ""
1392
 
1393
+ #: ../custom-contact-forms-admin.php:2349
1394
  msgid "None Needed"
1395
  msgstr ""
1396
 
1397
+ #: ../custom-contact-forms-admin.php:2349
1398
  msgid "Use SMTP Username/Password"
1399
  msgstr ""
1400
 
1401
+ #: ../custom-contact-forms-admin.php:2350
1402
  msgid "SMTP Username:"
1403
  msgstr ""
1404
 
1405
+ #: ../custom-contact-forms-admin.php:2351
1406
  msgid "SMTP Password:"
1407
  msgstr ""
1408
 
1409
+ #: ../custom-contact-forms-admin.php:2354
1410
  msgid "Save Mail Sending Options"
1411
  msgstr ""
1412
 
1413
+ #: ../custom-contact-forms-admin.php:2361
1414
  msgid "Export"
1415
  msgstr ""
1416
 
1417
+ #: ../custom-contact-forms-admin.php:2366
1418
  msgid ""
1419
  "Preforming a Custom Contact Forms export will create a file of the form \n"
1420
  "\t\t\t\t\t\tccf-export-xxxx.sql on your web server. The file created contains SQL that \n"
1421
  "\t\t\t\t\t\twill recreate all the plugin data on any Wordpress installation. After Custom Contact Forms creates the export file, you will be prompted to download it. You can use this file as a backup in case your Wordpress database gets ruined."
1422
  msgstr ""
1423
 
1424
+ #: ../custom-contact-forms-admin.php:2370
1425
  msgid "Export All CCF Plugin Content"
1426
  msgstr ""
1427
 
1428
+ #: ../custom-contact-forms-admin.php:2376
1429
  msgid "Import"
1430
  msgstr ""
1431
 
1432
+ #: ../custom-contact-forms-admin.php:2382
1433
  msgid "Browse to a CCF .sql export file to import Custom Contact Form data from another Wordpress installation to this one. Pressing the 'Clear and Import' button deletes all current data and then imports the selected file; this will not work for merging to data!. Clearing all CCF data before importing prevents any conflicts from occuring. Before you attempt an import, you should always download a backup, by clicking the 'Export All' button."
1434
  msgstr ""
1435
 
1436
+ #: ../custom-contact-forms-admin.php:2385
1437
  msgid "Choose What You Want to Use from the Import File:"
1438
  msgstr ""
1439
 
1440
+ #: ../custom-contact-forms-admin.php:2391
1441
  msgid "Use General Settings"
1442
  msgstr ""
1443
 
1444
+ #: ../custom-contact-forms-admin.php:2397
1445
+ #: ../custom-contact-forms-admin.php:2415
1446
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:5
1447
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:235
1448
  msgid "Forms"
1449
  msgstr ""
1450
 
1451
+ #: ../custom-contact-forms-admin.php:2403
1452
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:26
1453
  msgid "Form Submissions"
1454
  msgstr ""
1455
 
1456
+ #: ../custom-contact-forms-admin.php:2409
1457
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:8
1458
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:49
1459
  msgid "Fields"
1460
  msgstr ""
1461
 
1462
+ #: ../custom-contact-forms-admin.php:2421
1463
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:14
1464
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:202
1465
  msgid "Field Options"
1466
  msgstr ""
1467
 
1468
+ #: ../custom-contact-forms-admin.php:2427
1469
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:17
1470
  msgid "Styles"
1471
  msgstr ""
1472
 
1473
+ #: ../custom-contact-forms-admin.php:2433
1474
  msgid "Choose an Import File:"
1475
  msgstr ""
1476
 
1477
+ #: ../custom-contact-forms-admin.php:2437
1478
  msgid "Clear and Import"
1479
  msgstr ""
1480
 
1481
+ #: ../custom-contact-forms-admin.php:2439
1482
  msgid "Yes, I want to do this and have created a backup."
1483
  msgstr ""
1484
 
1491
  msgstr ""
1492
 
1493
  #: ../modules/usage_popover/custom-contact-forms-quick-start-popover.php:8
1494
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:41
1495
  msgid "Insert Default Content"
1496
  msgstr ""
1497
 
1508
  msgstr ""
1509
 
1510
  #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:11
1511
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:184
1512
  msgid "Fixed Fields"
1513
  msgstr ""
1514
 
1547
  msgstr ""
1548
 
1549
  #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:59
1550
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:73
1551
  msgid "This is a text field"
1552
  msgstr ""
1553
 
1554
  #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:63
1555
+ msgid "Date:"
1556
+ msgstr ""
1557
+
1558
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:66
1559
+ msgid "A Date field looks exactly the same as a Text field. But when a user clicks a Date field, a calender popover is displayed allowing a user to easily insert a date in to your form."
1560
  msgstr ""
1561
 
1562
  #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:70
1563
+ msgid "Textarea:"
1564
+ msgstr ""
1565
+
1566
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:77
1567
  msgid "Dropdown:"
1568
  msgstr ""
1569
 
1570
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:82
1571
  msgid "This is a dropdown field"
1572
  msgstr ""
1573
 
1574
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:85
1575
  msgid "Field Option 2!"
1576
  msgstr ""
1577
 
1578
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:88
1579
  msgid "Field Option 3!"
1580
  msgstr ""
1581
 
1582
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:91
1583
  msgid "Field Option 4!"
1584
  msgstr ""
1585
 
1586
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:94
1587
  msgid "Unlimited # of options allowed"
1588
  msgstr ""
1589
 
1590
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:100
1591
  msgid "Radio:"
1592
  msgstr ""
1593
 
1594
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:104
1595
  msgid "A radio field"
1596
  msgstr ""
1597
 
1598
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:106
1599
  msgid "Field Option 2"
1600
  msgstr ""
1601
 
1602
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:108
1603
  msgid "Field Option 3"
1604
  msgstr ""
1605
 
1606
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:112
1607
  msgid "Checkbox:"
1608
  msgstr ""
1609
 
1610
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:116
1611
  msgid "This is a checkbox field"
1612
  msgstr ""
1613
 
1614
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:120
1615
  msgid "(advanced) Hidden:"
1616
  msgstr ""
1617
 
1618
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:122
1619
  msgid "These fields are hidden (obviously), they allow you to pass hidden information within your forms. Great for using other form processors like Aweber or InfusionSoft."
1620
  msgstr ""
1621
 
1622
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:126
1623
  msgid "There are a variety of different options that you can use when creating a field,"
1624
  msgstr ""
1625
 
1626
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:128
1627
  msgid "denotes something required:"
1628
  msgstr ""
1629
 
1630
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:134
1631
  msgid "A slug is simply a way to identify your field. It can only contain underscores, letters, and numbers and must be unique."
1632
  msgstr ""
1633
 
1634
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:144
1635
  msgid "The six field types you can choose from are explained above."
1636
  msgstr ""
1637
 
1638
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:149
1639
  msgid "This is the initial value of the field. If you set the type as checkbox, it is recommend you set this to what the checkbox is implying. For example if I were creating the checkbox 'Are you human?', I would set the initial value to 'Yes'. If you set the field type as 'Dropdown' or 'Radio', you should enter the slug of the field option you would like initially selected (or just leave it blank and the first option attached will be selected)."
1640
  msgstr ""
1641
 
1642
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:154
1643
  msgid "This allows you to limit the amount of characters a user can enter in a field (does not apply to textareas as of version 3.5.5)"
1644
  msgstr ""
1645
 
1646
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:159
1647
  msgid "If a field is required and a user leaves it blank, the plugin will display an error message explaining the problem. The user will then have to go back and fill in the field properly."
1648
  msgstr ""
1649
 
1650
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:164
1651
  msgid "If this is filled out, a stylish tooltip popover displaying this text will show when the field is selected. This will only work if JQuery is enabled in general options."
1652
  msgstr ""
1653
 
1654
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:172
1655
  msgid "(advanced) Field Class:"
1656
  msgstr ""
1657
 
1658
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:174
1659
  msgid "This allows you to assign a CSS class to an individual field without affecting anything else. This is a great way to take the customization of your form to the next level."
1660
  msgstr ""
1661
 
1662
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:177
1663
  msgid "Field Options:"
1664
  msgstr ""
1665
 
1666
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:179
1667
  msgid "After you create a field, if it's field type is radio or dropdown, you can attach field options to the field. Field options are explained in the next section."
1668
  msgstr ""
1669
 
1670
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:187
1671
  msgid "The last important thing related to fields are <span>Fixed Fields</span>. Fixed Fields are special fields that come already created within the plugin such as the captcha spam blocker and email field. Fixed Fields do special things that you wouldn't be able to accomplish with normal fields; they cannot be deleted or created. For example, if you use the fixedEmail field, as opposed to creating your own email field. the users email will be checked to make sure it is valid, if it isn't a form error will be displayed. Below is a list of fixed fields and their descriptions."
1672
  msgstr ""
1673
 
1674
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:190
1675
  msgid "fixedEmail:"
1676
  msgstr ""
1677
 
1678
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:190
1679
  msgid "When attached to a form and set to required, this field will validate a user's email addresses. If a user's email is not valid, an error will be shown."
1680
  msgstr ""
1681
 
1682
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:191
1683
  msgid "captcha:"
1684
  msgstr ""
1685
 
1686
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:191
1687
  msgid "This field helps prevent spam by prompting users to copy numbers displayed on an image. If a user copies the numbers incorrectly, the form will show an error."
1688
  msgstr ""
1689
 
1690
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:192
1691
  msgid "fixedWebsite:"
1692
  msgstr ""
1693
 
1694
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:192
1695
  msgid "When attached to a form and set to required, this field will validate a user's website. If a user's website is not valid, an error will be shown."
1696
  msgstr ""
1697
 
1698
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:193
1699
  msgid "emailSubject:"
1700
  msgstr ""
1701
 
1702
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:193
1703
  msgid "This lets a user enter in an email subject that will carry over as the subject of the email sent to you on form completion"
1704
  msgstr ""
1705
 
1706
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:194
1707
  msgid "usaStates:"
1708
  msgstr ""
1709
 
1710
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:194
1711
  msgid "This field displays a dropdown of all the states in the US."
1712
  msgstr ""
1713
 
1714
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:195
1715
  msgid "allCountries:"
1716
  msgstr ""
1717
 
1718
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:195
1719
  msgid "This field displays a dropdown of all the countries in the world."
1720
  msgstr ""
1721
 
1722
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:196
1723
  msgid "resetButton:"
1724
  msgstr ""
1725
 
1726
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:196
1727
  msgid "Attaching this field adds a reset button right next to the submit button in your form."
1728
  msgstr ""
1729
 
1730
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:197
1731
  msgid "ishuman:"
1732
  msgstr ""
1733
 
1734
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:197
1735
  msgid "This field helps prevent spam by prompting users to check a box to verify that they are human. If the box is left unchecked, an error will be displayed and the user will have to go back."
1736
  msgstr ""
1737
 
1738
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:205
1739
  msgid "In the field section above, look at the radio or dropdown fields. See how they have multiple options within the field? Those are called Field Options. Field Options have their own manager. There are only three things you must fill in to create a field option."
1740
  msgstr ""
1741
 
1742
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:211
1743
  msgid "Used to identify the field option, solely for admin purposes; must be unique, and contain only letters, numbers, and underscores. Example: 'slug_one'."
1744
  msgstr ""
1745
 
1746
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:216
1747
  msgid "This is what is shown to the user in the dropdown or radio field."
1748
  msgstr ""
1749
 
1750
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:221
1751
  msgid "This is the actual value of the option which isn't shown to the user. This can be the same thing as the label. An example pairing of label => value is: 'The color green' => 'green' or 'Yes' => '1'. The option value is behind the scences; unseen by the user, but when a user fills out the form, the option value is what is actually emailed to you and stored in the database. For dropdown fields the option value is optional, <span>for radio fields it is required</span>."
1752
  msgstr ""
1753
 
1754
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:225
1755
  msgid "Please Select:"
1756
  msgstr ""
1757
 
1758
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:225
1759
  msgid "Option 1"
1760
  msgstr ""
1761
 
1762
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:225
1763
  msgid "Option 2"
1764
  msgstr ""
1765
 
1766
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:226
1767
  msgid "Dead options are only useful for required dropdown fields. The first field option \"Please Select\" would be a useful way to encorporate a dead option. Assume the field is required; if a user submitted that field and left it as \"Please Select:\", then the form would throw an error and the user would have to go back."
1768
  msgstr ""
1769
 
1770
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:230
1771
  msgid "Once you create field options, you can attach them (in the field manager) to radio and dropdown fields (that are already created). It is important to remember that after you create a dropdown or radio field, they will not work until you attach one or more field options."
1772
  msgstr ""
1773
 
1774
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:238
1775
  msgid "Forms bring everything together. Each form you create in the form manager shows a code to display that form in posts/pages as well as theme files. The post/page form display code looks like: [customcontact id=FORMID]. There are a number of parameters that you can fill out when creating and managing each of your forms."
1776
  msgstr ""
1777
 
1778
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:244
1779
  msgid "A slug is simply a way to identify your form. It can only contain underscores, letters, and numbers and must be unique. Example 'my_contact_form'"
1780
  msgstr ""
1781
 
1782
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:249
1783
  msgid "The form title is heading text shown at the top of the form to users. Here's an example: 'My Contact Form'."
1784
  msgstr ""
1785
 
1786
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:252
1787
  msgid "Form Method:"
1788
  msgstr ""
1789
 
1790
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:254
1791
  msgid "If you don't know what this is leave it as 'Post'. This allows you to change the way a form sends user information."
1792
  msgstr ""
1793
 
1794
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:257
1795
  msgid "Form Action:"
1796
  msgstr ""
1797
 
1798
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:259
1799
  msgid "This allows you to process your forms using 3rd party services or your own scripts. If you don't know what this is, then leave it blank. This is useful if you use a service like Aweber or InfusionSoft."
1800
  msgstr ""
1801
 
1802
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:264
1803
  msgid "This allows you to apply styles you create in the style manager to your forms. If you haven't created a custom style yet, just choose 'Default'."
1804
  msgstr ""
1805
 
1806
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:269
1807
  msgid "Here, you can specify the text that shows on the submit button."
1808
  msgstr ""
1809
 
1810
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:274
1811
  msgid "If unsure, leave blank. This field allows you to insert custom HTML directly after the starting form tag."
1812
  msgstr ""
1813
 
1814
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:279
1815
  msgid "Specify the email address(es) that should receive all form submissions. Seperate multiple email addresses with semi-colons (ex: email1@gmail.com;email2@gmail.com;email3@gmail.com). If you leave this blank it will revert to the default specified in general settings. You can set forms not to send email in General Settings."
1816
  msgstr ""
1817
 
1818
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:284
1819
  msgid "Will be displayed in a popover after the form is filled out successfully when no custom success page is specified; if left blank it will use the default specified in general settings."
1820
  msgstr ""
1821
 
1822
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:294
1823
  msgid "If this is filled out, users will be sent to this page when they successfully fill out the form. If it is left blank, a popover showing the form's 'success message' will be displayed on successful form submission."
1824
  msgstr ""
1825
 
1826
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:297
1827
  msgid "Email From Name:"
1828
  msgstr ""
1829
 
1830
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:299
1831
  msgid "The email sent to you on form completion will be from this name. If this is left blank, it will default to the 'Default From Name' provided in General Settings."
1832
  msgstr ""
1833
 
1834
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:302
1835
  msgid "Email Subject:"
1836
  msgstr ""
1837
 
1838
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:304
1839
  msgid "This is the subject of the email that will be sent to you on form completion. If this is left blank, it will default to the 'Default Email Subject' provided in General Settings."
1840
  msgstr ""
1841
 
1842
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:307
1843
  msgid "Can View Form:"
1844
  msgstr ""
1845
 
1846
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:309
1847
  msgid "This lets you choose which types of users can view your form. If you want everyone to see the form, check all the boxes. If a user doesn't have access to the form, they will not be able to see it."
1848
  msgstr ""
1849
 
1850
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:312
1851
  msgid "Attach Fields:"
1852
  msgstr ""
1853
 
1854
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:314
1855
  msgid "After creating a form you are given the option to attach (and detach) fields to that specific form. Forms are useless until you attach fields."
1856
  msgstr ""
1857
 
1858
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:318
1859
  msgid "The form success message and success title apply to a popover that fades in after someone successfully completes a form (that does not have a custom success URL provided). The image below will help to give you a feel to how the popover will look and where the title and message actually show up."
1860
  msgstr ""
1861
 
1862
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:324
1863
  msgid "Style Manager"
1864
  msgstr ""
1865
 
1866
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:327
1867
  msgid "The style manager allows you to customize the appearance of forms without any knowledge of CSS. There are a ton of parameters you can fill out with each style and all of them are pretty self-explanitory. After you create a style, you need to go to the form manager and set the form style to the new style you created (the slug will be what shows in the 'Form Style' dropdown)."
1868
  msgstr ""
1869
 
1870
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:330
1871
  msgid "The image below will help you better understand how each style option will change your forms."
1872
  msgstr ""
1873
 
1874
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:336
1875
  msgid "Custom HTML Forms Feature (advanced)"
1876
  msgstr ""
1877
 
1878
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:339
1879
  msgid "If you know HTML and simply want to use this plugin to process form requests, this feature is for you. The following HTML is a the framework to which you must adhere. In order for your form to work you MUST do the following:"
1880
  msgstr ""
1881
 
1882
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:343
1883
  msgid "Keep the form action/method the same (yes the action is supposed to be empty)."
1884
  msgstr ""
1885
 
1886
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:346
1887
  msgid "Include all the hidden fields shown below."
1888
  msgstr ""
1889
 
1890
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:349
1891
  msgid "Provide a hidden field with a success message or thank you page (both hidden fields are included below, you must choose one or the other and fill in the value part of the input field appropriately)."
1892
  msgstr ""
1893
 
1894
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:353
1895
  msgid "Just to be clear, you don't edit the code in the Custom HTML Forms feature within the admin panel. Instead, you copy the code in to the page, post, or theme file you want to display a form, then edit the code to look how you want following the guidelines provided above."
1896
  msgstr ""
1897
 
1898
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:361
1899
  msgid "This features saves each user form submission. All the fields attached to the form along with the time of submission and form URL are saved in the database and displayed in a stylish format in the admin panel."
1900
  msgstr ""
1901
 
1902
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:366
1903
  msgid "Import / Export"
1904
  msgstr ""
1905
 
1906
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:369
1907
  msgid ""
1908
  "Import/export is a new feature that allows you to transfer forms, fields, field options, styles and everything else saved by the plugin between Wordpress installations. Clicking the Export All button will create a .SQL file for download. With the .SQL export file you can use the importer within the CCF plugin admin page to import the .SQL file. The built-in importer is completely safe as long as you only import files that have been generated by the CCF exporter. \n"
1909
  " You can also use PHPMyAdmin or any other MySQL database administration tool to run the import file. Importing a .SQL file will never overwrite any existing data. \n"
1911
  " If you are importing without using the built-in importer (such as PHPMyAdmin), then note the following: You should only run the import file on Wordpress installations that already have Custom Contact Forms installed; also you will need to change the table prefix for each query within the .SQL file."
1912
  msgstr ""
1913
 
1914
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:374
1915
  msgid "Custom Contact Forms allows you to import data in different ways."
1916
  msgstr ""
1917
 
1918
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:376
1919
  msgid "Clear and Import:"
1920
  msgstr ""
1921
 
1922
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:376
1923
  msgid "This is the safest way to import because it deletes all current content before importing. This is important because it prevents occurences of conflicting data ID's or slugs."
1924
  msgstr ""
1925
 
1926
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:378
1927
  msgid "You can also export data in different ways."
1928
  msgstr ""
1929
 
1930
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:380
1931
  msgid "Export All:"
1932
  msgstr ""
1933
 
1934
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:380
1935
  msgid "This exports all custom contact form data including your general settings in SQL format. This is allows you to easily create backups."
1936
  msgstr ""
1937
 
1938
+ #: ../modules/usage_popover/custom-contact-forms-usage-popover.php:382
1939
  msgid "More import/export methods will be added in the future. Always create a backup before attempting an import! * Note: If you are having problems getting the importer/exporter to work, try CHMODing the import/ and export/ directories to 0777."
1940
  msgstr ""
1941
 
modules/db/custom-contact-forms-activate-db.php CHANGED
@@ -196,6 +196,8 @@ if (!class_exists('CustomContactFormsActivateDB')) {
196
  $wpdb->query("ALTER TABLE `" . CCF_FORMS_TABLE . "` ADD `form_email_name` VARCHAR(100) NOT NULL");
197
  if (!$this->columnExists('option_dead', CCF_FIELD_OPTIONS_TABLE))
198
  $wpdb->query("ALTER TABLE `" . CCF_FIELD_OPTIONS_TABLE . "` ADD `option_dead` INT( 1 ) NOT NULL DEFAULT '0'");
 
 
199
  $wpdb->query("ALTER TABLE `" . CCF_FORMS_TABLE . "` CHANGE `form_email` `form_email` TEXT NOT NULL");
200
  $wpdb->query("ALTER TABLE `" . CCF_FORMS_TABLE . "` CHANGE `form_fields` `form_fields` TEXT NOT NULL");
201
  $wpdb->query("ALTER TABLE `" . CCF_FIELDS_TABLE . "` CHANGE `field_label` `field_label` TEXT NOT NULL");
@@ -219,14 +221,11 @@ if (!class_exists('CustomContactFormsActivateDB')) {
219
  $emailSubject = array('field_slug' => 'emailSubject', 'field_required' => 1, 'field_label' => __('Email Subject', 'custom-contact-forms'), 'field_type' => 'Text', 'field_value' => '', 'field_maxlength' => '200', 'user_field' => 0, 'field_instructions' => 'Please enter a subject for the email.');
220
  $reset = array('field_slug' => 'resetButton', 'field_type' => 'Reset', 'field_value' => __('Reset Form', 'custom-contact-forms'), 'user_field' => 0);
221
  $states = array('field_slug' => 'usaStates', 'field_label' => __('Select a State', 'custom-contact-forms'), 'field_type' => 'Dropdown', 'user_field' => 0);
222
- //$dates = array('field_slug' => 'datePicker', 'field_label' => __('Pick a Date', 'custom-contact-forms'), 'field_type' => 'Text', 'user_field' => 0);
223
  $countries = array('field_slug' => 'allCountries', 'field_label' => __('Select a Country', 'custom-contact-forms'), 'field_type' => 'Dropdown', 'user_field' => 0);
224
  if (!$this->fieldSlugExists('captcha'))
225
  $this->insertField($captcha, true);
226
  if (!$this->fieldSlugExists('usaStates'))
227
  $this->insertField($states, true);
228
- /*if (!$this->fieldSlugExists('datePicker'))
229
- $this->insertField($dates, true);*/
230
  if (!$this->fieldSlugExists('allCountries'))
231
  $this->insertField($countries, true);
232
  if (!$this->fieldSlugExists('ishuman'))
196
  $wpdb->query("ALTER TABLE `" . CCF_FORMS_TABLE . "` ADD `form_email_name` VARCHAR(100) NOT NULL");
197
  if (!$this->columnExists('option_dead', CCF_FIELD_OPTIONS_TABLE))
198
  $wpdb->query("ALTER TABLE `" . CCF_FIELD_OPTIONS_TABLE . "` ADD `option_dead` INT( 1 ) NOT NULL DEFAULT '0'");
199
+ if (!$this->columnExists('form_pages', CCF_FORMS_TABLE))
200
+ $wpdb->query("ALTER TABLE `" . CCF_FORMS_TABLE . "` ADD `form_pages` VARCHAR(400) NOT NULL");
201
  $wpdb->query("ALTER TABLE `" . CCF_FORMS_TABLE . "` CHANGE `form_email` `form_email` TEXT NOT NULL");
202
  $wpdb->query("ALTER TABLE `" . CCF_FORMS_TABLE . "` CHANGE `form_fields` `form_fields` TEXT NOT NULL");
203
  $wpdb->query("ALTER TABLE `" . CCF_FIELDS_TABLE . "` CHANGE `field_label` `field_label` TEXT NOT NULL");
221
  $emailSubject = array('field_slug' => 'emailSubject', 'field_required' => 1, 'field_label' => __('Email Subject', 'custom-contact-forms'), 'field_type' => 'Text', 'field_value' => '', 'field_maxlength' => '200', 'user_field' => 0, 'field_instructions' => 'Please enter a subject for the email.');
222
  $reset = array('field_slug' => 'resetButton', 'field_type' => 'Reset', 'field_value' => __('Reset Form', 'custom-contact-forms'), 'user_field' => 0);
223
  $states = array('field_slug' => 'usaStates', 'field_label' => __('Select a State', 'custom-contact-forms'), 'field_type' => 'Dropdown', 'user_field' => 0);
 
224
  $countries = array('field_slug' => 'allCountries', 'field_label' => __('Select a Country', 'custom-contact-forms'), 'field_type' => 'Dropdown', 'user_field' => 0);
225
  if (!$this->fieldSlugExists('captcha'))
226
  $this->insertField($captcha, true);
227
  if (!$this->fieldSlugExists('usaStates'))
228
  $this->insertField($states, true);
 
 
229
  if (!$this->fieldSlugExists('allCountries'))
230
  $this->insertField($countries, true);
231
  if (!$this->fieldSlugExists('ishuman'))
modules/db/custom-contact-forms-db.php CHANGED
@@ -1,413 +1,418 @@
1
- <?php
2
- /*
3
- Custom Contact Forms Plugin
4
- By Taylor Lovett - http://www.taylorlovett.com
5
- Plugin URL: http://www.taylorlovett.com/wordpress-plugins
6
- */
7
- if (!class_exists('CustomContactFormsDB')) {
8
- class CustomContactFormsDB {
9
-
10
- function formatStyle($style) {
11
- return str_replace('#', '', str_replace(';', '', $style));
12
- }
13
-
14
- function insertForm($form) {
15
- global $wpdb;
16
- if (empty($form) or empty($form['form_slug']) or $this->formSlugExists($this->formatSlug($form['form_slug']))) return false;
17
- $form['form_slug'] = $this->formatSlug($form['form_slug']);
18
- $form['form_access'] = serialize($form['form_access']);
19
- $skip_encode = array('form_access');
20
- foreach ($form as $key => $value)
21
- if (!in_array($key, $skip_encode))
22
- $form[$key] = ccf_utils::encodeOption($value);
23
- $wpdb->insert(CCF_FORMS_TABLE, $form);
24
- return $wpdb->insert_id;
25
- }
26
-
27
- function insertField($field, $fixed = false) {
28
- global $wpdb;
29
- if (empty($field) or empty($field['field_slug']) or (array_key_exists($this->formatSlug($field['field_slug']), $GLOBALS['ccf_fixed_fields']) && !$fixed) or $this->fieldSlugExists($this->formatSlug($field['field_slug'])))
30
- return false;
31
- $field['field_slug'] = $this->formatSlug($field['field_slug']);
32
- foreach ($field as $key => $value)
33
- if (!is_array($value))
34
- $field[$key] = ccf_utils::encodeOption($value);
35
- $wpdb->insert(CCF_FIELDS_TABLE, $field);
36
- return $wpdb->insert_id;
37
- }
38
-
39
- function insertFieldOption($option) {
40
- global $wpdb;
41
- if (empty($option) or empty($option['option_slug']) or empty($option['option_label']) or $this->fieldOptionsSlugExists($this->formatSlug($option['option_slug']))) return false;
42
- $option['option_slug'] = $this->formatSlug($option['option_slug']);
43
- foreach ($option as $key => $value)
44
- $option[$key] = ccf_utils::encodeOption($value);
45
- $wpdb->insert(CCF_FIELD_OPTIONS_TABLE, $option);
46
- return $wpdb->insert_id;
47
- }
48
-
49
- function insertStyle($style) {
50
- global $wpdb;
51
- if (empty($style) or empty($style['style_slug']) or $this->styleSlugExists($this->formatSlug($style['style_slug']))) return false;
52
- $style['style_slug'] = $this->formatSlug($style['style_slug']);
53
- foreach ($style as $key => $value)
54
- $style[$key] = ccf_utils::encodeOption($value);
55
- $wpdb->insert(CCF_STYLES_TABLE, $style);
56
- return $wpdb->insert_id;
57
- }
58
-
59
- function serializeAllFormFields() {
60
- $forms = $this->selectAllForms();
61
- foreach ($forms as $form) {
62
- $fields = $form->form_fields;
63
- if (!is_serialized($fields)) {
64
- $this->updateForm(array('form_fields' => $this->old_getAttachedFieldsArray($fields)), $form->id);
65
- }
66
- }
67
- }
68
-
69
- function serializeAllFieldOptions() {
70
- $fields = $this->selectAllFields();
71
- foreach ($fields as $field) {
72
- $options = $field->field_options;
73
- if (!is_serialized($options)) {
74
- $this->updateField(array('field_options' => $this->old_getAttachedFieldsArray($options)), $field->id);
75
- }
76
- }
77
- }
78
-
79
- function updateForm($form, $fid, $skip_encode = array('form_access', 'form_fields')) {
80
- global $wpdb;
81
- if (!empty($form['form_slug'])) {
82
- $test = $this->selectForm('', $this->formatSlug($form['form_slug']));
83
- if (!empty($test) and $test->id != $fid) return false;
84
- $form['form_slug'] = $this->formatSlug($form['form_slug']);
85
- }
86
- if (!empty($form['form_access_update'])) {
87
- $form['form_access'] = serialize($form['form_access']);
88
- unset($form['form_access_update']);
89
- } elseif (!empty($form['form_access'])) unset($form['form_access']);
90
-
91
- if (isset($form['form_fields']))
92
- $form['form_fields'] = serialize(array_unique($form['form_fields']));
93
- foreach ($form as $key => $value)
94
- if (!in_array($key, $skip_encode))
95
- $form[$key] = ccf_utils::encodeOption($value);
96
- $wpdb->update(CCF_FORMS_TABLE, $form, array('id' => $fid));
97
- return true;
98
- }
99
-
100
- function updateField($field, $fid, $skip_encode = array('field_options')) {
101
- global $wpdb;
102
- if (!empty($field['field_slug'])) {
103
- $test = $this->selectField('', $this->formatSlug($field['field_slug']));
104
- if ((!empty($test) and $test->id != $fid) or array_key_exists($this->formatSlug($field['field_slug']), $GLOBALS['ccf_fixed_fields']))
105
- return false;
106
- $field['field_slug'] = $this->formatSlug($field['field_slug']);
107
- } if (isset($field['field_options']))
108
- $field['field_options'] = serialize(array_unique($field['field_options']));
109
- foreach ($field as $key => $value)
110
- if (!in_array($key, $skip_encode))
111
- $field[$key] = ccf_utils::encodeOption($value);
112
- $wpdb->update(CCF_FIELDS_TABLE, $field, array('id' => $fid));
113
- return true;
114
- }
115
-
116
- function updateFieldOption($option, $oid) {
117
- global $wpdb;
118
- if (!empty($option['option_slug'])) {
119
- $test = $this->selectFieldOption('', $this->formatSlug($option['option_slug']));
120
- if (!empty($test) and $test->id != $oid)
121
- return false;
122
- $option['option_slug'] = $this->formatSlug($option['option_slug']);
123
- }
124
- foreach ($option as $key => $value)
125
- $option[$key] = ccf_utils::encodeOption($value);
126
- $wpdb->update(CCF_FIELD_OPTIONS_TABLE, $option, array('id' => $oid));
127
- return true;
128
- }
129
-
130
- function updateStyle($style, $sid) {
131
- global $wpdb;
132
- if (empty($style['style_slug'])) return false;
133
- $test = $this->selectStyle('', $this->formatSlug($style['style_slug']));
134
- if (!empty($test) and $test->id != $sid) // if style_slug is different then make sure it is unique
135
- return false;
136
- $style['style_slug'] = $this->formatSlug($style['style_slug']);
137
- foreach ($style as $key => $value)
138
- $style[$key] = ccf_utils::encodeOption($value);
139
- $wpdb->update(CCF_STYLES_TABLE, $style, array('id' => $sid));
140
- return true;
141
- }
142
-
143
- function deleteForm($fid, $slug = NULL) {
144
- global $wpdb;
145
- $where_params = ($slug == NULL) ? "id='$fid'" : "form_slug='$slug'";
146
- $wpdb->query("DELETE FROM " . CCF_FORMS_TABLE . ' WHERE ' . $where_params);
147
- return true;
148
- }
149
-
150
- function deleteField($fid, $slug = NULL) {
151
- global $wpdb;
152
- $this->detachFieldAll($fid);
153
- $where_params = ($slug == NULL) ? "id='$fid'" : "field_slug='$slug'";
154
- $wpdb->query("DELETE FROM " . CCF_FIELDS_TABLE . ' WHERE ' . $where_params);
155
- return false;
156
- }
157
-
158
- function query($query) {
159
- global $wpdb;
160
- if (empty($query)) return false;
161
- return ($wpdb->query($query) != false) ? $wpdb->insert_id : false;
162
- }
163
-
164
- function deleteStyle($sid, $slug = NULL) {
165
- global $wpdb;
166
- $this->detachStyleAll($sid);
167
- $where_params = ($slug == NULL) ? "id='$sid'" : "style_slug='$slug'";
168
- $wpdb->query("DELETE FROM " . CCF_STYLES_TABLE . ' WHERE ' . $where_params);
169
- return true;
170
- }
171
-
172
- function deleteFieldOption($oid, $slug = NULL) {
173
- global $wpdb;
174
- $this->detachFieldOptionAll($oid);
175
- $where_params = ($slug == NULL) ? "id='$oid'" : "option_slug='$slug'";
176
- $wpdb->query("DELETE FROM " . CCF_FIELD_OPTIONS_TABLE . ' WHERE ' . $where_params);
177
- return true;
178
- }
179
-
180
- function deleteUserData($uid) {
181
- global $wpdb;
182
- $wpdb->query("DELETE FROM " . CCF_USER_DATA_TABLE . " WHERE id='$uid'");
183
- return true;
184
- }
185
-
186
- function selectAllFromTable($table, $output_type = OBJECT) {
187
- global $wpdb;
188
- return $wpdb->get_results('SELECT * FROM ' . $table, $output_type);
189
- }
190
-
191
- function selectAllForms() {
192
- global $wpdb;
193
- return $wpdb->get_results("SELECT * FROM " . CCF_FORMS_TABLE . " ORDER BY form_slug ASC");
194
- }
195
-
196
- function selectAllFields() {
197
- global $wpdb;
198
- return $wpdb->get_results("SELECT * FROM " . CCF_FIELDS_TABLE . " ORDER BY field_slug ASC");
199
- }
200
-
201
- function selectAllFieldOptions($user_option = -1) {
202
- global $wpdb;
203
- return $wpdb->get_results("SELECT * FROM " . CCF_FIELD_OPTIONS_TABLE . " ORDER BY option_slug ASC");
204
- }
205
-
206
- function selectAllStyles() {
207
- global $wpdb;
208
- return $wpdb->get_results("SELECT * FROM " . CCF_STYLES_TABLE . " ORDER BY style_slug ASC");
209
- }
210
-
211
- function selectAllUserData() {
212
- global $wpdb;
213
- return $wpdb->get_results("SELECT * FROM " . CCF_USER_DATA_TABLE . " ORDER BY data_time DESC");
214
- }
215
-
216
- function selectForm($fid, $form_slug = '') {
217
- global $wpdb;
218
- $extra = (!empty($form_slug)) ? " or form_slug = '$form_slug'" : '';
219
- return $wpdb->get_row("SELECT * FROM " . CCF_FORMS_TABLE . " WHERE id='$fid' $extra");
220
- }
221
-
222
- function selectStyle($sid, $style_slug = '') {
223
- global $wpdb;
224
- $extra = (!empty($style_slug)) ? " or style_slug = '$style_slug'" : '';
225
- return $wpdb->get_row("SELECT * FROM " . CCF_STYLES_TABLE . " WHERE id='$sid' $extra");
226
- }
227
-
228
- function selectField($fid, $field_slug = '') {
229
- global $wpdb;
230
- $extra = (!empty($field_slug)) ? " or field_slug = '$field_slug'" : '';
231
- return $wpdb->get_row("SELECT * FROM " . CCF_FIELDS_TABLE . " WHERE id='$fid'" . $extra);
232
- }
233
-
234
- function selectFieldOption($oid, $option_slug = '') {
235
- global $wpdb;
236
- $extra = (!empty($option_slug)) ? " or option_slug = '$option_slug'" : '';
237
- return $wpdb->get_row("SELECT * FROM " . CCF_FIELD_OPTIONS_TABLE . " WHERE id='$oid'" . $extra);
238
- }
239
-
240
- function selectUserData($uid) {
241
- global $wpdb;
242
- return $wpdb->get_row("SELECT * FROM " . CCF_USER_DATA_TABLE . " WHERE id='$uid'");
243
- }
244
-
245
- function addFieldToForm($field_id, $form_id) {
246
- $field = $this->selectField($field_id);
247
- if (empty($field)) return false;
248
- $form = $this->selectForm($form_id);
249
- if (empty($form)) return false;
250
- $fields = $this->getAttachedFieldsArray($form_id);
251
- if (!in_array($field_id, $fields)) {
252
- $fields[] = $field_id;
253
- $this->updateForm(array('form_fields' => $fields), $form_id);
254
- return true;
255
- }
256
- return false;
257
- }
258
-
259
- function addFieldOptionToField($option_id, $field_id) {
260
- $option = $this->selectFieldOption($option_id);
261
- if (empty($option)) return false;
262
- $field = $this->selectField($field_id);
263
- if (empty($field)) return false;
264
- $options = $this->getAttachedFieldOptionsArray($field_id);
265
- if (!in_array($option_id, $options)) {
266
- $options[] = $option_id;
267
- $this->updateField(array('field_options' => $options), $field_id);
268
- return true;
269
- }
270
- return false;
271
- }
272
-
273
- function getAttachedFieldsArray($form_id) {
274
- $form = $this->selectForm($form_id);
275
- $out = unserialize($form->form_fields);
276
- if (!is_array($out)) return array();
277
- return (empty($out)) ? array() : $out;
278
- }
279
-
280
- function getAttachedFieldOptionsArray($field_id) {
281
- $field = $this->selectField($field_id);
282
- $out = unserialize($field->field_options);
283
- if (!is_array($out)) return array();
284
- return (empty($out)) ? array() : $out;
285
- }
286
-
287
- function old_getAttachedFieldsArray($fields) {
288
- if (empty($fields)) return array();
289
- $last_char = $fields[strlen($fields)-1];
290
- if ($last_char != ',') $fields .= ',';
291
- $out = explode(',', $fields);
292
- if (!empty($out)) array_pop($out);
293
- return $out;
294
- }
295
-
296
- function old_getAttachedFieldOptionsArray($options) {
297
- if (empty($options)) return array();
298
- $last_char = $options[strlen($options)-1];
299
- if ($last_char != ',') $options .= ',';
300
- $out = explode(',', $options);
301
- if (!empty($out)) array_pop($out);
302
- return $out;
303
- }
304
-
305
- function detachField($field_id, $form_id) {
306
- $fields = $this->getAttachedFieldsArray($form_id);
307
- if (!empty($fields) && in_array($field_id, $fields)) {
308
- unset($fields[array_search($field_id, $fields)]);
309
- $this->updateForm(array('form_fields' => $fields), $form_id);
310
- return true;
311
- }
312
- return false;
313
- }
314
-
315
- function detachFieldOption($option_id, $field_id) {
316
- $options = $this->getAttachedFieldOptionsArray($field_id);
317
- //var_dump($options);
318
- if (!empty($options) && in_array($option_id, $options)) {
319
- unset($options[array_search($option_id, $options)]);
320
- $this->updateField(array('field_options' => $options), $field_id);
321
- return true;
322
- }
323
- return false;
324
- }
325
-
326
- function detachFieldAll($field_id) {
327
- $forms = $this->selectAllForms();
328
- foreach ($forms as $form)
329
- $this->detachField($field_id, $form->id);
330
- return true;
331
- }
332
-
333
- function detachFieldOptionAll($option_id) {
334
- $fields = $this->selectAllFields();
335
- foreach ($fields as $field)
336
- $this->detachFieldOption($option_id, $field->id);
337
- return true;
338
- }
339
-
340
- function detachStyleAll($style_id) {
341
- $forms = $this->selectAllForms();
342
- foreach ($forms as $form) {
343
- if ($form->form_style == $style_id) {
344
- $this->updateForm(array('form_style' => 0), $form->id);
345
- }
346
- }
347
- return true;
348
- }
349
-
350
- function formatSlug($slug) {
351
- $slug = preg_replace('/[^a-z_ A-Z0-9\s]/', '', $slug);
352
- return str_replace(' ', '_', $slug);
353
- }
354
-
355
- function fieldSlugExists($slug) {
356
- $test = $this->selectField('', $slug);
357
- return (!empty($test));
358
- }
359
-
360
- function styleSlugExists($slug) {
361
- $test = $this->selectStyle('', $slug);
362
- return (!empty($test));
363
- }
364
-
365
- function formSlugExists($slug) {
366
- $test = $this->selectForm('', $slug);
367
- return (!empty($test));
368
- }
369
-
370
- function fieldOptionsSlugExists($slug) {
371
- $test = $this->selectFieldOption('', $slug);
372
- return (!empty($test));
373
- }
374
-
375
- function insertUserData($data_object) {
376
- global $wpdb;
377
- $wpdb->insert(CCF_USER_DATA_TABLE, array('data_time' => $data_object->getDataTime(), 'data_formid' => $data_object->getFormID(), 'data_formpage' => $data_object->getFormPage(), 'data_value' => $data_object->getEncodedData()));
378
- return $wpdb->insert_id;
379
- }
380
-
381
- function emptyAllTables() {
382
- $fields = $this->selectAllFields();
383
- $forms = $this->selectAllForms();
384
- $user_data = $this->selectAllUserData();
385
- $styles = $this->selectAllStyles();
386
- $options = $this->selectAllFieldOptions();
387
- foreach ($fields as $field) $this->deleteField($field->id);
388
- foreach ($forms as $form) $this->deleteForm($form->id);
389
- foreach ($user_data as $data) $this->deleteUserData($data->id);
390
- foreach ($styles as $style) $this->deleteStyle($style->id);
391
- foreach ($options as $option) $this->deleteFieldOption($option->id);
392
- }
393
-
394
-
395
- function formHasRole($form_access_array, $role) {
396
- return (in_array(strtolower($role), $form_access_array));
397
- }
398
-
399
- function getRolesArray() {
400
- global $wp_roles;
401
- $out = $wp_roles->get_names();
402
- $out[] = __('Non-Registered User', 'custom-contact-forms');
403
- return $out;
404
- }
405
-
406
- function getFormAccessArray($form_access_string) {
407
- $arr = unserialize(strtolower($form_access_string));
408
- if ($arr == false || empty($form_access_string)) $arr = array();
409
- return $arr;
410
- }
411
- }
412
- }
 
 
 
 
 
413
  ?>
1
+ <?php
2
+ /*
3
+ Custom Contact Forms Plugin
4
+ By Taylor Lovett - http://www.taylorlovett.com
5
+ Plugin URL: http://www.taylorlovett.com/wordpress-plugins
6
+ */
7
+ if (!class_exists('CustomContactFormsDB')) {
8
+ class CustomContactFormsDB {
9
+
10
+ function formatStyle($style) {
11
+ return str_replace('#', '', str_replace(';', '', $style));
12
+ }
13
+
14
+ function insertForm($form) {
15
+ global $wpdb;
16
+ if (empty($form) or empty($form['form_slug']) or $this->formSlugExists($this->formatSlug($form['form_slug']))) return false;
17
+ $form['form_slug'] = $this->formatSlug($form['form_slug']);
18
+ $form['form_access'] = serialize($form['form_access']);
19
+ $skip_encode = array('form_access');
20
+ foreach ($form as $key => $value)
21
+ if (!in_array($key, $skip_encode))
22
+ $form[$key] = ccf_utils::encodeOption($value);
23
+ $wpdb->insert(CCF_FORMS_TABLE, $form);
24
+ return $wpdb->insert_id;
25
+ }
26
+
27
+ function insertField($field, $fixed = false) {
28
+ global $wpdb;
29
+ if (empty($field) or empty($field['field_slug']) or (array_key_exists($this->formatSlug($field['field_slug']), $GLOBALS['ccf_fixed_fields']) && !$fixed) or $this->fieldSlugExists($this->formatSlug($field['field_slug'])))
30
+ return false;
31
+ $field['field_slug'] = $this->formatSlug($field['field_slug']);
32
+ foreach ($field as $key => $value)
33
+ if (!is_array($value))
34
+ $field[$key] = ccf_utils::encodeOption($value);
35
+ $wpdb->insert(CCF_FIELDS_TABLE, $field);
36
+ return $wpdb->insert_id;
37
+ }
38
+
39
+ function insertFieldOption($option) {
40
+ global $wpdb;
41
+ if (empty($option) or empty($option['option_slug']) or empty($option['option_label']) or $this->fieldOptionsSlugExists($this->formatSlug($option['option_slug']))) return false;
42
+ $option['option_slug'] = $this->formatSlug($option['option_slug']);
43
+ foreach ($option as $key => $value)
44
+ $option[$key] = ccf_utils::encodeOption($value);
45
+ $wpdb->insert(CCF_FIELD_OPTIONS_TABLE, $option);
46
+ return $wpdb->insert_id;
47
+ }
48
+
49
+ function insertStyle($style) {
50
+ global $wpdb;
51
+ if (empty($style) or empty($style['style_slug']) or $this->styleSlugExists($this->formatSlug($style['style_slug']))) return false;
52
+ $style['style_slug'] = $this->formatSlug($style['style_slug']);
53
+ foreach ($style as $key => $value)
54
+ $style[$key] = ccf_utils::encodeOption($value);
55
+ $wpdb->insert(CCF_STYLES_TABLE, $style);
56
+ return $wpdb->insert_id;
57
+ }
58
+
59
+ function serializeAllFormFields() {
60
+ $forms = $this->selectAllForms();
61
+ foreach ($forms as $form) {
62
+ $fields = $form->form_fields;
63
+ if (!is_serialized($fields)) {
64
+ $this->updateForm(array('form_fields' => $this->old_getAttachedFieldsArray($fields)), $form->id);
65
+ }
66
+ }
67
+ }
68
+
69
+ function serializeAllFieldOptions() {
70
+ $fields = $this->selectAllFields();
71
+ foreach ($fields as $field) {
72
+ $options = $field->field_options;
73
+ if (!is_serialized($options)) {
74
+ $this->updateField(array('field_options' => $this->old_getAttachedFieldsArray($options)), $field->id);
75
+ }
76
+ }
77
+ }
78
+
79
+ function updateForm($form, $fid, $skip_encode = array('form_access', 'form_fields')) {
80
+ global $wpdb;
81
+ if (!empty($form['form_slug'])) {
82
+ $test = $this->selectForm('', $this->formatSlug($form['form_slug']));
83
+ if (!empty($test) and $test->id != $fid) return false;
84
+ $form['form_slug'] = $this->formatSlug($form['form_slug']);
85
+ }
86
+ if (!empty($form['form_access_update'])) {
87
+ $form['form_access'] = serialize($form['form_access']);
88
+ unset($form['form_access_update']);
89
+ } elseif (!empty($form['form_access'])) unset($form['form_access']);
90
+
91
+ if (isset($form['form_fields']))
92
+ $form['form_fields'] = serialize(array_unique($form['form_fields']));
93
+ foreach ($form as $key => $value)
94
+ if (!in_array($key, $skip_encode))
95
+ $form[$key] = ccf_utils::encodeOption($value);
96
+ $wpdb->update(CCF_FORMS_TABLE, $form, array('id' => $fid));
97
+ return true;
98
+ }
99
+
100
+ function updateField($field, $fid, $skip_encode = array('field_options')) {
101
+ global $wpdb;
102
+ if (!empty($field['field_slug'])) {
103
+ $test = $this->selectField('', $this->formatSlug($field['field_slug']));
104
+ if ((!empty($test) and $test->id != $fid) or array_key_exists($this->formatSlug($field['field_slug']), $GLOBALS['ccf_fixed_fields']))
105
+ return false;
106
+ $field['field_slug'] = $this->formatSlug($field['field_slug']);
107
+ } if (isset($field['field_options']))
108
+ $field['field_options'] = serialize(array_unique($field['field_options']));
109
+ foreach ($field as $key => $value)
110
+ if (!in_array($key, $skip_encode))
111
+ $field[$key] = ccf_utils::encodeOption($value);
112
+ $wpdb->update(CCF_FIELDS_TABLE, $field, array('id' => $fid));
113
+ return true;
114
+ }
115
+
116
+ function updateFieldOption($option, $oid) {
117
+ global $wpdb;
118
+ if (!empty($option['option_slug'])) {
119
+ $test = $this->selectFieldOption('', $this->formatSlug($option['option_slug']));
120
+ if (!empty($test) and $test->id != $oid)
121
+ return false;
122
+ $option['option_slug'] = $this->formatSlug($option['option_slug']);
123
+ }
124
+ foreach ($option as $key => $value)
125
+ $option[$key] = ccf_utils::encodeOption($value);
126
+ $wpdb->update(CCF_FIELD_OPTIONS_TABLE, $option, array('id' => $oid));
127
+ return true;
128
+ }
129
+
130
+ function updateStyle($style, $sid) {
131
+ global $wpdb;
132
+ if (empty($style['style_slug'])) return false;
133
+ $test = $this->selectStyle('', $this->formatSlug($style['style_slug']));
134
+ if (!empty($test) and $test->id != $sid) // if style_slug is different then make sure it is unique
135
+ return false;
136
+ $style['style_slug'] = $this->formatSlug($style['style_slug']);
137
+ foreach ($style as $key => $value)
138
+ $style[$key] = ccf_utils::encodeOption($value);
139
+ $wpdb->update(CCF_STYLES_TABLE, $style, array('id' => $sid));
140
+ return true;
141
+ }
142
+
143
+ function deleteForm($fid, $slug = NULL) {
144
+ global $wpdb;
145
+ $where_params = ($slug == NULL) ? "id='$fid'" : "form_slug='$slug'";
146
+ $wpdb->query("DELETE FROM " . CCF_FORMS_TABLE . ' WHERE ' . $where_params);
147
+ return true;
148
+ }
149
+
150
+ function deleteField($fid, $slug = NULL) {
151
+ global $wpdb;
152
+ $this->detachFieldAll($fid);
153
+ $where_params = ($slug == NULL) ? "id='$fid'" : "field_slug='$slug'";
154
+ $wpdb->query("DELETE FROM " . CCF_FIELDS_TABLE . ' WHERE ' . $where_params);
155
+ return false;
156
+ }
157
+
158
+ function query($query) {
159
+ global $wpdb;
160
+ if (empty($query)) return false;
161
+ return ($wpdb->query($query) != false) ? $wpdb->insert_id : false;
162
+ }
163
+
164
+ function deleteStyle($sid, $slug = NULL) {
165
+ global $wpdb;
166
+ $this->detachStyleAll($sid);
167
+ $where_params = ($slug == NULL) ? "id='$sid'" : "style_slug='$slug'";
168
+ $wpdb->query("DELETE FROM " . CCF_STYLES_TABLE . ' WHERE ' . $where_params);
169
+ return true;
170
+ }
171
+
172
+ function deleteFieldOption($oid, $slug = NULL) {
173
+ global $wpdb;
174
+ $this->detachFieldOptionAll($oid);
175
+ $where_params = ($slug == NULL) ? "id='$oid'" : "option_slug='$slug'";
176
+ $wpdb->query("DELETE FROM " . CCF_FIELD_OPTIONS_TABLE . ' WHERE ' . $where_params);
177
+ return true;
178
+ }
179
+
180
+ function deleteUserData($uid) {
181
+ global $wpdb;
182
+ $wpdb->query("DELETE FROM " . CCF_USER_DATA_TABLE . " WHERE id='$uid'");
183
+ return true;
184
+ }
185
+
186
+ function selectAllFromTable($table, $output_type = OBJECT) {
187
+ global $wpdb;
188
+ return $wpdb->get_results('SELECT * FROM ' . $table, $output_type);
189
+ }
190
+
191
+ function selectAllForms() {
192
+ global $wpdb;
193
+ return $wpdb->get_results("SELECT * FROM " . CCF_FORMS_TABLE . " ORDER BY form_slug ASC");
194
+ }
195
+
196
+ function selectAllFields() {
197
+ global $wpdb;
198
+ return $wpdb->get_results("SELECT * FROM " . CCF_FIELDS_TABLE . " ORDER BY field_slug ASC");
199
+ }
200
+
201
+ function selectAllFieldOptions($user_option = -1) {
202
+ global $wpdb;
203
+ return $wpdb->get_results("SELECT * FROM " . CCF_FIELD_OPTIONS_TABLE . " ORDER BY option_slug ASC");
204
+ }
205
+
206
+ function selectAllStyles() {
207
+ global $wpdb;
208
+ return $wpdb->get_results("SELECT * FROM " . CCF_STYLES_TABLE . " ORDER BY style_slug ASC");
209
+ }
210
+
211
+ function selectAllUserData() {
212
+ global $wpdb;
213
+ return $wpdb->get_results("SELECT * FROM " . CCF_USER_DATA_TABLE . " ORDER BY data_time DESC");
214
+ }
215
+
216
+ function selectForm($fid, $form_slug = '') {
217
+ global $wpdb;
218
+ $extra = (!empty($form_slug)) ? " or form_slug = '$form_slug'" : '';
219
+ return $wpdb->get_row("SELECT * FROM " . CCF_FORMS_TABLE . " WHERE id='$fid' $extra");
220
+ }
221
+
222
+ function selectStyle($sid, $style_slug = '') {
223
+ global $wpdb;
224
+ $extra = (!empty($style_slug)) ? " or style_slug = '$style_slug'" : '';
225
+ return $wpdb->get_row("SELECT * FROM " . CCF_STYLES_TABLE . " WHERE id='$sid' $extra");
226
+ }
227
+
228
+ function selectField($fid, $field_slug = '') {
229
+ global $wpdb;
230
+ $extra = (!empty($field_slug)) ? " or field_slug = '$field_slug'" : '';
231
+ return $wpdb->get_row("SELECT * FROM " . CCF_FIELDS_TABLE . " WHERE id='$fid'" . $extra);
232
+ }
233
+
234
+ function selectFieldOption($oid, $option_slug = '') {
235
+ global $wpdb;
236
+ $extra = (!empty($option_slug)) ? " or option_slug = '$option_slug'" : '';
237
+ return $wpdb->get_row("SELECT * FROM " . CCF_FIELD_OPTIONS_TABLE . " WHERE id='$oid'" . $extra);
238
+ }
239
+
240
+ function selectUserData($uid) {
241
+ global $wpdb;
242
+ return $wpdb->get_row("SELECT * FROM " . CCF_USER_DATA_TABLE . " WHERE id='$uid'");
243
+ }
244
+
245
+ function addFieldToForm($field_id, $form_id) {
246
+ $field = $this->selectField($field_id);
247
+ if (empty($field)) return false;
248
+ $form = $this->selectForm($form_id);
249
+ if (empty($form)) return false;
250
+ $fields = $this->getAttachedFieldsArray($form_id);
251
+ if (!in_array($field_id, $fields)) {
252
+ $fields[] = $field_id;
253
+ $this->updateForm(array('form_fields' => $fields), $form_id);
254
+ return true;
255
+ }
256
+ return false;
257
+ }
258
+
259
+ function addFieldOptionToField($option_id, $field_id) {
260
+ $option = $this->selectFieldOption($option_id);
261
+ if (empty($option)) return false;
262
+ $field = $this->selectField($field_id);
263
+ if (empty($field)) return false;
264
+ $options = $this->getAttachedFieldOptionsArray($field_id);
265
+ if (!in_array($option_id, $options)) {
266
+ $options[] = $option_id;
267
+ $this->updateField(array('field_options' => $options), $field_id);
268
+ return true;
269
+ }
270
+ return false;
271
+ }
272
+
273
+ function unserializeFormPageIds($form) {
274
+ $pids = str_replace(' ', '', $form->form_pages);
275
+ return explode(',', $pids);
276
+ }
277
+
278
+ function getAttachedFieldsArray($form_id) {
279
+ $form = $this->selectForm($form_id);
280
+ $out = unserialize($form->form_fields);
281
+ if (!is_array($out)) return array();
282
+ return (empty($out)) ? array() : $out;
283
+ }
284
+
285
+ function getAttachedFieldOptionsArray($field_id) {
286
+ $field = $this->selectField($field_id);
287
+ $out = unserialize($field->field_options);
288
+ if (!is_array($out)) return array();
289
+ return (empty($out)) ? array() : $out;
290
+ }
291
+
292
+ function old_getAttachedFieldsArray($fields) {
293
+ if (empty($fields)) return array();
294
+ $last_char = $fields[strlen($fields)-1];
295
+ if ($last_char != ',') $fields .= ',';
296
+ $out = explode(',', $fields);
297
+ if (!empty($out)) array_pop($out);
298
+ return $out;
299
+ }
300
+
301
+ function old_getAttachedFieldOptionsArray($options) {
302
+ if (empty($options)) return array();
303
+ $last_char = $options[strlen($options)-1];
304
+ if ($last_char != ',') $options .= ',';
305
+ $out = explode(',', $options);
306
+ if (!empty($out)) array_pop($out);
307
+ return $out;
308
+ }
309
+
310
+ function detachField($field_id, $form_id) {
311
+ $fields = $this->getAttachedFieldsArray($form_id);
312
+ if (!empty($fields) && in_array($field_id, $fields)) {
313
+ unset($fields[array_search($field_id, $fields)]);
314
+ $this->updateForm(array('form_fields' => $fields), $form_id);
315
+ return true;
316
+ }
317
+ return false;
318
+ }
319
+
320
+ function detachFieldOption($option_id, $field_id) {
321
+ $options = $this->getAttachedFieldOptionsArray($field_id);
322
+ //var_dump($options);
323
+ if (!empty($options) && in_array($option_id, $options)) {
324
+ unset($options[array_search($option_id, $options)]);
325
+ $this->updateField(array('field_options' => $options), $field_id);
326
+ return true;
327
+ }
328
+ return false;
329
+ }
330
+
331
+ function detachFieldAll($field_id) {
332
+ $forms = $this->selectAllForms();
333
+ foreach ($forms as $form)
334
+ $this->detachField($field_id, $form->id);
335
+ return true;
336
+ }
337
+
338
+ function detachFieldOptionAll($option_id) {
339
+ $fields = $this->selectAllFields();
340
+ foreach ($fields as $field)
341
+ $this->detachFieldOption($option_id, $field->id);
342
+ return true;
343
+ }
344
+
345
+ function detachStyleAll($style_id) {
346
+ $forms = $this->selectAllForms();
347
+ foreach ($forms as $form) {
348
+ if ($form->form_style == $style_id) {
349
+ $this->updateForm(array('form_style' => 0), $form->id);
350
+ }
351
+ }
352
+ return true;
353
+ }
354
+
355
+ function formatSlug($slug) {
356
+ $slug = preg_replace('/[^a-z_ A-Z0-9\s]/', '', $slug);
357
+ return str_replace(' ', '_', $slug);
358
+ }
359
+
360
+ function fieldSlugExists($slug) {
361
+ $test = $this->selectField('', $slug);
362
+ return (!empty($test));
363
+ }
364
+
365
+ function styleSlugExists($slug) {
366
+ $test = $this->selectStyle('', $slug);
367
+ return (!empty($test));
368
+ }
369
+
370
+ function formSlugExists($slug) {
371
+ $test = $this->selectForm('', $slug);
372
+ return (!empty($test));
373
+ }
374
+
375
+ function fieldOptionsSlugExists($slug) {
376
+ $test = $this->selectFieldOption('', $slug);
377
+ return (!empty($test));
378
+ }
379
+
380
+ function insertUserData($data_object) {
381
+ global $wpdb;
382
+ $wpdb->insert(CCF_USER_DATA_TABLE, array('data_time' => $data_object->getDataTime(), 'data_formid' => $data_object->getFormID(), 'data_formpage' => $data_object->getFormPage(), 'data_value' => $data_object->getEncodedData()));
383
+ return $wpdb->insert_id;
384
+ }
385
+
386
+ function emptyAllTables() {
387
+ $fields = $this->selectAllFields();
388
+ $forms = $this->selectAllForms();
389
+ $user_data = $this->selectAllUserData();
390
+ $styles = $this->selectAllStyles();
391
+ $options = $this->selectAllFieldOptions();
392
+ foreach ($fields as $field) $this->deleteField($field->id);
393
+ foreach ($forms as $form) $this->deleteForm($form->id);
394
+ foreach ($user_data as $data) $this->deleteUserData($data->id);
395
+ foreach ($styles as $style) $this->deleteStyle($style->id);
396
+ foreach ($options as $option) $this->deleteFieldOption($option->id);
397
+ }
398
+
399
+
400
+ function formHasRole($form_access_array, $role) {
401
+ return (in_array(strtolower($role), $form_access_array));
402
+ }
403
+
404
+ function getRolesArray() {
405
+ global $wp_roles;
406
+ $out = $wp_roles->get_names();
407
+ $out[] = __('Non-Registered User', 'custom-contact-forms');
408
+ return $out;
409
+ }
410
+
411
+ function getFormAccessArray($form_access_string) {
412
+ $arr = unserialize(strtolower($form_access_string));
413
+ if ($arr == false || empty($form_access_string)) $arr = array();
414
+ return $arr;
415
+ }
416
+ }
417
+ }
418
  ?>
modules/db/custom-contact-forms-default-db.php CHANGED
@@ -1,77 +1,82 @@
1
- <?php
2
- /*
3
- Custom Contact Forms Plugin
4
- By Taylor Lovett - http://www.taylorlovett.com
5
- Plugin URL: http://www.taylorlovett.com/wordpress-plugins
6
- */
7
- if (!class_exists('CustomContactFormsDefaultDB')) {
8
- class CustomContactFormsDefaultDB extends CustomContactFormsDB {
9
-
10
- function CustomContactFormsDefaultDB($insert_default_content = true) {
11
- if ($insert_default_content)
12
- $this->insertDefaultContent();
13
- }
14
-
15
- function insertDefaultContent($overwrite = false) {
16
- $field_slugs = array('name' => 'ccf_name', 'message' => 'ccf_message',
17
- 'phone' => 'ccf_phone', 'google' => 'ccf_google', 'contact_method' => 'ccf_contact_method');
18
- $option_slugs = array('email' => 'ccf_email', 'phone' => 'ccf_phone', 'nocontact' => 'ccf_no_contact', 'pleaseselect' => 'please_select');
19
- $form_slugs = array('contact_form' => 'ccf_contact_form');
20
- if ($overwrite) {
21
- foreach($field_slugs as $slug) parent::deleteField(0, $slug);
22
- foreach($option_slugs as $slug) parent::deleteFieldOption(0, $slug);
23
- foreach($form_slugs as $slug) parent::deleteForm(0, $slug);
24
- }
25
- $name_field = array('field_slug' => $field_slugs['name'], 'field_label' => __('Your Name:', 'custom-contact-forms'),
26
- 'field_required' => 1, 'field_instructions' => __('Please enter your full name.', 'custom-contact-forms'),
27
- 'field_maxlength' => '100', 'field_type' => 'Text');
28
- $message_field = array('field_slug' => $field_slugs['message'], 'field_label' => __('Your Message:', 'custom-contact-forms'),
29
- 'field_required' => 0, 'field_instructions' => __('Enter any message or comment.', 'custom-contact-forms'),
30
- 'field_maxlength' => 0, 'field_type' => 'Textarea');
31
- $phone_field = array('field_slug' => $field_slugs['phone'], 'field_label' => __('Your Phone Number:', 'custom-contact-forms'),
32
- 'field_required' => 0, 'field_instructions' => __('Please enter your phone number.', 'custom-contact-forms'),
33
- 'field_maxlength' => 30, 'field_type' => 'Text');
34
- $google_field = array('field_slug' => $field_slugs['google'], 'field_label' => __('Did you find my website through Google?', 'custom-contact-forms'),
35
- 'field_required' => 0, 'field_instructions' => __('If you found my website through Google, check this box.', 'custom-contact-forms'),
36
- 'field_maxlength' => 0, 'field_type' => 'Checkbox', 'field_value' => __('Yes', 'custom-contact-forms'));
37
- $contact_method_field = array('field_slug' => $field_slugs['contact_method'], 'field_label' => __('How should we contact you?', 'custom-contact-forms'),
38
- 'field_required' => 1, 'field_instructions' => __('By which method we should contact you?', 'custom-contact-forms'),
39
- 'field_maxlength' => 0, 'field_type' => 'Dropdown');
40
- $email_field = parent::selectField(0, 'fixedEmail');
41
- $website_field = parent::selectField(0, 'fixedWebsite');
42
- $captcha_field = parent::selectField(0, 'captcha');
43
- $reset_button = parent::selectField(0, 'resetButton');
44
- $pleaseselect_option = array('option_slug' => $option_slugs['pleaseselect'], 'option_dead' => 1, 'option_label' => __('Please Select:', 'custom-contact-forms'));
45
- $email_option = array('option_slug' => $option_slugs['email'], 'option_label' => __('By Email', 'custom-contact-forms'));
46
- $phone_option = array('option_slug' => $option_slugs['phone'], 'option_label' => __('By Phone', 'custom-contact-forms'));
47
- $nocontact_option = array('option_slug' => $option_slugs['nocontact'], 'option_label' => __('Do Not Contact Me', 'custom-contact-forms'));
48
- $contact_form = array('form_slug' => $form_slugs['contact_form'], 'form_title' => __('Contact Form', 'custom-contact-forms'), 'form_method' => 'Post',
49
- 'submit_button_text' => __('Send Message', 'custom-contact-forms'), 'form_email' => get_option('admin_email'), 'form_success_message' => __('Thank you for filling out our contact form. We will contact you very soon by the way you specified.', 'custom-contact-forms'),
50
- 'form_success_title' => __('Thank You!', 'custom-contact-forms'), 'form_access' => parent::getRolesArray(), 'form_style' => 0);
51
- $name_field_id = parent::insertField($name_field);
52
- $message_field_id = parent::insertField($message_field);
53
- $phone_field_id = parent::insertField($phone_field);
54
- $google_field_id = parent::insertField($google_field);
55
- $contact_method_field_id = parent::insertField($contact_method_field);
56
- $email_option_id = parent::insertFieldOption($email_option);
57
- $pleaseselect_option_id = parent::insertFieldOption($email_option);
58
- $phone_option_id = parent::insertFieldOption($phone_option);
59
- $nocontact_option_id = parent::insertFieldOption($nocontact_option);
60
- $contact_form_id = parent::insertForm($contact_form);
61
- parent::addFieldOptionToField($pleaseselect_option_id, $contact_method_field_id);
62
- parent::addFieldOptionToField($email_option_id, $contact_method_field_id);
63
- parent::addFieldOptionToField($phone_option_id, $contact_method_field_id);
64
- parent::addFieldOptionToField($nocontact_option_id, $contact_method_field_id);
65
- parent::addFieldToForm($name_field_id, $contact_form_id);
66
- parent::addFieldToForm($website_field->id, $contact_form_id);
67
- parent::addFieldToForm($email_field->id, $contact_form_id);
68
- parent::addFieldToForm($phone_field_id, $contact_form_id);
69
- parent::addFieldToForm($google_field_id, $contact_form_id);
70
- parent::addFieldToForm($contact_method_field_id, $contact_form_id);
71
- parent::addFieldToForm($message_field_id, $contact_form_id);
72
- parent::addFieldToForm($captcha_field->id, $contact_form_id);
73
- parent::addFieldToForm($reset_button->id, $contact_form_id);
74
- }
75
- }
76
- }
 
 
 
 
 
77
  ?>
1
+ <?php
2
+ /*
3
+ Custom Contact Forms Plugin
4
+ By Taylor Lovett - http://www.taylorlovett.com
5
+ Plugin URL: http://www.taylorlovett.com/wordpress-plugins
6
+ */
7
+ if (!class_exists('CustomContactFormsDefaultDB')) {
8
+ class CustomContactFormsDefaultDB extends CustomContactFormsDB {
9
+
10
+ function CustomContactFormsDefaultDB($insert_default_content = true) {
11
+ if ($insert_default_content)
12
+ $this->insertDefaultContent();
13
+ }
14
+
15
+ function insertDefaultContent($overwrite = false) {
16
+ $field_slugs = array('name' => 'ccf_name', 'message' => 'ccf_message',
17
+ 'phone' => 'ccf_phone', 'google' => 'ccf_google', 'date' => 'ccf_schedule_date', 'contact_method' => 'ccf_contact_method');
18
+ $option_slugs = array('email' => 'ccf_email', 'phone' => 'ccf_phone', 'nocontact' => 'ccf_no_contact', 'pleaseselect' => 'please_select');
19
+ $form_slugs = array('contact_form' => 'ccf_contact_form');
20
+ if ($overwrite) {
21
+ foreach($field_slugs as $slug) parent::deleteField(0, $slug);
22
+ foreach($option_slugs as $slug) parent::deleteFieldOption(0, $slug);
23
+ foreach($form_slugs as $slug) parent::deleteForm(0, $slug);
24
+ }
25
+ $name_field = array('field_slug' => $field_slugs['name'], 'field_label' => __('Your Name:', 'custom-contact-forms'),
26
+ 'field_required' => 1, 'field_instructions' => __('Please enter your full name.', 'custom-contact-forms'),
27
+ 'field_maxlength' => '100', 'field_type' => 'Text');
28
+ $date_field = array('field_slug' => $field_slugs['date'], 'field_label' => __('When Should I Contact You:', 'custom-contact-forms'),
29
+ 'field_required' => 0, 'field_instructions' => __('Please choose a date you would like to be contacted.', 'custom-contact-forms'),
30
+ 'field_maxlength' => '100', 'field_type' => 'Date');
31
+ $message_field = array('field_slug' => $field_slugs['message'], 'field_label' => __('Your Message:', 'custom-contact-forms'),
32
+ 'field_required' => 0, 'field_instructions' => __('Enter any message or comment.', 'custom-contact-forms'),
33
+ 'field_maxlength' => 0, 'field_type' => 'Textarea');
34
+ $phone_field = array('field_slug' => $field_slugs['phone'], 'field_label' => __('Your Phone Number:', 'custom-contact-forms'),
35
+ 'field_required' => 0, 'field_instructions' => __('Please enter your phone number.', 'custom-contact-forms'),
36
+ 'field_maxlength' => 30, 'field_type' => 'Text');
37
+ $google_field = array('field_slug' => $field_slugs['google'], 'field_label' => __('Did you find my website through Google?', 'custom-contact-forms'),
38
+ 'field_required' => 0, 'field_instructions' => __('If you found my website through Google, check this box.', 'custom-contact-forms'),
39
+ 'field_maxlength' => 0, 'field_type' => 'Checkbox', 'field_value' => __('Yes', 'custom-contact-forms'));
40
+ $contact_method_field = array('field_slug' => $field_slugs['contact_method'], 'field_label' => __('How should we contact you?', 'custom-contact-forms'),
41
+ 'field_required' => 1, 'field_instructions' => __('By which method we should contact you?', 'custom-contact-forms'),
42
+ 'field_maxlength' => 0, 'field_type' => 'Dropdown');
43
+ $email_field = parent::selectField(0, 'fixedEmail');
44
+ $website_field = parent::selectField(0, 'fixedWebsite');
45
+ $captcha_field = parent::selectField(0, 'captcha');
46
+ $reset_button = parent::selectField(0, 'resetButton');
47
+ $pleaseselect_option = array('option_slug' => $option_slugs['pleaseselect'], 'option_dead' => 1, 'option_label' => __('Please Select:', 'custom-contact-forms'));
48
+ $email_option = array('option_slug' => $option_slugs['email'], 'option_label' => __('By Email', 'custom-contact-forms'));
49
+ $phone_option = array('option_slug' => $option_slugs['phone'], 'option_label' => __('By Phone', 'custom-contact-forms'));
50
+ $nocontact_option = array('option_slug' => $option_slugs['nocontact'], 'option_label' => __('Do Not Contact Me', 'custom-contact-forms'));
51
+ $contact_form = array('form_slug' => $form_slugs['contact_form'], 'form_title' => __('Contact Form', 'custom-contact-forms'), 'form_method' => 'Post',
52
+ 'submit_button_text' => __('Send Message', 'custom-contact-forms'), 'form_email' => get_option('admin_email'), 'form_success_message' => __('Thank you for filling out our contact form. We will contact you very soon by the way you specified.', 'custom-contact-forms'),
53
+ 'form_success_title' => __('Thank You!', 'custom-contact-forms'), 'form_access' => parent::getRolesArray(), 'form_style' => 0);
54
+ $name_field_id = parent::insertField($name_field);
55
+ $date_field_id = parent::insertField($date_field);
56
+ $message_field_id = parent::insertField($message_field);
57
+ $phone_field_id = parent::insertField($phone_field);
58
+ $google_field_id = parent::insertField($google_field);
59
+ $contact_method_field_id = parent::insertField($contact_method_field);
60
+ $email_option_id = parent::insertFieldOption($email_option);
61
+ $pleaseselect_option_id = parent::insertFieldOption($email_option);
62
+ $phone_option_id = parent::insertFieldOption($phone_option);
63
+ $nocontact_option_id = parent::insertFieldOption($nocontact_option);
64
+ $contact_form_id = parent::insertForm($contact_form);
65
+ parent::addFieldOptionToField($pleaseselect_option_id, $contact_method_field_id);
66
+ parent::addFieldOptionToField($email_option_id, $contact_method_field_id);
67
+ parent::addFieldOptionToField($phone_option_id, $contact_method_field_id);
68
+ parent::addFieldOptionToField($nocontact_option_id, $contact_method_field_id);
69
+ parent::addFieldToForm($name_field_id, $contact_form_id);
70
+ parent::addFieldToForm($website_field->id, $contact_form_id);
71
+ parent::addFieldToForm($email_field->id, $contact_form_id);
72
+ parent::addFieldToForm($phone_field_id, $contact_form_id);
73
+ parent::addFieldToForm($google_field_id, $contact_form_id);
74
+ parent::addFieldToForm($contact_method_field_id, $contact_form_id);
75
+ parent::addFieldToForm($date_field_id, $contact_form_id);
76
+ parent::addFieldToForm($message_field_id, $contact_form_id);
77
+ parent::addFieldToForm($captcha_field->id, $contact_form_id);
78
+ parent::addFieldToForm($reset_button->id, $contact_form_id);
79
+ }
80
+ }
81
+ }
82
  ?>
modules/extra_fields/date_field.php DELETED
@@ -1,47 +0,0 @@
1
- <?php
2
- /*
3
- Custom Contact Forms Plugin
4
- By Taylor Lovett - http://www.taylorlovett.com
5
- Plugin URL: http://www.taylorlovett.com/wordpress-plugins
6
- */
7
- if (!class_exists('ccf_date_field')) {
8
- class ccf_date_field {
9
- var $field_code;
10
-
11
- function ccf_date_field($class = NULL, $id = NULL, $initial_value = NULL, $field_instructions = NULL) {
12
- $this->field_code = '';
13
- $class_attr = ($class == NULL) ? '' : $class;
14
- $id_attr = ($id == NULL) ? '' : ' id="'.$id.'" ';
15
- if ($field_instructions == NULL) {
16
- $instructions_attr = '';
17
- $tooltip_class = '';
18
- } else {
19
- $instructions_attr = ' title="'.$field_instructions.'" ';
20
- $tooltip_class = 'ccf_tooltip_field';
21
- }
22
- $this->field_code .= '<select name="allCountries" class="'.tooltip_class.' ' . $class_attr . '" ' . $id_attr . $instructions_attr . '>' . "\n";
23
- $countries = array('Afghanistan', 'Albania', 'Algeria', 'American Samoa', 'Andorra', 'Angola', 'Anguilla', 'Antarctica', 'Antigua And Barbuda', 'Argentina', 'Armenia', 'Aruba', 'Australia', 'Austria', 'Azerbaijan', 'Bahamas', 'Bahrain', 'Bangladesh', 'Barbados', 'Belarus', 'Belgium', 'Belize', 'Benin', 'Bermuda', 'Bhutan', 'Bolivia', 'Bosnia And Herzegowina', 'Botswana',
24
- 'Bouvet Island', 'Brazil', 'British Indian Ocean Territory', 'Brunei Darussalam', 'Bulgaria', 'Burkina Faso', 'Burundi', 'Cambodia', 'Cameroon', 'Canada', 'Cape Verde', 'Cayman Islands', 'Central African Republic', 'Chad', 'Chile', 'China', 'Christmas Island', 'Cocos (Keeling) Islands', 'Colombia', 'Comoros', 'Congo', 'Cook Islands', 'Costa Rica', "Cote D'Ivoire",
25
- 'Croatia (Hrvatska)', 'Cuba', 'Cyprus', 'Czech Republic', 'Denmark', 'Djibouti', 'Dominica', 'Dominican Republic', 'East Timor', 'Ecuador', 'Egypt', 'El Salvador', 'Equatorial Guinea', 'Eritrea', 'Estonia', 'Ethiopia', 'Falkland Islands (Malvinas)', 'Faroe Islands', 'Fiji', 'Finland', 'France', 'French Guiana', 'French Polynesia', 'French Southern Territories', 'Gabon',
26
- 'Gambia', 'Georgia', 'Germany', 'Ghana', 'Gibraltar', 'Greece', 'Greenland', 'Grenada', 'Guadeloupe', 'Guam', 'Guatemala', 'Guinea', 'Guinea-Bissau', 'Guyana', 'Haiti', 'Heard And Mc Donald Islands', 'Holy See (Vatican City State)', 'Honduras', 'Hong Kong', 'Hungary', 'Icel And', 'India', 'Indonesia', 'Iran', 'Iraq', 'Ireland', 'Israel', 'Italy',
27
- 'Jamaica', 'Japan', 'Jordan', 'Kazakhstan', 'Kenya', 'Kiribati', "Korea, Dem People'S Republic", 'Korea, Republic Of', 'Kuwait', 'Kyrgyzstan', "Lao People'S Dem Republic", 'Latvia', 'Lebanon', 'Lesotho', 'Liberia', 'Libyan Arab Jamahiriya', 'Liechtenstein', 'Lithuania', 'Luxembourg', 'Macau', 'Macedonia', 'Madagascar', 'Malawi', 'Malaysia', 'Maldives', 'Mali',
28
- 'Malta', 'Marshall Islands', 'Martinique', 'Mauritania', 'Mauritius', 'Mayotte', 'Mexico', 'Micronesia, Federated States', 'Moldova, Republic Of', 'Monaco', 'Mongolia', 'Montserrat', 'Morocco', 'Mozambique', 'Myanmar', 'Namibia', 'Nauru', 'Nepal', 'Netherlands', 'Netherlands Ant Illes', 'New Caledonia', 'New Zealand', 'Nicaragua', 'Niger', 'Nigeria', 'Niue', 'Norfolk Island',
29
- 'Northern Mariana Islands', 'Norway', 'Oman', 'Pakistan', 'Palau', 'Panama', 'Papua New Guinea', 'Paraguay', 'Peru', 'Philippines', 'Pitcairn', 'Poland', 'Portugal', 'Puerto Rico', 'Qatar', 'Reunion', 'Romania', 'Russian Federation', 'Rwanda', 'Saint K Itts And Nevis', 'Saint Lucia', 'Saint Vincent, The Grenadines', 'Samoa', 'San Marino', 'Sao Tome And Principe', 'Saudi Arabia', 'Senegal',
30
- 'Seychelles', 'Sierra Leone', 'Singapore', 'Slovakia (Slovak Republic)', 'Slovenia', 'Solomon Islands', 'Somalia', 'South Africa', 'South Georgia , S Sandwich Is.', 'Spain', 'Sri Lanka', 'St. Helena', 'St. Pierre And Miquelon', 'Sudan', 'Suriname', 'Svalbard, Jan Mayen Islands', 'Sw Aziland', 'Sweden', 'Switzerland', 'Syrian Arab Republic', 'Taiwan', 'Tajikistan', 'Tanzania, United Republic Of',
31
- 'Thailand', 'Togo', 'Tokelau', 'Tonga', 'Trinidad And Tobago', 'Tunisia', 'Turkey', 'Turkmenistan', 'Turks And Caicos Islands', 'Tuvalu', 'Uganda', 'Ukraine', 'United Arab Emirates', 'United Kingdom', 'United States', 'United States Minor Is.', 'Uruguay', 'Uzbekistan', 'Vanuatu', 'Venezuela', 'Viet Nam', 'Virgin Islands (British)', 'Virgin Islands (US)', 'Wallis And Futuna Islands',
32
- 'Western Sahara', 'Yemen', 'Yugoslavia', 'Zaire', 'Zambia', 'Zimbabwe');
33
- foreach ($countries as $country) {
34
- if ($initial_value != NULL && $country == $initial_value)
35
- $this->field_code .= '<option selected="selected">' . $country . '</option>' . "\n";
36
- else
37
- $this->field_code .= '<option>' . $country . '</option>' . "\n";
38
- }
39
- $this->field_code .= '</select>';
40
- }
41
-
42
- function getCode() {
43
- return $this->field_code;
44
- }
45
- }
46
- }
47
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
modules/usage_popover/custom-contact-forms-usage-popover.php CHANGED
@@ -59,6 +59,13 @@
59
  <input type="text" class="ccf-width200" value="<?php _e("This is a text field", 'custom-contact-forms'); ?>" />
60
  </div>
61
  </li>
 
 
 
 
 
 
 
62
  <li><span>
63
  <?php _e("Textarea:", 'custom-contact-forms'); ?>
64
  </span>
59
  <input type="text" class="ccf-width200" value="<?php _e("This is a text field", 'custom-contact-forms'); ?>" />
60
  </div>
61
  </li>
62
+ <li><span>
63
+ <?php _e("Date:", 'custom-contact-forms'); ?>
64
+ </span>
65
+ <div>
66
+ <?php _e("A Date field looks exactly the same as a Text field. But when a user clicks a Date field, a calender popover is displayed allowing a user to easily insert a date in to your form.", 'custom-contact-forms'); ?>
67
+ </div>
68
+ </li>
69
  <li><span>
70
  <?php _e("Textarea:", 'custom-contact-forms'); ?>
71
  </span>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Taylor Lovett
3
  Donate link: http://www.taylorlovett.com
4
  Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers
5
  Requires at least: 2.8.1
6
- Tested up to: 3.1.2
7
- Stable tag: 4.5.3.2
8
 
9
  Gauranteed to be the most customizable and intuitive contact form plugin for Wordpress.
10
 
@@ -19,6 +19,8 @@ Custom Contact Forms 4.5.3 will revolutionize the idea of a Wordpress plugin.
19
  * __NEW__ Saved Form Submission dashboard widget!
20
  * __NEW__ - All form submissions saved and displayed in admin panel as well as emailed to you
21
  * __NEW__ - Instantly attach a dropdown with all the countries or all the US States - new fixed fields
 
 
22
  * Import and export forms/fields/styles/etc. with ease!
23
  * This plugin can now be translated in to different languages.
24
  * Error messages can be customized for each field
@@ -96,7 +98,7 @@ http://www.taylorlovett.com/wordpress-plugins
96
  = When I try to do something in the admin panel, all I get is a new page with a -1. =
97
  * This is a bug we are currently trying to fix that usually happens in Internet Explorer 8. If you are having this problem, please try using Firefox.
98
 
99
- = All my fields and field options got detached. What do I do? Will this happen again?
100
  * Custom Contact Forms changed the way fields and field options are attached in version 4.5. It won't happen again. Just reattach everything and continue using the plugin.
101
 
102
  = I don't know where to start. This is really confusing. =
@@ -133,6 +135,15 @@ We are planning to add popover forms and file attachments soon.
133
  Visit http://www.taylorlovett.com/wordpress-plugins for screenshots. Right now all the screenshots are from Version 1, thus are quite out-dated. Install the plugin to see what it looks like. You won't regret it. I promise!
134
 
135
  == Changelog ==
 
 
 
 
 
 
 
 
 
136
 
137
  = 4.5.3.2 =
138
  * modules/widgets/custom-contact-forms-dashboard.php - Bugs fixed
3
  Donate link: http://www.taylorlovett.com
4
  Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers
5
  Requires at least: 2.8.1
6
+ Tested up to: 3.1.3
7
+ Stable tag: 4.6.0.0
8
 
9
  Gauranteed to be the most customizable and intuitive contact form plugin for Wordpress.
10
 
19
  * __NEW__ Saved Form Submission dashboard widget!
20
  * __NEW__ - All form submissions saved and displayed in admin panel as well as emailed to you
21
  * __NEW__ - Instantly attach a dropdown with all the countries or all the US States - new fixed fields
22
+ * __NEW__ - Option to only include JQuery and CSS and pages that actually use your forms
23
+ * __NEW__ - Date field that when click displays a stylish calender popover
24
  * Import and export forms/fields/styles/etc. with ease!
25
  * This plugin can now be translated in to different languages.
26
  * Error messages can be customized for each field
98
  = When I try to do something in the admin panel, all I get is a new page with a -1. =
99
  * This is a bug we are currently trying to fix that usually happens in Internet Explorer 8. If you are having this problem, please try using Firefox.
100
 
101
+ = All my fields and field options got detached. What do I do? Will this happen again? =
102
  * Custom Contact Forms changed the way fields and field options are attached in version 4.5. It won't happen again. Just reattach everything and continue using the plugin.
103
 
104
  = I don't know where to start. This is really confusing. =
135
  Visit http://www.taylorlovett.com/wordpress-plugins for screenshots. Right now all the screenshots are from Version 1, thus are quite out-dated. Install the plugin to see what it looks like. You won't regret it. I promise!
136
 
137
  == Changelog ==
138
+ = 4.6.0.0 =
139
+ * custom-contact-forms.php - Dependencies included differently, new general setting options
140
+ * custom-contact-forms-admin.php - New field type (Date), guidelines inserted in to all pages, new general settings
141
+ * modules/usage_popover/custom-contact-forms-usage-popover.php - New field type added
142
+ * custom-contact-forms.php - Dependencies included differently, new field type added, JQuery files included differently
143
+ * js/custom-contact-forms-datepicker.js - New file
144
+ * js/jquery.ui.datepicker.js - New file
145
+
146
+
147
 
148
  = 4.5.3.2 =
149
  * modules/widgets/custom-contact-forms-dashboard.php - Bugs fixed