Google Doc Embedder - Version 1.9.3

Version Description

  • Added: Support for PPS files (thanks Dan)
  • Changed: Simplified default IE Warning text
Download this release

Release Info

Developer k3davis
Plugin Icon wp plugin Google Doc Embedder
Version 1.9.3
Comparing to
See all releases

Code changes from version 1.9.2 to 1.9.3

Files changed (4) hide show
  1. functions.php +4 -4
  2. gviewer.php +3 -3
  3. ie-warn.txt +1 -1
  4. readme.txt +7 -3
functions.php CHANGED
@@ -173,19 +173,19 @@ function gde_warnText($u) {
173
  }
174
 
175
  function gde_conflict_check() {
176
- global $gde_conflict;
177
 
178
  // Markdown
179
  if (function_exists('mdwp_add_p')) {
180
- $gde_conflict = "markdown";
181
  add_action('admin_notices', 'gde_admin_warning');
182
  }
183
  return;
184
  }
185
 
186
  function gde_admin_warning() {
187
- global $gde_conflict;
188
- $gde_link = GDE_CONFLICT_URL."#$gde_conflict";
189
 
190
  echo "
191
  <div id='gde-warning' class='updated fade'><p><strong>".__('Google Doc Embedder Warning:')."</strong> ".sprintf(__('You have an active plugin that may conflict with GDE. See <a href="%1$s">more info</a> or <a href="%2$s">turn off this warning</a>.'), "$gde_link", "options-general.php?page=gviewer.php")."</p></div>
173
  }
174
 
175
  function gde_conflict_check() {
176
+ global $gde_conflict_list;
177
 
178
  // Markdown
179
  if (function_exists('mdwp_add_p')) {
180
+ $gde_conflict_list = "markdown";
181
  add_action('admin_notices', 'gde_admin_warning');
182
  }
183
  return;
184
  }
185
 
