Version Description
No known upgrade issues.
Download this release
Release Info
Developer | mpwalsh8 |
Plugin | Google Forms |
Version | 0.28 |
Comparing to | |
See all releases |
Code changes from version 0.27 to 0.28
- index.php +2 -2
- readme.txt +4 -1
- wpgform-core.php +24 -2
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.28
|
8 |
+
* Build: 0.28.$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 |
|
@@ -182,6 +182,9 @@ No known upgrade issues.
|
|
182 |
|
183 |
== Changelog ==
|
184 |
|
|
|
|
|
|
|
185 |
= Version 0.27 =
|
186 |
* Added ability to check and warn for old and/or unsupported browsers. There is an option on the WordPress Google Form settings page to enable this check. When an old or unsupported browser is detected, a message will be displayed on top of the form. The browser check is based on the same functionality that WordPress uses on the Dashboard.
|
187 |
* Changed default custom confirmation behaviour has reverted back to using a javascript redirect as it did from v0.11 through v0.25.
|
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.28
|
8 |
|
9 |
Embeds a published, public Google Form in a WordPress post, page, or widget.
|
10 |
|
182 |
|
183 |
== Changelog ==
|
184 |
|
185 |
+
= Version 0.28 =
|
186 |
+
* Fixed bug with missing GetPageURL method which appears when email confirmation is enabled (email='on').
|
187 |
+
|
188 |
= Version 0.27 =
|
189 |
* Added ability to check and warn for old and/or unsupported browsers. There is an option on the WordPress Google Form settings page to enable this check. When an old or unsupported browser is detected, a message will be displayed on top of the form. The browser check is based on the same functionality that WordPress uses on the Dashboard.
|
190 |
* Changed default custom confirmation behaviour has reverted back to using a javascript redirect as it did from v0.11 through v0.25.
|
wpgform-core.php
CHANGED
@@ -535,6 +535,28 @@ jQuery(document).ready(function($) {
|
|
535 |
return $js . $css . $html ;
|
536 |
}
|
537 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
538 |
/**
|
539 |
* WordPress Shortcode handler.
|
540 |
*
|
@@ -618,7 +640,7 @@ jQuery(document).ready(function($) {
|
|
618 |
' ;
|
619 |
|
620 |
$message = sprintf($html, get_bloginfo('name'),
|
621 |
-
wpGForm::
|
622 |
}
|
623 |
else
|
624 |
{
|
@@ -627,7 +649,7 @@ jQuery(document).ready(function($) {
|
|
627 |
$plain .= 'URL: %s' . PHP_EOL . 'Date: %s' . PHP_EOL . 'Time: %s' . PHP_EOL . PHP_EOL ;
|
628 |
$plain .= 'Thank you,' . PHP_EOL . PHP_EOL . '%s' . PHP_EOL ;
|
629 |
|
630 |
-
$message = sprintf($plain, wpGForm::
|
631 |
date('Y-m-d'), date('H:i'), get_option('blogname')) ;
|
632 |
}
|
633 |
|
535 |
return $js . $css . $html ;
|
536 |
}
|
537 |
|
538 |
+
/**
|
539 |
+
* Get Page URL
|
540 |
+
*
|
541 |
+
* @return string
|
542 |
+
*/
|
543 |
+
function GetPageURL()
|
544 |
+
{
|
545 |
+
$pageURL = 'http' ;
|
546 |
+
|
547 |
+
if ($_SERVER["HTTPS"] == "on") $pageURL .= 's' ;
|
548 |
+
|
549 |
+
$pageURL .= '://' ;
|
550 |
+
|
551 |
+
if ($_SERVER['SERVER_PORT'] != '80')
|
552 |
+
$pageURL .= $_SERVER['SERVER_NAME'] .
|
553 |
+
':' . $_SERVER['SERVER_PORT'] . $_SERVER['REQUEST_URI'] ;
|
554 |
+
else
|
555 |
+
$pageURL .= $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] ;
|
556 |
+
|
557 |
+
return $pageURL ;
|
558 |
+
}
|
559 |
+
|
560 |
/**
|
561 |
* WordPress Shortcode handler.
|
562 |
*
|
640 |
' ;
|
641 |
|
642 |
$message = sprintf($html, get_bloginfo('name'),
|
643 |
+
wpGForm::GetPageURL(), date('Y-m-d'), date('H:i'), get_bloginfo('name')) ;
|
644 |
}
|
645 |
else
|
646 |
{
|
649 |
$plain .= 'URL: %s' . PHP_EOL . 'Date: %s' . PHP_EOL . 'Time: %s' . PHP_EOL . PHP_EOL ;
|
650 |
$plain .= 'Thank you,' . PHP_EOL . PHP_EOL . '%s' . PHP_EOL ;
|
651 |
|
652 |
+
$message = sprintf($plain, wpGForm::GetPageURL(),
|
653 |
date('Y-m-d'), date('H:i'), get_option('blogname')) ;
|
654 |
}
|
655 |
|