Contact Form Email - Version 1.2.78

Version Description

  • Major interface update and improvements
Download this release

Release Info

Developer codepeople
Plugin Icon 128x128 Contact Form Email
Version 1.2.78
Comparing to
See all releases

Code changes from version 1.2.77 to 1.2.78

README.txt CHANGED
@@ -456,6 +456,9 @@ When you click a field already added into the contact form builder area, you can
456
 
457
  == Changelog ==
458
 
 
 
 
459
  = 1.2.77 =
460
  * Removed use of CURL
461
 
@@ -991,5 +994,5 @@ When you click a field already added into the contact form builder area, you can
991
 
992
  == Upgrade Notice ==
993
 
994
- = 1.2.77 =
995
- * Removed use of CURL
456
 
457
  == Changelog ==
458
 
459
+ = 1.2.78 =
460
+ * Major interface update and improvements
461
+
462
  = 1.2.77 =
463
  * Removed use of CURL
464
 
994
 
995
  == Upgrade Notice ==
996
 
997
+ = 1.2.78 =
998
+ * Major interface update and improvements
cp-admin-int-list.inc.php CHANGED
@@ -235,7 +235,7 @@ $nonce = wp_create_nonce( 'cfte_update_actions_plist' );
235
 
236
  <td>
237
  <input style="margin-bottom:3px" class="button" type="button" name="calupdate_<?php echo $item->id; ?>" value="Rename" onclick="cp_updateItem(<?php echo $item->id; ?>);" />
238
- <input style="margin-bottom:3px" class="button-primary button" type="button" name="calmanage_<?php echo $item->id; ?>" value="Settings" onclick="cp_manageSettings(<?php echo $item->id; ?>);" />
239
  <input style="margin-bottom:3px" class="button-primary button" type="button" name="calpublish_<?php echo $item->id; ?>" value="<?php _e('Publish','cpappb'); ?>" onclick="cp_publish(<?php echo $item->id; ?>);" />
240
  <input style="margin-bottom:3px" class="button" type="button" name="calmessages_<?php echo $item->id; ?>" value="Messages" onclick="cp_viewMessages(<?php echo $item->id; ?>);" />
241
  <input style="margin-bottom:3px" class="button" type="button" name="calreport_<?php echo $item->id; ?>" value="Stats" onclick="cp_viewReport(<?php echo $item->id; ?>);" />
@@ -264,98 +264,6 @@ $nonce = wp_create_nonce( 'cfte_update_actions_plist' );
264
  </div>
265
  </div>
266
 
267
-
268
- <div id="metabox_basic_settings" class="postbox" >
269
- <h3 class='hndle' style="padding:5px;"><span>Automatic email reports for ALL forms: Send submissions in CSV format via email</span></h3>
270
- <div class="inside">
271
- <form name="updatereportsettings" action="" method="post">
272
- <table class="form-table">
273
- <tr valign="top">
274
- <td scope="row" colspan="2">Enable Reports?
275
- <?php $option = get_option('cp_cfte_rep_enable', 'no'); ?>
276
- <select name="cp_cfte_rep_enable">
277
- <option value="no"<?php if ($option == 'no' || $option == '') echo ' selected'; ?>>No</option>
278
- <option value="yes"<?php if ($option == 'yes') echo ' selected'; ?>>Yes</option>
279
- </select>
280
- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
281
- Send report every: <input type="text" name="cp_cfte_rep_days" size="1" value="<?php echo esc_attr(get_option('cp_cfte_rep_days', '7')); ?>" /> days
282
- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
283
- Send after this hour (server time):
284
- <select name="cp_cfte_rep_hour">
285
- <?php
286
- $hour = get_option('cp_cfte_rep_hour', '0');
287
- for ($k=0;$k<24;$k++)
288
- echo '<option value="'.$k.'"'.($hour==$k?' selected':'').'>'.($k<10?'0':'').$k.'</option>';
289
- ?>
290
- </select>
291
- </td>
292
- <tr valign="top">
293
- <th scope="row">Send email from</th>
294
- <td><input type="text" name="cp_cfte_fp_from_email" size="70" value="<?php echo esc_attr(get_option('cp_cfte_fp_from_email', get_the_author_meta('user_email', get_current_user_id()) )); ?>" /></td>
295
- </tr>
296
- <tr valign="top">
297
- <th scope="row">Send to email(s)</th>
298
- <td><input type="text" name="cp_cfte_rep_emails" size="70" value="<?php echo esc_attr(get_option('cp_cfte_rep_emails', '')); ?>" /></td>
299
- </tr>
300
- <tr valign="top">
301
- <th scope="row">Email subject</th>
302
- <td><input type="text" name="cp_cfte_rep_subject" size="70" value="<?php echo esc_attr(get_option('cp_cfte_rep_subject', 'Submissions report...')); ?>" /></td>
303
- </tr>
304
- <tr valign="top">
305
- <th scope="row">Email format?</th>
306
- <td>
307
- <?php $option = get_option('cp_cfte_rep_emailformat', 'text'); ?>
308
- <select name="cp_cfte_rep_emailformat">
309
- <option value="text"<?php if ($option != 'html') echo ' selected'; ?>>Plain Text (default)</option>
310
- <option value="html"<?php if ($option == 'html') echo ' selected'; ?>>HTML (use html in the textarea below)</option>
311
- </select>
312
- </td>
313
- </tr>
314
- <tr valign="top">
315
- <th scope="row">Email Text (CSV file will be attached)</th>
316
- <td><textarea type="text" name="cp_cfte_rep_message" rows="3" cols="80"><?php echo htmlspecialchars(get_option('cp_cfte_rep_message', 'Attached you will find the data from the form submissions.')); ?></textarea></td>
317
- </tr>
318
- <tr valign="top">
319
- <th scope="row"></th>
320
- <td><input class="button-primary button" type="submit" name="cftesubbtn" value="Update Report Settings" /></td>
321
- </tr>
322
- </table>
323
- <p>Note: For setting up a report only for a specific form use the setting area available for that when editing each form settings.</p>
324
- </form>
325
- </div>
326
- </div>
327
-
328
-
329
- <div id="metabox_basic_settings" class="postbox" >
330
- <h3 class='hndle' style="padding:5px;"><span>Troubleshoot Area</span></h3>
331
- <div class="inside">
332
- <p><strong>Important!</strong>: Use this area <strong>only</strong> if you are experiencing conflicts with third party plugins, with the theme scripts or with the character encoding.</p>
333
- <form name="updatesettings">
334
- Script load method:<br />
335
- <select id="ccscriptload" name="ccscriptload">
336
- <option value="0" <?php if (get_option('CP_CFTE_LOAD_SCRIPTS',"1") == "1") echo 'selected'; ?>>Classic (Recommended)</option>
337
- <option value="1" <?php if (get_option('CP_CFTE_LOAD_SCRIPTS',"1") != "1") echo 'selected'; ?>>Direct</option>
338
- </select><br />
339
- <em>* Change the script load method if the form doesn't appear in the public website.</em>
340
-
341
- <br /><br />
342
- Character encoding:<br />
343
- <select id="cccharsets" name="cccharsets">
344
- <option value="">Keep current charset (Recommended)</option>
345
- <option value="utf8_general_ci">UTF-8 (try this first)</option>
346
- <option value="latin1_swedish_ci">latin1_swedish_ci</option>
347
- <option value="hebrew_general_ci">hebrew_general_ci</option>
348
- <option value="gb2312_chinese_ci">gb2312_chinese_ci</option>
349
- </select><br />
350
- <em>* Update the charset if you are getting problems displaying special/non-latin characters. After updated you need to edit the special characters again.</em>
351
- <br />
352
- <input class="button-primary button" type="button" onclick="cp_updateConfig();" name="gobtn" value="UPDATE" />
353
- <br /><br />
354
- </form>
355
-
356
- </div>
357
- </div>
358
-
359
  <div id="addonsarea" >
