Changeset 2668396
- Timestamp:
- 01/28/2022 04:58:58 PM (4 years ago)
- Location:
- f13-email
- Files:
-
- 26 added
- 4 edited
-
tags/1.0.1 (added)
-
tags/1.0.1/controllers (added)
-
tags/1.0.1/controllers/admin.php (added)
-
tags/1.0.1/controllers/ajax.php (added)
-
tags/1.0.1/controllers/control.php (added)
-
tags/1.0.1/controllers/email.php (added)
-
tags/1.0.1/controllers/install.php (added)
-
tags/1.0.1/css (added)
-
tags/1.0.1/css/f13-email-admin.css (added)
-
tags/1.0.1/css/f13-email.css (added)
-
tags/1.0.1/f13-email.php (added)
-
tags/1.0.1/js (added)
-
tags/1.0.1/js/f13-email-admin.js (added)
-
tags/1.0.1/js/f13-email-ajax.js (added)
-
tags/1.0.1/models (added)
-
tags/1.0.1/models/contact_form.php (added)
-
tags/1.0.1/models/logs.php (added)
-
tags/1.0.1/readme.txt (added)
-
tags/1.0.1/views (added)
-
tags/1.0.1/views/admin (added)
-
tags/1.0.1/views/admin/admin.php (added)
-
tags/1.0.1/views/admin/contact_form.php (added)
-
tags/1.0.1/views/admin/logs.php (added)
-
tags/1.0.1/views/admin/settings.php (added)
-
tags/1.0.1/views/contact_form.php (added)
-
tags/1.0.1/views/logs.php (added)
-
trunk/controllers/control.php (modified) (3 diffs)
-
trunk/f13-email.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/views/contact_form.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
f13-email/trunk/controllers/control.php
r2623145 r2668396 30 30 $template = ''; 31 31 32 $agree_terms = (int) filter_input($this->request_method, 'agree-terms'); 33 32 34 foreach ($data->fields as $field) { 33 35 $id = 'field-'.$field->sort; … … 40 42 $errors[$id] = sprintf(__('%s is a required field', 'f13-email'), esc_attr($field->title)); 41 43 } 42 43 44 44 45 45 if ($field->type == 'email' && !empty($value) && !is_email($value)) { … … 90 90 $headers[] = 'Reply-To: '.$reply_to; 91 91 } 92 if (wp_mail( 'jv@f13dev.com', 'Contact from blog', $template, $headers )) { 92 93 $subject = 'Contact from blog'.($agree_terms ? ' (Spam detected)' : ''); 94 if (wp_mail( get_bloginfo('admin_email'), $subject, $template, $headers )) { 93 95 return '<div class="f13-success" role="alert" aria-live="notice">'.trim(esc_attr($data->success)).'</div>'; 94 96 } -
f13-email/trunk/f13-email.php
r2623145 r2668396 4 4 Plugin URI: https://f13.dev/wordpress-plugin-email/ 5 5 Description: Use SMTP for sending emails, store email logs and build custom contact forms 6 Version: 1.0. 06 Version: 1.0.1 7 7 Author: f13dev 8 8 Author URI: http://f13.dev -
f13-email/trunk/readme.txt
r2623146 r2668396 3 3 Tags: SMTP, email, forms, contact, form builder, email logs 4 4 Requires at least: 5.0 5 Tested up to: 5. 8.16 Stable tag: 1.0. 05 Tested up to: 5.9 6 Stable tag: 1.0.1 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 21 21 22 22 [Read more about F13 Email](https://f13.dev/wordpress-plugin-email/) 23 24 == Changelog == 25 === 1.0.1 == 26 * Add honeypot, emails are still sent, subject appended with (possible spam) while testing effectiveness -
f13-email/trunk/views/contact_form.php
r2623145 r2668396 22 22 { 23 23 $v = '<div class="inner">'; 24 // $v .= '<p>'.$this->data->title.'</p>';25 24 $v .= $this->msg; 26 25 … … 55 54 } else 56 55 if ($field->type == 'checkbox') { 57 // $v .= '<label for="'.$id.'">'.esc_attr($field->title).$required.'</label>';58 56 $v .= '<fieldset class="f13-email-checkbox '.$error.'">'; 59 // if (!empty($field->title)) {60 57 $v .= '<legend style="display: none">'.esc_attr($field->title).$required.'</legend>'; 61 // }62 // $v .= '<div class="f13-email-checkbox">';63 58 $v .= '<input type="checkbox" name="'.$id.'" id="'.$id.'" '.(filter_input(INPUT_POST, $id) == $field->title ? 'checked="checked"' : '').' value="'.$field->title.'" autocomplete="on">'; 64 59 $v .= '<label for="'.$id.'">'.esc_attr($field->title).$required.'</label>'; 65 // $v .= '</div>';66 60 $v .= '</fieldset>'; 67 61 } else 68 62 if ($field->type == 'radio') { 69 // $v .= '<label for="'.$id.'">'.esc_attr($field->title).$required.'</label>';70 63 $v .= '<fieldset class="f13-email-checkbox '.$error.'">'; 71 64 if (!empty($field->title)) { … … 84 77 } 85 78 79 $v .= '<div style="display: none">'; 80 $v .= '<input type="checkbox" name="agree-terms" id="agree-terms" value="1" autocomplete="off">'; 81 $v .= '<label for="agree-terms">'.__('I agree to the terms', 'f13-email').'*</label>'; 82 $v .= '</div>'; 83 86 84 $v .= apply_filters('f13_recaptcha_add', ''); 87 85
Note: See TracChangeset
for help on using the changeset viewer.