Version Description
No known upgrade issues.
Download this release
Release Info
Developer | mpwalsh8 |
Plugin | Google Forms |
Version | 0.12 |
Comparing to | |
See all releases |
Code changes from version 0.11 to 0.12
- index.php +2 -2
- readme.txt +4 -1
- wpgform-core.php +1 -30
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.12
|
8 |
+
* Build: 0.12.$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 |
|
@@ -173,6 +173,9 @@ No known upgrade issues.
|
|
173 |
|
174 |
== Changelog ==
|
175 |
|
|
|
|
|
|
|
176 |
= Version 0.11 =
|
177 |
* Re-architected plugin to support multi-page Google Forms.
|
178 |
* Fixed bug which resulted in form being redisplayed when using default confirmation.
|
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.12
|
8 |
|
9 |
Embeds a published, public Google Form in a WordPress post, page, or widget.
|
10 |
|
173 |
|
174 |
== Changelog ==
|
175 |
|
176 |
+
= Version 0.12 =
|
177 |
+
* Debug code removed and typos fixed.
|
178 |
+
|
179 |
= Version 0.11 =
|
180 |
* Re-architected plugin to support multi-page Google Forms.
|
181 |
* Fixed bug which resulted in form being redisplayed when using default confirmation.
|
wpgform-core.php
CHANGED
@@ -411,35 +411,6 @@ class wpGForm
|
|
411 |
//print "<h1>A match was not found.</h1>";
|
412 |
}
|
413 |
|
414 |
-
// By default Google will display it's own confirmation page which can't
|
415 |
-
// be styled and is not contained within the web site. The plugin can
|
416 |
-
// optionally add some Javascript to redirect to a different URL upon
|
417 |
-
// submission of the form.
|
418 |
-
|
419 |
-
// Redirect to a custom confirmation page instead of the Google default?
|
420 |
-
|
421 |
-
/*
|
422 |
-
if (!is_null($confirm))
|
423 |
-
{
|
424 |
-
error_log(sprintf('%s::%s', basename(__FILE__), __LINE__)) ;
|
425 |
-
// Need to modify the FORM tag and add some new attributes.
|
426 |
-
//$xtra_form_attrs = 'onsubmit="submitted=true;"' ;
|
427 |
-
//$xtra_form_attrs = 'target="gform_iframe" onsubmit="submitted=true;"' ;
|
428 |
-
//$html = preg_replace("/<form/i", "<form {$xtra_form_attrs}", $html) ;
|
429 |
-
|
430 |
-
// Need some extra HTML which must be inserted before the extract FORM HTML.
|
431 |
-
//$xtra_html = '<script type="text/javascript">var submitted=false;</script>' ;
|
432 |
-
//$xtra_html .= '<iframe name="gform_iframe" id="gform_iframe" width="500" height="300" style="border: 2px solid yellow;display:block;" onload="if(submitted){window.location=\'' . $confirm . '\';}"></iframe>' ;
|
433 |
-
$xtra_html = '<script type="text/javascript">var submitted=false;</script>' ;
|
434 |
-
}
|
435 |
-
else
|
436 |
-
{
|
437 |
-
error_log(sprintf('%s::%s', basename(__FILE__), __LINE__)) ;
|
438 |
-
$xtra_html = '' ;
|
439 |
-
}
|
440 |
-
*/
|
441 |
-
$xtra_html = '' ;
|
442 |
-
|
443 |
// Output custom CSS?
|
444 |
|
445 |
$wpgform_options = wpgform_get_plugin_options() ;
|
@@ -479,7 +450,7 @@ jQuery(document).ready(function($) {
|
|
479 |
</script>
|
480 |
' ;
|
481 |
|
482 |
-
return $js . $css . $
|
483 |
}
|
484 |
|
485 |
/**
|
411 |
//print "<h1>A match was not found.</h1>";
|
412 |
}
|
413 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
414 |
// Output custom CSS?
|
415 |
|
416 |
$wpgform_options = wpgform_get_plugin_options() ;
|
450 |
</script>
|
451 |
' ;
|
452 |
|
453 |
+
return $js . $css . $html ;
|
454 |
}
|
455 |
|
456 |
/**
|