360
  <a name="addons-section"></a>
361
  <div id="metabox_basic_settings" class="postbox" >
@@ -417,8 +325,103 @@ $nonce = wp_create_nonce( 'cfte_update_actions_plist' );
417
  </div>
418
  </div>
419
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
420
 
421
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
422
 
423
  <script type="text/javascript">
424
  function cp_editArea(id)
235
 
236
  <td>
237
  <input style="margin-bottom:3px" class="button" type="button" name="calupdate_<?php echo $item->id; ?>" value="Rename" onclick="cp_updateItem(<?php echo $item->id; ?>);" />
238
+ <input style="margin-bottom:3px" class="button-primary button" type="button" name="calmanage_<?php echo $item->id; ?>" value="Edit &amp; Settings" onclick="cp_manageSettings(<?php echo $item->id; ?>);" />
239
  <input style="margin-bottom:3px" class="button-primary button" type="button" name="calpublish_<?php echo $item->id; ?>" value="<?php _e('Publish','cpappb'); ?>" onclick="cp_publish(<?php echo $item->id; ?>);" />
240
  <input style="margin-bottom:3px" class="button" type="button" name="calmessages_<?php echo $item->id; ?>" value="Messages" onclick="cp_viewMessages(<?php echo $item->id; ?>);" />
241
  <input style="margin-bottom:3px" class="button" type="button" name="calreport_<?php echo $item->id; ?>" value="Stats" onclick="cp_viewReport(<?php echo $item->id; ?>);" />
264
  </div>
265
  </div>
266
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
267
  <div id="addonsarea" >
268
  <a name="addons-section"></a>
269
  <div id="metabox_basic_settings" class="postbox" >
325
  </div>
326
  </div>
327
  </div>
