Version Description
No known upgrade issues.
Download this release
Release Info
Developer | mpwalsh8 |
Plugin | Google Forms |
Version | 0.25 |
Comparing to | |
See all releases |
Code changes from version 0.24 to 0.25
- index.php +2 -2
- readme.txt +9 -1
- wpgform-core.php +11 -9
index.php
CHANGED
@@ -4,8 +4,8 @@
|
|
4 |
* Plugin Name: WordPress Google Form
|
5 |
* Plugin URI: http://michaelwalsh.org/wordpress/wordpress-plugins/wpgform/
|
6 |
* Description: Add Google Forms to a WordPress web site. Display a Google Form directly into your posts, pages or sidebar. Style the Google Form to match your existing theme and display a custom confirmation page after form submission.
|
7 |
-
* Version: 0.
|
8 |
-
* Build: 0.
|
9 |
* Last Modified: $WCDATE$
|
10 |
* Author: Mike Walsh
|
11 |
* Author URI: http://www.michaelwalsh.org
|
4 |
* Plugin Name: WordPress Google Form
|
5 |
* Plugin URI: http://michaelwalsh.org/wordpress/wordpress-plugins/wpgform/
|
6 |
* Description: Add Google Forms to a WordPress web site. Display a Google Form directly into your posts, pages or sidebar. Style the Google Form to match your existing theme and display a custom confirmation page after form submission.
|
7 |
+
* Version: 0.25
|
8 |
+
* Build: 0.25.$WCREV$
|
9 |
* Last Modified: $WCDATE$
|
10 |
* Author: Mike Walsh
|
11 |
* Author URI: http://www.michaelwalsh.org
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: Google Forms, Google Docs, Google, Spreadsheet, shortcode, forms
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.3.1
|
7 |
-
Stable tag: 0.
|
8 |
|
9 |
Embeds a published, public Google Form in a WordPress post, page, or widget.
|
10 |
|
@@ -177,6 +177,14 @@ No known upgrade issues.
|
|
177 |
|
178 |
== Changelog ==
|
179 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
= Version 0.23 =
|
181 |
* Fixed problem with UTF-8 characters not being passed through the form correctly.
|
182 |
|
4 |
Tags: Google Forms, Google Docs, Google, Spreadsheet, shortcode, forms
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.3.1
|
7 |
+
Stable tag: 0.25
|
8 |
|
9 |
Embeds a published, public Google Form in a WordPress post, page, or widget.
|
10 |
|
177 |
|
178 |
== Changelog ==
|
179 |
|
180 |
+
= Version 0.25 =
|
181 |
+
* Fixed problem with checkbox processing when using the prefix attribute.
|
182 |
+
* Fixed problem with hiding legal links when using the prefix attribute.
|
183 |
+
* Fixed problem with legal='off' attribute not being processed correctly.
|
184 |
+
|
185 |
+
= Version 0.24 =
|
186 |
+
* Fixed minor typos and other assorted nits.
|
187 |
+
|
188 |
= Version 0.23 =
|
189 |
* Fixed problem with UTF-8 characters not being passed through the form correctly.
|
190 |
|
wpgform-core.php
CHANGED
@@ -419,9 +419,11 @@ class wpGForm
|
|
419 |
|
420 |
// Hide Google Legal Stuff?
|
421 |
|
422 |
-
if (
|
423 |
-
|
424 |
-
|
|
|
|
|
425 |
|
426 |
// Need to fix names for checkbox items to account for how PHP
|
427 |
// handles arrays - each name needs to have the "[]" tacked on
|
@@ -461,20 +463,20 @@ class wpGForm
|
|
461 |
$css = '' ;
|
462 |
|
463 |
// Output Javscript for form validation
|
464 |
-
$js = '
|
465 |
<script type="text/javascript">
|
466 |
jQuery(document).ready(function($) {
|
467 |
//$("form input:checkbox").wrap(\'<span></span>\').parent().css({background:"yellow", border:"3px red solid"});
|
468 |
// Need to fix the name arguments for checkboxes
|
469 |
// so PHP will pass them as an array correctly.
|
470 |
-
$("div
|
471 |
this.name = this.name + \'[]\';
|
472 |
});
|
473 |
-
' ;
|
474 |
// Before closing the <script> tag, is the form read only?
|
475 |
-
if ($readonly) $js .= '
|
476 |
-
$("div
|
477 |
-
' ;
|
478 |
|
479 |
// Before closing the <script> tag, is this the confirmation
|
480 |
// AND do we have a custom confiormation page or alert message?
|
419 |
|
420 |
// Hide Google Legal Stuff?
|
421 |
|
422 |
+
if (!(bool)$legal)
|
423 |
+
{
|
424 |
+
$html = preg_replace(sprintf('/<div class="%sss-legal"/i', $prefix),
|
425 |
+
sprintf('<div class="%sss-legal" style="display:none;"', $prefix), $html) ;
|
426 |
+
}
|
427 |
|
428 |
// Need to fix names for checkbox items to account for how PHP
|
429 |
// handles arrays - each name needs to have the "[]" tacked on
|
463 |
$css = '' ;
|
464 |
|
465 |
// Output Javscript for form validation
|
466 |
+
$js = sprintf('
|
467 |
<script type="text/javascript">
|
468 |
jQuery(document).ready(function($) {
|
469 |
//$("form input:checkbox").wrap(\'<span></span>\').parent().css({background:"yellow", border:"3px red solid"});
|
470 |
// Need to fix the name arguments for checkboxes
|
471 |
// so PHP will pass them as an array correctly.
|
472 |
+
$("div.%sss-form-container input:checkbox").each(function(index) {
|
473 |
this.name = this.name + \'[]\';
|
474 |
});
|
475 |
+
', $prefix) ;
|
476 |
// Before closing the <script> tag, is the form read only?
|
477 |
+
if ($readonly) $js .= sprintf('
|
478 |
+
$("div.%sss-form-container :input").attr("disabled", true);
|
479 |
+
', $prefix) ;
|
480 |
|
481 |
// Before closing the <script> tag, is this the confirmation
|
482 |
// AND do we have a custom confiormation page or alert message?
|