Changeset 1149870
- Timestamp:
- 04/30/2015 07:01:10 AM (11 years ago)
- Location:
- nm-contact-forms
- Files:
-
- 17 added
- 3 edited
-
tags/1.1.3 (added)
-
tags/1.1.3/admin (added)
-
tags/1.1.3/admin/admin.css (added)
-
tags/1.1.3/admin/forms.php (added)
-
tags/1.1.3/admin/images (added)
-
tags/1.1.3/admin/images/batman_new.png (added)
-
tags/1.1.3/admin/images/donation.png (added)
-
tags/1.1.3/admin/images/nm_close.png (added)
-
tags/1.1.3/admin/js (added)
-
tags/1.1.3/admin/js/nm_forms.js (added)
-
tags/1.1.3/admin/settings.php (added)
-
tags/1.1.3/css (added)
-
tags/1.1.3/css/front.css (added)
-
tags/1.1.3/index.php (added)
-
tags/1.1.3/readme.txt (added)
-
tags/1.1.3/templates (added)
-
tags/1.1.3/templates/email_template.php (added)
-
trunk/admin/settings.php (modified) (2 diffs)
-
trunk/index.php (modified) (6 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nm-contact-forms/trunk/admin/settings.php
r1141054 r1149870 8 8 <h2>NM contact forms - Settings</h2> 9 9 10 <?php if( $_GET['settings-updated'] == 'true'){?>10 <?php if(isset($_GET['settings-updated']) && $_GET['settings-updated'] == 'true'){?> 11 11 <div class="updated"> 12 12 <p>All forms has been saved.</p> … … 117 117 <fieldset> 118 118 <legend class="screen-reader-text"><span>Enabled</span></legend><label for="users_can_register"> 119 <input name="nm_f_s[hide_donation]" type="checkbox" <?php if( $nm_form_s['hide_donation'] == 'on'){?>checked<?php }?>>119 <input name="nm_f_s[hide_donation]" type="checkbox" <?php if(isset($nm_form_s['hide_donation'])){?>checked<?php }?>> 120 120 Hide (Thanks if you have donated)</label> 121 121 </fieldset> -
nm-contact-forms/trunk/index.php
r1141054 r1149870 4 4 * Plugin URI: http://nutmedia.co.uk/nm-contact-forms 5 5 * Description: This plugin has built in honeyPot and reChaptcha anti spam solutions. Supports GET variables (allows to pass GET variable info to the form). Option to turn off default CSS, add extra classes. User friendly UI, drag and drop sorting. 6 * Version: 1.1. 26 * Version: 1.1.3 7 7 * Author: Aidas Keburys @ Nutmedia 8 8 * Author URI: http://nutmedia.co.uk … … 39 39 } 40 40 41 add_action('init', array($this,'front_head'));42 41 add_action( 'admin_init', array($this,'nm_forms_init') ); 43 42 add_shortcode( 'nm_forms', array($this,'nm_forms_shortcode') ); … … 138 137 139 138 function nm_forms_shortcode( $atts ) { 139 140 $nm_form_s = get_option( 'nm_f_s' ); 141 142 if(empty($nm_form_s['recaptcha_lang'])) $nm_form_s['recaptcha_lang'] = 'en'; 143 wp_enqueue_script( 'recaptcha', 'https://www.google.com/recaptcha/api.js?hl='.$nm_form_s['recaptcha_lang'], array(), null, true ); 144 145 if($nm_form_s['default_css'] == 'on'){ 146 wp_enqueue_style( 'nm_forms-css', plugins_url('nm-contact-forms/css/front.css') ); 147 } 148 140 149 $params = shortcode_atts( array( 141 150 'id' => '', … … 156 165 function nm_donate(){ 157 166 $nm_form_s = get_option( 'nm_f_s' ); 158 if( $nm_form_s['hide_donation'] != 'on'){167 if(!isset($nm_form_s['hide_donation'])){ 159 168 ?> 160 169 … … 389 398 foreach($nm_form['fields'] as $field){ 390 399 391 if(!empty($field['get'])) $get_value = $this->xss_clean($_GET[$field['get']]); 400 401 if(!empty($_GET[$field['get']])) $get_value = $this->xss_clean($_GET[$field['get']]); 392 402 else $get_value = ''; 393 403 … … 554 564 } 555 565 556 function front_head()557 {558 559 $nm_form_s = get_option( 'nm_f_s' );560 561 wp_enqueue_script( 'recaptcha', 'https://www.google.com/recaptcha/api.js?hl='.$nm_form_s['recaptcha_lang'], array(), null, true );562 563 if($nm_form_s['default_css'] == 'on'){564 wp_enqueue_style( 'nm_forms-css', plugins_url('nm-contact-forms/css/front.css') );565 }566 567 }568 569 566 function admin_head() 570 567 { -
nm-contact-forms/trunk/readme.txt
r1147812 r1149870 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.2.1 7 Stable tag: 1.1. 27 Stable tag: 1.1.3 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 134 134 135 135 == Changelog == 136 = 1.1.3 = 137 * Fixed php notices if debug mode enabled. Loading CSS and JS only when shortcode is used. 136 138 = 1.1.2 = 137 139 * Added setting for Google reCaptcha language
Note: See TracChangeset
for help on using the changeset viewer.