328
+
329
+
330
+ <div id="metabox_basic_settings" class="postbox" >
331
+ <h3 class='hndle' style="padding:5px;"><span>Troubleshoot Area</span></h3>
332
+ <div class="inside">
333
+ <p><strong>Important!</strong>: Use this area <strong>only</strong> if you are experiencing conflicts with third party plugins, with the theme scripts or with the character encoding.</p>
334
+ <form name="updatesettings">
335
+ Script load method:<br />
336
+ <select id="ccscriptload" name="ccscriptload">
337
+ <option value="0" <?php if (get_option('CP_CFTE_LOAD_SCRIPTS',"1") == "1") echo 'selected'; ?>>Classic (Recommended)</option>
338
+ <option value="1" <?php if (get_option('CP_CFTE_LOAD_SCRIPTS',"1") != "1") echo 'selected'; ?>>Direct</option>
339
+ </select><br />
340
+ <em>* Change the script load method if the form doesn't appear in the public website.</em>
341
+
342
+ <br /><br />
343
+ Character encoding:<br />
344
+ <select id="cccharsets" name="cccharsets">
345
+ <option value="">Keep current charset (Recommended)</option>
346
+ <option value="utf8_general_ci">UTF-8 (try this first)</option>
347
+ <option value="latin1_swedish_ci">latin1_swedish_ci</option>
348
+ <option value="hebrew_general_ci">hebrew_general_ci</option>
349
+ <option value="gb2312_chinese_ci">gb2312_chinese_ci</option>
350
+ </select><br />
351
+ <em>* Update the charset if you are getting problems displaying special/non-latin characters. After updated you need to edit the special characters again.</em>
352
+ <br />
353
+ <input class="button-primary button" type="button" onclick="cp_updateConfig();" name="gobtn" value="UPDATE" />
354
+ <br /><br />
355
+ </form>
356
+
357
+ </div>
358
+ </div>
359
 
360
 
361
+ <div id="metabox_basic_settings" class="postbox" >
362
+ <h3 class='hndle' style="padding:5px;"><span>Automatic email reports for ALL forms: Send submissions in CSV format via email</span></h3>
363
+ <div class="inside">
364
+
365
+ <p><strong>Note: </strong> This section is for <strong>daily reports</strong> for all forms. If you are looking for the <strong>immediate email notifications</strong>
366
+ then check into the form <strong>Edit &amp; Settings</strong> button in the list at the at the top of this page.</p>
367
+
368
+ <form name="updatereportsettings" action="" method="post">
369
+ <table class="form-table">
370
+ <tr valign="top">
371
+ <td scope="row" colspan="2">Enable Reports?
372
+ <?php $option = get_option('cp_cfte_rep_enable', 'no'); ?>
373
+ <select name="cp_cfte_rep_enable">
374
+ <option value="no"<?php if ($option == 'no' || $option == '') echo ' selected'; ?>>No</option>
375
+ <option value="yes"<?php if ($option == 'yes') echo ' selected'; ?>>Yes</option>
376
+ </select>
377
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
378
+ Send report every: <input type="text" name="cp_cfte_rep_days" size="1" value="<?php echo esc_attr(get_option('cp_cfte_rep_days', '7')); ?>" /> days
379
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
380
+ Send after this hour (server time):
381
+ <select name="cp_cfte_rep_hour">
382
+ <?php
383
+ $hour = get_option('cp_cfte_rep_hour', '0');
384
+ for ($k=0;$k<24;$k++)
385
+ echo '<option value="'.$k.'"'.($hour==$k?' selected':'').'>'.($k<10?'0':'').$k.'</option>';
386
+ ?>
387
+ </select>
388
+ </td>
389
+ <tr valign="top">
390
+ <th scope="row">Send email from</th>
391
+ <td><input type="text" name="cp_cfte_fp_from_email" size="70" value="<?php echo esc_attr(get_option('cp_cfte_fp_from_email', get_the_author_meta('user_email', get_current_user_id()) )); ?>" /></td>
392
+ </tr>
393
+ <tr valign="top">
394
+ <th scope="row">Send to email(s)</th>
395
+ <td><input type="text" name="cp_cfte_rep_emails" size="70" value="<?php echo esc_attr(get_option('cp_cfte_rep_emails', '')); ?>" /></td>
396
+ </tr>
397
+ <tr valign="top">
398
+ <th scope="row">Email subject</th>
399
+ <td><input type="text" name="cp_cfte_rep_subject" size="70" value="<?php echo esc_attr(get_option('cp_cfte_rep_subject', 'Submissions report...')); ?>" /></td>
400
+ </tr>
401
+ <tr valign="top">
402
+ <th scope="row">Email format?</th>
403
+ <td>
404
+ <?php $option = get_option('cp_cfte_rep_emailformat', 'text'); ?>
405
+ <select name="cp_cfte_rep_emailformat">
406
+ <option value="text"<?php if ($option != 'html') echo ' selected'; ?>>Plain Text (default)</option>
407
+ <option value="html"<?php if ($option == 'html') echo ' selected'; ?>>HTML (use html in the textarea below)</option>
408
+ </select>
409
+ </td>
410
+ </tr>
411
+ <tr valign="top">
412
+ <th scope="row">Email Text (CSV file will be attached)</th>
413
+ <td><textarea type="text" name="cp_cfte_rep_message" rows="3" cols="80"><?php echo htmlspecialchars(get_option('cp_cfte_rep_message', 'Attached you will find the data from the form submissions.')); ?></textarea></td>
414
+ </tr>
415
+ <tr valign="top">
416
+ <th scope="row"></th>
417
+ <td><input class="button-primary button" type="submit" name="cftesubbtn" value="Update Report Settings" /></td>
418
+ </tr>
419
+ </table>
420
+ <p>Note: For setting up a report only for a specific form use the setting area available for that when editing each form settings.</p>
421
+ </form>
422
+ </div>
423
+ </div>
424
+
425
 
426
  <script type="text/javascript">
427
  function cp_editArea(id)
cp-admin-int.inc.php CHANGED
@@ -18,15 +18,27 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
18
  echo "<div id='setting-error-settings_updated' class='updated settings-error'> <p><strong>Settings saved.</strong></p></div>";
19
 
20
  ?>