186
  function gde_admin_warning() {
187
+ global $gde_conflict_list;
188
+ $gde_link = GDE_CONFLICT_URL."#$gde_conflict_list";
189
 
190
  echo "
191
  <div id='gde-warning' class='updated fade'><p><strong>".__('Google Doc Embedder Warning:')."</strong> ".sprintf(__('You have an active plugin that may conflict with GDE. See <a href="%1$s">more info</a> or <a href="%2$s">turn off this warning</a>.'), "$gde_link", "options-general.php?page=gviewer.php")."</p></div>
gviewer.php CHANGED
@@ -5,10 +5,10 @@ Plugin Name: Google Doc Embedder
5
  Plugin URI: http://davismetro.com/gde/
6
  Description: Lets you embed PDF files, PowerPoint presentations, and TIFF images in a web page using the Google Docs Viewer (no Flash or PDF browser plug-ins required).
7
  Author: Kevin Davis
8
- Version: 1.9.2
9
  */
10
 
11
- $gde_ver = "1.9.2.99";
12
 
13
  /**
14
  * LICENSE
@@ -70,7 +70,7 @@ function gde_gviewer_func($atts) {
70
  }
71
 
72
  // supported file types - list acceptable extensions separated by |
73
- $exts = "pdf|ppt|tif|tiff";
74
 
75
  // check link for validity
76
  $status = gde_validTests($file, $force);
5
  Plugin URI: http://davismetro.com/gde/
6
  Description: Lets you embed PDF files, PowerPoint presentations, and TIFF images in a web page using the Google Docs Viewer (no Flash or PDF browser plug-ins required).
7
  Author: Kevin Davis
8
+ Version: 1.9.3
9
  */
10
 
11
+ $gde_ver = "1.9.3.99";
12
 
13
  /**
14
  * LICENSE
70
  }
71
 
72
  // supported file types - list acceptable extensions separated by |
73
+ $exts = "pdf|ppt|pps|tif|tiff";
74
 
75
  // check link for validity
76
  $status = gde_validTests($file, $force);
ie-warn.txt CHANGED
@@ -1 +1 @@
1
- IE User: If you're having trouble viewing this document, go to Tools &rarr; Internet Options &rarr; Privacy &rarr; Sites &rarr; Add "google.com" to allowed sites list.
1
+ IE User: If you're having trouble viewing this document, click the right most button on the viewer toolbar ("Open in a New Window").
readme.txt CHANGED
@@ -1,18 +1,18 @@
1
  === Google Doc Embedder ===
2
  Contributors: k3davis
3
  Donate link: http://pledgie.com/campaigns/6048
4
- Tags: pdf, ppt, tiff, powerpoint, google, embed, google docs, document
5
  Requires at least: 2.8
6
  Tested up to: 2.9
7
  Stable tag: trunk
8
 
9
- Lets you embed PDF, PowerPoint presentations (PPT), and TIFF images in a web page using the Google Docs Viewer (no Flash or PDF browser plug-ins required).
10
 
11
  == Description ==
12
 
13
  Google Doc Embedder lets you embed PDF files, PowerPoint presentations, and TIFF images in a web page using the Google Docs Viewer (no Flash or PDF browser plug-ins required).
14
 
15
- Similar to services like Scribd, Google Doc Embedder will allow you to embed a PDF, PowerPoint (PPT), or TIFF file directly into your page or post, not requiring the user to have Adobe Reader, PowerPoint, or other software installed to view the contents. Unlike Scribd, the files do not need to be uploaded to any service first - including Google Documents - but can exist anywhere accessible on your site or the internet.
16
 
17
  Note: While previously the functionality of this plug-in relied upon an undocumented feature of the Google Docs Viewer, this feature is now "official" and presumably reliable in the long term. However, use of this plug-in now does imply your agreement with Google's published <a href="http://docs.google.com/viewer/TOS?hl=en" target="_blank">Terms of Service</a>.
18
 
@@ -60,6 +60,10 @@ That's not a question ;) but if you have any particular ideas on further develop
60
 
61
  == Changelog ==
62
 
 
 
 
 
63
  = 1.9.2 =
64
  * Fixed: "Turn off beta notifications" needlessly still checked for beta version
65
  * Confirmed WP 2.9 compatibility
1
  === Google Doc Embedder ===
2
  Contributors: k3davis
3
  Donate link: http://pledgie.com/campaigns/6048
4
+ Tags: pdf, pps, ppt, tiff, powerpoint, google, embed, google docs, document
5
  Requires at least: 2.8
6
  Tested up to: 2.9
7
  Stable tag: trunk
8
 
9
+ Lets you embed PDF, PowerPoint presentations (PPT, PPS), and TIFF images in a web page using the Google Docs Viewer (no Flash or PDF browser plug-ins required).
10
 
11
  == Description ==
12
 
13
  Google Doc Embedder lets you embed PDF files, PowerPoint presentations, and TIFF images in a web page using the Google Docs Viewer (no Flash or PDF browser plug-ins required).
14
 
15
+ Similar to services like Scribd, Google Doc Embedder will allow you to embed a PDF, PowerPoint (PPT, PPS), or TIFF file directly into your page or post, not requiring the user to have Adobe Reader, PowerPoint, or other software installed to view the contents. Unlike Scribd, the files do not need to be uploaded to any service first - including Google Documents - but can exist anywhere accessible on your site or the internet.
16
 
17
  Note: While previously the functionality of this plug-in relied upon an undocumented feature of the Google Docs Viewer, this feature is now "official" and presumably reliable in the long term. However, use of this plug-in now does imply your agreement with Google's published <a href="http://docs.google.com/viewer/TOS?hl=en" target="_blank">Terms of Service</a>.
18
 
60
 
61
  == Changelog ==
62
 
63
+ = 1.9.3 =
64
+ * Added: Support for PPS files (thanks Dan)
65
+ * Changed: Simplified default IE Warning text
66
+
67
  = 1.9.2 =
68
  * Fixed: "Turn off beta notifications" needlessly still checked for beta version
69
  * Confirmed WP 2.9 compatibility