Plugin Directory

Changeset 513386


Ignore:
Timestamp:
03/02/2012 08:29:13 AM (14 years ago)
Author:
ichurakov
Message:
 
Location:
ajax-contact-me
Files:
2 edited
9 copied

Legend:

Unmodified
Added
Removed
  • ajax-contact-me/tags/1.31/contact-me.php

    r508245 r513386  
    44Plugin URI: http://www.icprojects.net/ajax-contact-form.html
    55Description: Light AJAX-ed contact form. Use shortcode [contactme] to add the form to posts/pages.
    6 Version: 1.30
     6Version: 1.31
    77Author: Ivan Churakov
    88Author URI: http://www.icprojects.net/about/
    99*/
    10 define('CM_VERSION', 1.30);
     10define('CM_VERSION', 1.31);
    1111wp_enqueue_script("jquery");
    1212
     
    255255        <script type="text/javascript">
    256256            jQuery(document).ready(function(){
    257                 jQuery("#contactform'.$suffix.'").submit(function(){
     257                jQuery("#submit'.$suffix.'").click(function(){
    258258                    var action = "'.get_bloginfo("wpurl").'/wp-admin/admin-ajax.php";
    259259                    jQuery("#submit'.$suffix.'").attr("disabled","disabled").after("<img src=\''.plugins_url('/images/ajax-loader.gif', __FILE__).'\' class=\'contactme_loader\' width=\'16\' height=\'16\'/>");
     
    294294                    <br />
    295295                    <input type="hidden" name="action" id="action'.$suffix.'" value="'.time().'">
    296                     <input type="submit" class="contactme_submit" id="submit'.$suffix.'" value="'.__('Submit', 'contactme').'" />
     296                    <input type="button" class="contactme_submit" id="submit'.$suffix.'" value="'.__('Submit', 'contactme').'" />
    297297                </fieldset>
    298298            </form>
     
    343343            $msg  = __('You have been contacted by', 'contactme').' '.$name.'. '.__('The message is as follows.', 'contactme').PHP_EOL.PHP_EOL;
    344344            $msg .= $comments.PHP_EOL.PHP_EOL;
    345             $msg .= __('You can contact', 'contactme').' '.$name.' '.__('via email', 'contactme').' '.$email.'.';
     345            $msg .= __('You can contact', 'contactme').' '.$name.' '.__('via email', 'contactme').' '.$email.'.'.PHP_EOL;
     346            $msg .= __('Sent via', 'contactme').' '.$_SERVER['HTTP_REFERER'];
    346347            $msg = wordwrap($msg, 70);
    347             $mail_headers .= "From: ".$name." <".$email.">".PHP_EOL;
     348            $mail_headers .= "From: ".$name." <".$this->options['from_email'].">".PHP_EOL;
    348349            $mail_headers .= "Reply-To: ".$email.PHP_EOL;
    349350            $mail_headers .= "MIME-Version: 1.0".PHP_EOL;
  • ajax-contact-me/tags/1.31/readme.txt

    r508290 r513386  
    99Requires at least: 3.0
    1010Tested up to: 3.3.1
    11 Stable tag: 1.30
     11Stable tag: 1.31
    1212
    1313Contact Me is an elegant and light AJAX contact form. Activate the plugin and insert simple short code [contactme] into posts/pages.
     
    4141== Changelog ==
    4242
     43= 1.31 =
     44* Mail headers updated.
     45* Added URL of the page where the form was submitted from.
     46
    4347= 1.30 =
    4448* Slovenian translation added.
  • ajax-contact-me/trunk/contact-me.php

    r508245 r513386  
    44Plugin URI: http://www.icprojects.net/ajax-contact-form.html
    55Description: Light AJAX-ed contact form. Use shortcode [contactme] to add the form to posts/pages.
    6 Version: 1.30
     6Version: 1.31
    77Author: Ivan Churakov
    88Author URI: http://www.icprojects.net/about/
    99*/
    10 define('CM_VERSION', 1.30);
     10define('CM_VERSION', 1.31);
    1111wp_enqueue_script("jquery");
    1212
     
    255255        <script type="text/javascript">
    256256            jQuery(document).ready(function(){
    257                 jQuery("#contactform'.$suffix.'").submit(function(){
     257                jQuery("#submit'.$suffix.'").click(function(){
    258258                    var action = "'.get_bloginfo("wpurl").'/wp-admin/admin-ajax.php";
    259259                    jQuery("#submit'.$suffix.'").attr("disabled","disabled").after("<img src=\''.plugins_url('/images/ajax-loader.gif', __FILE__).'\' class=\'contactme_loader\' width=\'16\' height=\'16\'/>");
     
    294294                    <br />
    295295                    <input type="hidden" name="action" id="action'.$suffix.'" value="'.time().'">
    296                     <input type="submit" class="contactme_submit" id="submit'.$suffix.'" value="'.__('Submit', 'contactme').'" />
     296                    <input type="button" class="contactme_submit" id="submit'.$suffix.'" value="'.__('Submit', 'contactme').'" />
    297297                </fieldset>
    298298            </form>
     
    343343            $msg  = __('You have been contacted by', 'contactme').' '.$name.'. '.__('The message is as follows.', 'contactme').PHP_EOL.PHP_EOL;
    344344            $msg .= $comments.PHP_EOL.PHP_EOL;
    345             $msg .= __('You can contact', 'contactme').' '.$name.' '.__('via email', 'contactme').' '.$email.'.';
     345            $msg .= __('You can contact', 'contactme').' '.$name.' '.__('via email', 'contactme').' '.$email.'.'.PHP_EOL;
     346            $msg .= __('Sent via', 'contactme').' '.$_SERVER['HTTP_REFERER'];
    346347            $msg = wordwrap($msg, 70);
    347             $mail_headers .= "From: ".$name." <".$email.">".PHP_EOL;
     348            $mail_headers .= "From: ".$name." <".$this->options['from_email'].">".PHP_EOL;
    348349            $mail_headers .= "Reply-To: ".$email.PHP_EOL;
    349350            $mail_headers .= "MIME-Version: 1.0".PHP_EOL;
  • ajax-contact-me/trunk/readme.txt

    r508290 r513386  
    99Requires at least: 3.0
    1010Tested up to: 3.3.1
    11 Stable tag: 1.30
     11Stable tag: 1.31
    1212
    1313Contact Me is an elegant and light AJAX contact form. Activate the plugin and insert simple short code [contactme] into posts/pages.
     
    4141== Changelog ==
    4242
     43= 1.31 =
     44* Mail headers updated.
     45* Added URL of the page where the form was submitted from.
     46
    4347= 1.30 =
    4448* Slovenian translation added.
Note: See TracChangeset for help on using the changeset viewer.