21
- <div class="wrap">
22
- <h1><?php echo $this->plugin_name; ?></h1>
23
 
24
- <input type="button" name="backbtn" value="Back to items list..." onclick="document.location='admin.php?page=<?php echo $this->menu_parameter; ?>';">
 
 
 
 
 
25
 
26
- <div id="normal-sortables" class="meta-box-sortables">
27
- <hr />
28
- <h3>These settings are for: <?php echo strip_tags($this->get_option('form_name', "fixed")); ?></h3>
29
- </div>
 
 
 
 
 
 
 
 
30
 
31
 
32
  <form method="post" action="" name="cpformconf">
@@ -34,11 +46,44 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
34
  <input name="rsave" type="hidden" value="<?php echo $nonce; ?>" />
35
  <input name="<?php echo $this->prefix; ?>_id" type="hidden" value="<?php echo $this->item; ?>" />
36
 
 
 
 
 
 
 
 
37
 
38
- <div id="normal-sortables" class="meta-box-sortables">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
- <div id="metabox_basic_settings" class="postbox" >
41
- <h3 class='hndle' style="padding:5px;"><span>Form Processing / Email Settings</span></h3>
42
  <div class="inside">
43
  <table class="form-table">
44
 
@@ -59,13 +104,36 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
59
  </td>
60
  </tr>
61
  <tr valign="top">
62
- <th scope="row">"From" email (for fixed "from" addresses)</th>
63
- <td><input required type="text" name="fp_from_email" size="40" value="<?php echo esc_attr($this->get_option('fp_from_email', CP_CFEMAIL_DEFAULT_fp_from_email)); ?>" /></td>
 
 
 
 
64
  </tr>
65
  <tr valign="top">
66
- <th scope="row">Destination emails (comma separated)</th>
67
- <td><input required type="text" name="fp_destination_emails" size="40" value="<?php echo esc_attr($this->get_option('fp_destination_emails', CP_CFEMAIL_DEFAULT_fp_destination_emails)); ?>" /></td>
 
 
 
 
68
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  <tr valign="top">
70
  <th scope="row">On submit action</th>
71
  <td>
@@ -86,8 +154,11 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
86
  <th scope="row">Message to display after submission</th>
87
  <td><textarea name="fp_return_message" cols="80" rows="3"><?php echo esc_attr($this->get_option('fp_return_message', 'Thank you.')); ?></textarea></td>
88
  </tr>
89
- <tr valign="top">
90
- <th scope="row">Enable notification email?</th>
 
 
 
91
  <td>
92
  <?php $option = $this->get_option('fp_enableemail', 'true'); ?>
93
  <select name="fp_enableemail" onchange="javascript:fte_enable_display();">
@@ -126,19 +197,17 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
126
  </tr>
127
  </table>
128
 
129
- <div style="border:1px dotted black;padding:5px 15px 5px 15px;font-size:75%;background-color:#ffffcc">
130
- <p><strong><u>Important note:</u></strong> The plugin uses the settings specified into the WordPress website to deliver the emails.
131
- It is <strong>strongly recommended to use a "from" email addresses that belongs to the website domain name</strong>, for example if your website is
132
- <em>http://www.sample-website.com</em> then use an email address like <em>info@sample-website.com</em>, this will help to skip a lot of anti-spam restrictions.
133
- Avoid using emails like "<em>...@gmail.com</em>", "<em>...@hotmail.com</em>", "<em>...@aol.com</em>" as "from" addresses since these are identified as originated
134
- at external servers and reach to the spam folder or are completely blocked. This isn't a mandaroty requirement but it is strongly recommended.</p>
135
- </div>
136
- </div>
137
  </div>
138
 
139
 
140
- <div id="metabox_basic_settings" class="postbox" >
141
- <h3 class='hndle' style="padding:5px;"><span>Form Builder</span></h3>
142
  <div class="inside">
143
 
144
  <input type="hidden" name="form_structure" id="form_structure" size="180" value="<?php echo str_replace('"','&quot;',str_replace("\r","",str_replace("\n","",esc_attr($this->cleanJSON($this->get_option('form_structure', CP_CFEMAIL_DEFAULT_form_structure)))))); ?>" />
@@ -277,27 +346,32 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
277
 
278
  </div>
279
 
280
- <div style="border:1px dotted black;background-color:#ffffaa;padding-left:15px;padding-right:15px;padding-top:5px;width:740px;font-size:12px;color:#000000;">
281
- <p>This version supports the most frequently used field types: "Single Line Text", "Email", "Text-area" and "Acceptance Checkbox".</p>
282
  <p><button type="button" onclick="window.open('https://form2email.dwbooster.com/download?src=activatebtn');" style="cursor:pointer;height:35px;color:#20A020;font-weight:bold;">Activate the FULL form builder</button>
283
- <p>The full set of fields also supports:
284
  <ul>
285
- <li> - Conditional Logic: Hide/show fields based in previous selections.</li>
286
- <li> - File uploads</li>
287
- <li> - Multi-page forms</li>
288
- <li> - Publish it as a widget in the sidebar</li>
289
- <li> - Convert the form in a payment / booking form with integration with PayPal Standard, PayPal Pro, Stripe, Authorize.net, Skrill, Mollie / iDeal, TargetPay / iDeal, SagePay, RedSys TPV and Sage Payments.</li>
290
- <li> - ...and more fields and validations</li>
291
  </ul>
