Plugin Directory

Changeset 1739371


Ignore:
Timestamp:
10/02/2017 07:45:22 AM (9 years ago)
Author:
tresrl
Message:

V 1.8 - Update - 20171002

Location:
simplest-form/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • simplest-form/trunk/assets/css/frontend/simplestform.css

    r1706840 r1739371  
    11div.alert.alert-success{color:#3c763d;background-color: #dff0d8;border-color: #d6e9c6;}
    22div.alert.alert-danger {color: #a94442;background-color: #f2dede;border-color: #ebccd1;}
     3div.invisible-field{display:none}
  • simplest-form/trunk/readme.txt

    r1732800 r1739371  
    44Requires at least: 4.7
    55Tested up to: 4.8.2
    6 Stable tag: 1.7.1
     6Stable tag: 1.8
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1414
    1515This 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.
     16Is 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.
    1617
    1718Credits:
     
    3334
    3435== Changelog ==
     36
     37= 1.8 =
     38* Added antispam
    3539
    3640= 1.7.1 =
  • simplest-form/trunk/simplestform.php

    r1732800 r1739371  
    77Author: TRe Technology And Research S.r.l.
    88Author URI: http://www.tresrl.it
    9 Version: 1.7.1
     9Version: 1.8
    1010License: GPL-2.0+
    1111*/
  • simplest-form/trunk/src/Simplestform/Admin.php

    r1731543 r1739371  
    429429     */
    430430    public function add_columns_to_summary_custom_post( $columns ) {
    431            
     431       
    432432        // New columns to add to table
    433433        $new_columns = array(
    434434            $this->get_custom_post_name().'-name' => __( 'Nome', $this->get_language_domain() ),
    435435            $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() ),
    437437            $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() ),
    439439            $this->get_custom_post_name().'-date' => __( 'Data', $this->get_language_domain() ),
    440440        );
     441       
     442        // Remove CB. The del box!
     443        unset( $columns['cb'] );
     444       
     445        // Remove title column
     446        unset( $columns['title'] );
    441447       
    442448        // Remove unwanted publish date column
  • simplest-form/trunk/src/Simplestform/Base.php

    r1732800 r1739371  
    2727     * @var string
    2828     */
    29     private $_version = '1.7.1';
     29    private $_version = '1.8';
    3030   
    3131    /**
  • simplest-form/trunk/src/Simplestform/Frontend.php

    r1730430 r1739371  
    77 *
    88 *
    9  *
    10  *
    11  * @since 1.0
     9 * @version 1.2
    1210 *
    1311 */
     
    187185            }
    188186           
     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           
    189200            $error = $this->validate_form();
    190201           
  • simplest-form/trunk/views/frontend/basic-form.php

    r1725637 r1739371  
    6161    <form method="post" action="<?php esc_url( $_SERVER['REQUEST_URI'] ) ?>">
    6262       
     63        <!-- nonce -->
    6364        <?php wp_nonce_field( $this->get_prefix().'nonce_field' ); ?>
     65        <!-- /nonce -->
    6466       
    6567        <!-- page -->
     
    143145        <!-- /privacy -->
    144146       
     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       
    145156        <button type="submit" class="btn btn-default btn-custom" name="<?php echo $this->get_prefix() ?>submit"><?php _e('Invia' , $this->get_language_domain()) ?></button>
    146157       
Note: See TracChangeset for help on using the changeset viewer.