Changeset 1739371
- Timestamp:
- 10/02/2017 07:45:22 AM (9 years ago)
- Location:
- simplest-form/trunk
- Files:
-
- 7 edited
-
assets/css/frontend/simplestform.css (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
simplestform.php (modified) (1 diff)
-
src/Simplestform/Admin.php (modified) (1 diff)
-
src/Simplestform/Base.php (modified) (1 diff)
-
src/Simplestform/Frontend.php (modified) (2 diffs)
-
views/frontend/basic-form.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simplest-form/trunk/assets/css/frontend/simplestform.css
r1706840 r1739371 1 1 div.alert.alert-success{color:#3c763d;background-color: #dff0d8;border-color: #d6e9c6;} 2 2 div.alert.alert-danger {color: #a94442;background-color: #f2dede;border-color: #ebccd1;} 3 div.invisible-field{display:none} -
simplest-form/trunk/readme.txt
r1732800 r1739371 4 4 Requires at least: 4.7 5 5 Tested up to: 4.8.2 6 Stable tag: 1. 7.16 Stable tag: 1.8 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 14 14 15 15 This plugin create a simple contact form, with database save. From 1.6 version, it is possible to set a goal for Google Analytics. When user submit form, goal is reached. Submit is server/server side, not AJAX. 16 Is there a simple antispam check. Because spammers fill the forms automatically (and without CSS), if the "trap" field is filled, we have a spam submit. 16 17 17 18 Credits: … … 33 34 34 35 == Changelog == 36 37 = 1.8 = 38 * Added antispam 35 39 36 40 = 1.7.1 = -
simplest-form/trunk/simplestform.php
r1732800 r1739371 7 7 Author: TRe Technology And Research S.r.l. 8 8 Author URI: http://www.tresrl.it 9 Version: 1. 7.19 Version: 1.8 10 10 License: GPL-2.0+ 11 11 */ -
simplest-form/trunk/src/Simplestform/Admin.php
r1731543 r1739371 429 429 */ 430 430 public function add_columns_to_summary_custom_post( $columns ) { 431 431 432 432 // New columns to add to table 433 433 $new_columns = array( 434 434 $this->get_custom_post_name().'-name' => __( 'Nome', $this->get_language_domain() ), 435 435 $this->get_custom_post_name().'-email' => __( 'Email', $this->get_language_domain() ), 436 $this->get_custom_post_name().'-message' => __( ' Richiesta', $this->get_language_domain() ),436 $this->get_custom_post_name().'-message' => __( 'Messaggio', $this->get_language_domain() ), 437 437 $this->get_custom_post_name().'-page' => __( 'Pagina', $this->get_language_domain() ), 438 $this->get_custom_post_name().'-privacy' => __( ' Accettazione privacy', $this->get_language_domain() ),438 $this->get_custom_post_name().'-privacy' => __( 'Privacy', $this->get_language_domain() ), 439 439 $this->get_custom_post_name().'-date' => __( 'Data', $this->get_language_domain() ), 440 440 ); 441 442 // Remove CB. The del box! 443 unset( $columns['cb'] ); 444 445 // Remove title column 446 unset( $columns['title'] ); 441 447 442 448 // Remove unwanted publish date column -
simplest-form/trunk/src/Simplestform/Base.php
r1732800 r1739371 27 27 * @var string 28 28 */ 29 private $_version = '1. 7.1';29 private $_version = '1.8'; 30 30 31 31 /** -
simplest-form/trunk/src/Simplestform/Frontend.php
r1730430 r1739371 7 7 * 8 8 * 9 * 10 * 11 * @since 1.0 9 * @version 1.2 12 10 * 13 11 */ … … 187 185 } 188 186 187 // check if trap is filled. 188 // @since 1.3 189 190 if ( isset ( $_POST['trap'] ) ) { 191 192 if ( $_POST['trap'] != '' ) { 193 194 wp_die(_e( 'Non inserire nulla nel campo "Trap"' , $this->get_language_domain() ) ); 195 196 } 197 198 } 199 189 200 $error = $this->validate_form(); 190 201 -
simplest-form/trunk/views/frontend/basic-form.php
r1725637 r1739371 61 61 <form method="post" action="<?php esc_url( $_SERVER['REQUEST_URI'] ) ?>"> 62 62 63 <!-- nonce --> 63 64 <?php wp_nonce_field( $this->get_prefix().'nonce_field' ); ?> 65 <!-- /nonce --> 64 66 65 67 <!-- page --> … … 143 145 <!-- /privacy --> 144 146 147 <!-- trap --> 148 149 <div class="form-group invisible-field"> 150 <label for="trap"><?php _e('Non inserire nulla in questo campo' , $this->get_language_domain() ) ?></label> 151 <input type="text" class="form-control" name="trap" /> 152 </div> 153 154 <!-- /trap --> 155 145 156 <button type="submit" class="btn btn-default btn-custom" name="<?php echo $this->get_prefix() ?>submit"><?php _e('Invia' , $this->get_language_domain()) ?></button> 146 157
Note: See TracChangeset
for help on using the changeset viewer.