292
  <p>For an appointment booking option check the <a href="https://wordpress.org/plugins/appointment-hour-booking/">Appointment/Service Booking Calendar</a>.</p>
293
  </p>
294
 
295
  </div>
296
 
297
- </div>
 
 
 
 
 
 
298
  </div>
299
 
300
 
 
301
  <div id="metabox_basic_settings" class="postbox" >
302
  <h3 class='hndle' style="padding:5px;"><span>Submit Button</span></h3>
303
  <div class="inside">
@@ -368,11 +442,16 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
368
  </table>
369
  </div>
370
  </div>
 
 
 
 
 
 
 
371
 
372
 
373
-
374
- <div id="metabox_basic_settings" class="postbox" >
375
- <h3 class='hndle' style="padding:5px;"><span>Email Copy to User</span></h3>
376
  <div class="inside">
377
  <table class="form-table">
378
  <tr valign="top">
@@ -408,16 +487,21 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
408
  <td><textarea type="text" name="cu_message" rows="6" cols="80"><?php echo $this->get_option('cu_message', CP_CFEMAIL_DEFAULT_cu_message); ?></textarea></td>
409
  </tr>
410
  </table>
411
- </div>
 
 
 
 
 
 
412
  </div>
413
 
414
 
415
- <div id="metabox_basic_settings" class="postbox" >
416
- <h3 class='hndle' style="padding:5px;"><span>Captcha Verification</span></h3>
417
  <div class="inside">
418
  <table class="form-table">
419
  <tr valign="top">
420
- <th scope="row">Use Captcha Verification?</th>
421
  <td colspan="5">
422
  <?php $option = $this->get_option('cv_enable_captcha', CP_CFEMAIL_DEFAULT_cv_enable_captcha); ?>
423
  <select name="cv_enable_captcha">
@@ -478,12 +562,22 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
478
 
479
 
480
  </table>
481
- </div>
 
 
 
 
 
 
482
  </div>
483
 
484
- <div id="metabox_basic_settings" class="postbox" >
485
  <h3 class='hndle' style="padding:5px;"><span>Automatic Reports: Send submissions in CSV format via email</span></h3>
486
  <div class="inside">
 
 
 
 
487
  <table class="form-table">
488
  <tr valign="top">
489
  <th scope="row">Enable Reports?</th>
@@ -534,26 +628,24 @@ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset( $_POST[$this->prefix.'_post_
534
  <td><textarea type="text" name="rep_message" rows="3" cols="80"><?php echo $this->get_option('rep_message', 'Attached you will find the data from the form submissions.'); ?></textarea></td>
535
  </tr>
536
  </table>
537
- </div>
 
 
 
 
 
538
  </div>
539
-
540
-
541
- <div id="metabox_basic_settings" class="postbox" >
542
- <h3 class='hndle' style="padding:5px;"><span>Note</span></h3>
543
- <div class="inside">
544
- To insert this form in a post/page, use the dedicated icon <?php echo '<img hspace="5" src="'.plugins_url('/images/cp_form.gif', __FILE__).'" alt="'.__('Insert '.$this->plugin_name,'contact-form-to-email').'" /></a>'; ?>
545
- which has been added to your Upload/Insert Menu, just below the title of your Post/Page edition.
546
- <br /><br />
547
- </div>
548
- </div>
549
-
550
  </div>
551
 
552
 
553
- <p class="submit"><input type="submit" name="submit" id="submit" class="button-primary" value="Save Changes" /></p>
 
 
554
 
555
 
556
- [<a href="https://wordpress.org/support/plugin/contact-form-to-email#new-post" target="_blank">Support</a>] | [<a href="<?php echo $this->plugin_URL; ?>" target="_blank">Help</a>]
557
  </form>
558
  </div>
 
 
559
  <script type="text/javascript">generateCaptcha();</script>
18
  echo "<div id='setting-error-settings_updated' class='updated settings-error'> <p><strong>Settings saved.</strong></p></div>";
19
 
20
  ?>
21
+ <script type="text/javascript">
 
22
 
23
+ jQuery(function(){
24
+ var $ = jQuery;
25
+ $(document).on('click', '.ahb-step', function(){
26
+ var s = $(this).data('step');
27
+ ahbGoToStep(s);
28
+ });
29
 
30
+ window['ahbGoToStep'] = function(s){
31
+ $('.ahb-step.ahb-step-active').removeClass('ahb-step-active');
32
+ $('.ahb-step[data-step="'+s+'"]').addClass('ahb-step-active');
33
+ $('.ahb-adintsection.ahb-adintsection-active').removeClass('ahb-adintsection-active');
34
+ $('.ahb-adintsection[data-step="'+s+'"]').addClass('ahb-adintsection-active');
35
+ $(window).scrollTop( $("#topadminsection").offset().top );
36
+ };
37
+ });
38
+
39
+ </script>
40
+ <div class="wrap">
41
+ <h1><?php _e('Edit','cpappb'); ?> - <?php echo $this->get_option('form_name','Contact Form'); ?> - <?php echo $this->plugin_name; ?></h1>
42
 
43
 
44
  <form method="post" action="" name="cpformconf">
46
  <input name="rsave" type="hidden" value="<?php echo $nonce; ?>" />
47
  <input name="<?php echo $this->prefix; ?>_id" type="hidden" value="<?php echo $this->item; ?>" />
48
 
49
+
50
+ <div id="topadminsection" class="ahb-buttons-container">
51
+ <input type="submit" class="button button-primary ahb-save-btn" name="savereturn" value="<?php _e('Save Changes and Return','cpappb'); ?>" />
52
+ <a href="<?php print esc_attr(admin_url('admin.php?page='.$this->menu_parameter));?>" class="ahb-return-link">&larr;<?php _e('Return to the contact forms list','cpappb'); ?></a>
53
+ <div class="clear"></div>
54
+ </div>
55
+
56
 
57
+ <div class="ahb-adintsection-container">
58
+ <div class="ahb-breadcrumb">
59
+ <div class="ahb-step ahb-step-active" data-step="1">
60
+ <i>1</i>
61
+ <label><?php _e('Email Settings','cpappb'); ?></label>
62
+ </div>
63
+ <div class="ahb-step" data-step="2">
64
+ <i>2</i>
65
+ <label><?php _e('Form Builder','cpappb'); ?></label>
66
+ </div>
67
+ <div class="ahb-step" data-step="3">
68
+ <i>3</i>
69
+ <label><?php _e('Autoreply to Customer','cpappb'); ?></label>
70
+ </div>
71
+ <div class="ahb-step" data-step="4">
72
+ <i>4</i>
73
+ <label><?php _e('Texts','cpappb'); ?></label>
74
+ </div>
75
+ <div class="ahb-step" data-step="5">
76
+ <i>5</i>
77
+ <label><?php _e('Antispam','cpappb'); ?></label>
78
+ </div>
79
+ <div class="ahb-step" data-step="6">
80
+ <i>6</i>
81
+ <label><?php _e('Reports','cpappb'); ?></label>
82
+ </div>
83
+ </div>
84
 
85
+
86
+ <div class="ahb-adintsection ahb-adintsection-active" data-step="1">
87
  <div class="inside">
88
  <table class="form-table">
89
 
104
  </td>
105
  </tr>
106
  <tr valign="top">
107
+ <th scope="row">"From" email</th>
108
+ <td><input required type="email" name="fp_from_email" size="40" value="<?php echo esc_attr($this->get_option('fp_from_email', CP_CFEMAIL_DEFAULT_fp_from_email)); ?>" /><br />
109
+ <span style="font-size:10px;color:#666666">
110
+ * Email used as "from". Example: admin@<?php echo str_replace('www.','',$_SERVER["HTTP_HOST"]); ?>
111
+ </span>
112
+ </td>
113
  </tr>
114
  <tr valign="top">
115
+ <th scope="row">Destination/administrator email</th>
116
+ <td><input required type="text" name="fp_destination_emails" size="40" value="<?php echo esc_attr($this->get_option('fp_destination_emails', CP_CFEMAIL_DEFAULT_fp_destination_emails)); ?>" /><br />
117
+ <span style="font-size:10px;color:#666666">
118
+ * Email that will receive the notification. Comma separated for multiple emails.
119
+ </span>
120
+ </td>
121
  </tr>
122
+
123
+ <tr>
124
+ <td colspan="2">
125
+ <div style="border:1px dotted black;padding:5px 15px 5px 15px;font-size:75%;background-color:#ffffcc">
126
+ <p><strong><u>Important note:</u></strong>
127
+ It is <strong>strongly recommended to use a "from" email address that belongs to the website domain name</strong>, for example if your website is
128
+ <em>http://<?php echo $_SERVER["HTTP_HOST"]; ?></em> then use an email address like <em>admin@<?php echo str_replace('www.','',$_SERVER["HTTP_HOST"]); ?></em>, this will help to skip a lot of anti-spam restrictions.
129
+ Avoid using emails like "<em>...@gmail.com</em>", "<em>...@hotmail.com</em>", "<em>...@aol.com</em>" as "from" addresses since these are identified as originated
130
+ at external servers and reach to the spam folder or are completely blocked. This isn't a mandatory requirement but it is strongly recommended.</p>
131
+ </div>
132
+ </td>
133
+ </tr>
134
+
135
+ <tr><td colspan="2"><hr /></td></tr>
136
+
137
  <tr valign="top">
138
  <th scope="row">On submit action</th>
139
  <td>
154
  <th scope="row">Message to display after submission</th>
155
  <td><textarea name="fp_return_message" cols="80" rows="3"><?php echo esc_attr($this->get_option('fp_return_message', 'Thank you.')); ?></textarea></td>
156
  </tr>
157
+
158
+ <tr><td colspan="2"><hr /></td></tr>
159
+
160
+ <tr valign="top">
161
+ <th scope="row">Enable notification email to administrator?</th>
162
  <td>
163
  <?php $option = $this->get_option('fp_enableemail', 'true'); ?>
164
  <select name="fp_enableemail" onchange="javascript:fte_enable_display();">
197
  </tr>
198
  </table>
199
 
200
+ </div>
201
+ <div class="ahb-buttons-container">
202
+ <input type="button" value="<?php _e('Next Step - Editor >','cfte'); ?>" class="button" style="float:right;margin-right:10px" onclick="ahbGoToStep(2);" />
203
+ <input type="submit" name="savepublish" value="<?php _e('Save and Publish','cfte'); ?>" class="button button-primary" style="float:right;margin-right:10px" />
204
+ <input type="submit" name="savereturn" value="<?php _e('Save and Return','cfte'); ?>" class="button button-primary" style="float:right;margin-right:10px" />
205
+ <div class="clear"></div>
206
+ </div>
 
207
  </div>
208
 
209
 
210
+ <div class="ahb-adintsection" data-step="2">
 
211
  <div class="inside">
212
 
213
  <input type="hidden" name="form_structure" id="form_structure" size="180" value="<?php echo str_replace('"','&quot;',str_replace("\r","",str_replace("\n","",esc_attr($this->cleanJSON($this->get_option('form_structure', CP_CFEMAIL_DEFAULT_form_structure)))))); ?>" />
346
 
347
  </div>
348
 
349
+ <div style="padding:10px;background-color:#ffffdd;border:1px dotted black;">
350
+ <p><STRONG>In this version</STRONG> the form builder supports <STRONG>"Single Line Text", "Email", "Text-area" and "Acceptance Checkbox"</STRONG>.</p>
351
  <p><button type="button" onclick="window.open('https://form2email.dwbooster.com/download?src=activatebtn');" style="cursor:pointer;height:35px;color:#20A020;font-weight:bold;">Activate the FULL form builder</button>
352
+ <p style="font-weight:bold">The full set of fields also supports:</p>
353
  <ul>
354
+ <li> - <strong>Conditional Logic</strong>: Hide/show fields based in previous selections.</li>
355
+ <li> - File <strong>uploads</strong>, <strong>Multi-page</strong> forms, sidebar widget</li>
356
+ <li> - <strong>Convert the form in a payment / booking form</strong> with integration with PayPal Standard, PayPal Pro, Stripe, Authorize.net, Skrill, Mollie / iDeal, TargetPay / iDeal, SagePay, RedSys TPV and Sage Payments.</li>
357
+ <li> - <strong><a href="?page=cp_apphourbooking_addons">Full set of addons</a></strong> (iCal, SMS, Signature fields, Payment Calculations, reCaptcha, MailChimp, ...), <strong>fields</strong> and <strong>validations</strong></li>
 
 
358
  </ul>
359
  <p>For an appointment booking option check the <a href="https://wordpress.org/plugins/appointment-hour-booking/">Appointment/Service Booking Calendar</a>.</p>
360
  </p>
361
 
362
  </div>
363
 
364
+ </div>
365
+ <div class="ahb-buttons-container">
366
+ <input type="button" value="<?php _e('Next Step - Autoreply to Customer >','cfte'); ?>" class="button" style="float:right;margin-right:10px" onclick="ahbGoToStep(3);" />
367
+ <input type="submit" name="savepublish" value="<?php _e('Save and Publish','cfte'); ?>" class="button button-primary" style="float:right;margin-right:10px" />
368
+ <input type="submit" name="savereturn" value="<?php _e('Save and Return','cfte'); ?>" class="button button-primary" style="float:right;margin-right:10px" />
369
+ <div class="clear"></div>
370
+ </div>
371
  </div>
372
 
373
 
374
+ <div class="ahb-adintsection" data-step="4">
375
  <div id="metabox_basic_settings" class="postbox" >
376
  <h3 class='hndle' style="padding:5px;"><span>Submit Button</span></h3>
377
  <div class="inside">
442
  </table>
443
  </div>
444
  </div>
445
+ <div class="ahb-buttons-container">
446
+ <input type="button" value="<?php _e('Next Step - Antispam >','cfte'); ?>" class="button" style="float:right;margin-right:10px" onclick="ahbGoToStep(5);" />
447
+ <input type="submit" name="savepublish" value="<?php _e('Save and Publish','cfte'); ?>" class="button button-primary" style="float:right;margin-right:10px" />
448
+ <input type="submit" name="savereturn" value="<?php _e('Save and Return','cfte'); ?>" class="button button-primary" style="float:right;margin-right:10px" />
449
+ <div class="clear"></div>
450
+ </div>
451
+ </div>
452
 
453
 
454
+ <div class="ahb-adintsection" data-step="3">
 
 
455
  <div class="inside">
456
  <table class="form-table">
457
  <tr valign="top">
487
  <td><textarea type="text" name="cu_message" rows="6" cols="80"><?php echo $this->get_option('cu_message', CP_CFEMAIL_DEFAULT_cu_message); ?></textarea></td>
488
  </tr>
489
  </table>
490
+ </div>
491
+ <div class="ahb-buttons-container">
492
+ <input type="button" value="<?php _e('Next Step - Texts >','cfte'); ?>" class="button" style="float:right;margin-right:10px" onclick="ahbGoToStep(4);" />
493
+ <input type="submit" name="savepublish" value="<?php _e('Save and Publish','cfte'); ?>" class="button button-primary" style="float:right;margin-right:10px" />
494
+ <input type="submit" name="savereturn" value="<?php _e('Save and Return','cfte'); ?>" class="button button-primary" style="float:right;margin-right:10px" />
495
+ <div class="clear"></div>
496
+ </div>
497
  </div>
498
 
499
 
500
+ <div class="ahb-adintsection" data-step="5">
 
501
  <div class="inside">
502
  <table class="form-table">
503
  <tr valign="top">
504
+ <th scope="row">Use Antispam Captcha Verification?</th>
505
  <td colspan="5">
506
  <?php $option = $this->get_option('cv_enable_captcha', CP_CFEMAIL_DEFAULT_cv_enable_captcha); ?>
507
  <select name="cv_enable_captcha">
562
 
563
 
564
  </table>
565
+ </div>
566
+ <div class="ahb-buttons-container">
567
+ <input type="button" value="<?php _e('Next Step - Reports >','cfte'); ?>" class="button" style="float:right;margin-right:10px" onclick="ahbGoToStep(6);" />
568
+ <input type="submit" name="savepublish" value="<?php _e('Save and Publish','cfte'); ?>" class="button button-primary" style="float:right;margin-right:10px" />
569
+ <input type="submit" name="savereturn" value="<?php _e('Save and Return','cfte'); ?>" class="button button-primary" style="float:right;margin-right:10px" />
570
+ <div class="clear"></div>
571
+ </div>
572
  </div>
573
 
574
+ <div class="ahb-adintsection" data-step="6">
575
  <h3 class='hndle' style="padding:5px;"><span>Automatic Reports: Send submissions in CSV format via email</span></h3>
576
  <div class="inside">
577
+
578
+ <p><strong>Note: </strong> This section is for <strong>daily reports</strong> for this form. If you are looking for the <strong>immediate email notifications</strong>
579
+ then go to the <a href="javascript:ahbGoToStep(1);">STEP 1</a> of the settings on this page.</p>
580
+
581
  <table class="form-table">
582
  <tr valign="top">
583
  <th scope="row">Enable Reports?</th>
628
  <td><textarea type="text" name="rep_message" rows="3" cols="80"><?php echo $this->get_option('rep_message', 'Attached you will find the data from the form submissions.'); ?></textarea></td>
629
  </tr>
630
  </table>
631
+ </div>
632
+ <div class="ahb-buttons-container">
633
+ <input type="submit" name="savepublish" value="<?php _e('Save and Publish','cfte'); ?>" class="button button-primary" style="float:right;margin-right:10px" />
634
+ <input type="submit" name="savereturn" value="<?php _e('Save and Return','cfte'); ?>" class="button button-primary" style="float:right;margin-right:10px" />
635
+ <div class="clear"></div>
636
+ </div>
637
  </div>
638
+
 
 
 
 
 
 
 
 
 
 
639
  </div>
640
 
641
 
642
+ <div class="ahb-buttons-container">
643
+ <a href="<?php print esc_attr(admin_url('admin.php?page='.$this->menu_parameter));?>" class="ahb-return-link">&larr;<?php _e('Return to the contact forms list','cpappb'); ?></a>
644
+ </div>
645
 
646
 
 
647
  </form>
648
  </div>
649
+
650
+ [<a href="https://wordpress.org/support/plugin/contact-form-to-email#new-post" target="_blank">Support</a>] | [<a href="<?php echo $this->plugin_URL; ?>" target="_blank">Help</a>]
651
  <script type="text/javascript">generateCaptcha();</script>
cp-main-class.inc.php CHANGED
@@ -967,6 +967,14 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
967
  'cv_text_enter_valid_captcha' => $_POST['cv_text_enter_valid_captcha']
968
  )
969
  , array( 'id' => $this->item ));
 
 
 
 
 
 
 
 
970
  }
971
 
972
 
967
  'cv_text_enter_valid_captcha' => $_POST['cv_text_enter_valid_captcha']
968
  )
969
  , array( 'id' => $this->item ));
970
+
971
+ if (isset($_POST["savepublish"]))
972
+ {
973
+ echo '<script type="text/javascript">document.location="?page='.$this->menu_parameter.'&pwizard=1&cal='.$this->item.'";</script>';
974
+ } else if (isset($_POST["savereturn"]))
975
+ {
976
+ echo '<script type="text/javascript">document.location="?page='.$this->menu_parameter.'&confirm=1";</script>';
977
+ }
978
  }
979
 
980
 
cp-publish-wizzard.inc.php CHANGED
@@ -32,7 +32,7 @@
32
  </style>
33
 
34
  <div class="ahb-buttons-container">
35
- <a href="<?php print esc_attr(admin_url('admin.php?page='.$this->menu_parameter));?>" class="ahb-return-link">&larr;Return to the calendars list</a>
36
  <div class="clear"></div>
37
  </div>
38
 
32
  </style>
33
 
34
  <div class="ahb-buttons-container">
35
+ <a href="<?php print esc_attr(admin_url('admin.php?page='.$this->menu_parameter));?>" class="ahb-return-link">&larr;Return to the contact forms list</a>
36
  <div class="clear"></div>
37
  </div>
38
 
form-to-email.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Contact Form Email
4
  Plugin URI: https://form2email.dwbooster.com/download
5
  Description: Contact form that sends the data to email and also to a database list and CSV file.
6
- Version: 1.2.77
7
  Author: CodePeople
8
  Author URI: https://form2email.dwbooster.com
9
  Text Domain: contact-form-to-email
3
  Plugin Name: Contact Form Email
4
  Plugin URI: https://form2email.dwbooster.com/download
5
  Description: Contact form that sends the data to email and also to a database list and CSV file.
6
+ Version: 1.2.78
7
  Author: CodePeople
8
  Author URI: https://form2email.dwbooster.com
9
  Text Domain: contact-form-to-email