Version Description
- Added: PPS and OTF support
- Fixed: Broken support of international filenames in IE (thanks beredim)
- Fixed: More robust file size checking with nonstandard filenames
- Fixed: Global disable cache option not always honored
- Fixed: (E) Mobile theme not loaded if not globally requested
- Changed: Now requires WordPress 3.0+ (mainly for support reasons)
Download this release
Release Info
Developer | k3davis |
Plugin | Google Doc Embedder |
Version | 2.4.4 |
Comparing to | |
See all releases |
Code changes from version 2.4.3 to 2.4.4
- gde-functions.php +5 -108
- gviewer.php +29 -19
- js/dialog.js +1 -1
- js/gde-jquery.js +1 -1
- languages/gde-tr_TR.mo +0 -0
- languages/gde-tr_TR.po +0 -439
- libs/form-debug.php +113 -0
- libs/mobile-check.php +19 -0
- options.php +9 -6
- proxy.php +38 -9
- readme.txt +20 -14
gde-functions.php
CHANGED
@@ -132,10 +132,8 @@ function gde_validType($link, $allowed_exts) {
|
|
132 |
}
|
133 |
|
134 |
function gde_validUrl($url) {
|
135 |
-
|
136 |
-
|
137 |
-
include_once( ABSPATH . WPINC . '/class-http.php' );
|
138 |
-
}
|
139 |
$request = new WP_Http;
|
140 |
$result = $request->request($url);
|
141 |
if (is_array($result)) {
|
@@ -152,9 +150,8 @@ function gde_splitFilename($filename) {
|
|
152 |
return array($filename, ''); // no extension (dot is not found in the filename)
|
153 |
} else {
|
154 |
$basename = substr($filename, 0, $pos);
|
155 |
-
$
|
156 |
-
|
157 |
-
return array($basename, $extension);
|
158 |
}
|
159 |
}
|
160 |
|
@@ -339,107 +336,7 @@ function gde_debug() {
|
|
339 |
global $gde_ver, $gdeoptions, $wp_version;
|
340 |
$pdata = gde_get_plugin_data();
|
341 |
|
342 |
-
|
343 |
-
<div class="wrap">
|
344 |
-
<h2>Google Doc Embedder <?php _e('Support', 'gde'); ?></h2>
|
345 |
-
|
346 |
-
<p><strong><?php _e('Please review the documentation before submitting a request for support:', 'gde'); ?></strong></p>
|
347 |
-
<ul style="list-style-type:square; padding-left:25px;line-height:1em;">
|
348 |
-
<li><a href="<?php echo $pdata['PluginURI']; ?>">Google Doc Embedder</a></li>
|
349 |
-
<li><a href="<?php echo GDE_WP_URL; ?>faq/"><?php _e('Plugin FAQ', 'gde'); ?></li>
|
350 |
-
<li><a href="<?php echo GDE_FORUM_URL; ?>"><?php _e('Support Forum', 'gde'); ?></a></li>
|
351 |
-
</ul>
|
352 |
-
|
353 |
-
<p><?php _e("If you're still experiencing a problem, please complete the form below.", 'gde'); ?></p>
|
354 |
-
|
355 |
-
<form action="<?php echo GDE_PLUGIN_URL;?>libs/post-debug.php" id="debugForm">
|
356 |
-
|
357 |
-
<table class="form-table" style="border:1px solid #ccc;">
|
358 |
-
<tr valign="top">
|
359 |
-
<th scope="row"><label for="name" id="name_label"><?php _e('Your Name', 'gde'); ?></label></th>
|
360 |
-
<td><input size="50" name="name" id="name" value="" type="text"></td>
|
361 |
-
</tr>
|
362 |
-
<tr valign="top">
|
363 |
-
<th scope="row"><label for="sender" id="sender_label"><?php _e('Your E-mail', 'gde'); ?>*</label></th>
|
364 |
-
<td><input size="50" name="email" id="sender" value="" type="text">
|
365 |
-
<div id="err_email" class="err" style="color:red;font-weight:bold;display:none;">A valid email address is required.</div></td>
|
366 |
-
</td>
|
367 |
-
</tr>
|
368 |
-
<tr valign="top">
|
369 |
-
<th scope="row"><label for="sc" id="sc_label"><?php _e('Shortcode', 'gde'); ?></label></th>
|
370 |
-
<td><input size="50" name="shortcode" id="sc" value="" type="text"><br/>
|
371 |
-
<em><?php _e("If you're having a problem getting a specific document to work, paste the shortcode you're trying to use here.", 'gde'); ?></em></td>
|
372 |
-
</select>
|
373 |
-
</td>
|
374 |
-
</tr>
|
375 |
-
<tr valign="top">
|
376 |
-
<th scope="row"><label for="msg" id="msg_label"><?php _e('Message', 'gde'); ?></label></th>
|
377 |
-
<td><textarea name="message" id="msg" style="width:75%;min-height:50px;"></textarea></td>
|
378 |
-
</td>
|
379 |
-
</tr>
|
380 |
-
<tr valign="top">
|
381 |
-
<th scope="row"><?php _e('Message Options', 'gde'); ?></th>
|
382 |
-
<td>
|
383 |
-
<input type="checkbox" name="senddb" id="senddb" checked="checked"> <label for="senddb" id="senddb_label"><?php _e('Send debug information', 'gde'); ?>
|
384 |
-
(<a href="javascript:void(0);" id="ta_toggle"><?php _e('View'); ?></a>)</label><br/>
|
385 |
-
<input type="checkbox" name="cc" id="cc"> <label for="cc" id="cc_label"><?php _e('Send me a copy', 'gde'); ?></label></td>
|
386 |
-
</td>
|
387 |
-
</tr>
|
388 |
-
<tr>
|
389 |
-
<td colspan="2">
|
390 |
-
<div id="debugblock" style="display:none;">
|
391 |
-
<p><?php _e('Debug Information', 'gde'); ?>:</p>
|
392 |
-
<textarea name="debug" id="debugtxt" style="width:100%;min-height:200px;font-family:monospace;" readonly="readonly">
|
393 |
-
<?php
|
394 |
-
echo "--- GDE Debug Information ---\n\n";
|
395 |
-
echo "GDE Version: $gde_ver\n";
|
396 |
-
echo "WordPress Version: $wp_version [".get_locale()."]\n";
|
397 |
-
echo "PHP Version: ".phpversion()."\n";
|
398 |
-
echo "Plugin URL: ".GDE_PLUGIN_URL."\n";
|
399 |
-
echo "Server Env: ".$_SERVER['SERVER_SOFTWARE']."\n";
|
400 |
-
echo "Browser Env: ".$_SERVER['HTTP_USER_AGENT']."\n\n";
|
401 |
-
|
402 |
-
echo "cURL: ";
|
403 |
-
if (function_exists('curl_version')) {
|
404 |
-
$curl = curl_version(); echo $curl['version']."\n";
|
405 |
-
} else { echo "No\n"; }
|
406 |
-
echo "allow_url_fopen: ";
|
407 |
-
if (ini_get('allow_url_fopen') !== "1") {
|
408 |
-
echo "No\n";
|
409 |
-
} else { echo "Yes\n"; }
|
410 |
-
echo "Rich Editing: ";
|
411 |
-
if (get_user_option('rich_editing')) {
|
412 |
-
echo "Yes\n";
|
413 |
-
} else { echo "No\n"; }
|
414 |
-
echo "Viewer: ";
|
415 |
-
if ($gdeoptions['disable_proxy'] == "no") {
|
416 |
-
echo "Enhanced\n\n";
|
417 |
-
} else { echo "Standard\n\n"; }
|
418 |
-
|
419 |
-
echo "Settings Array:\n";
|
420 |
-
print_r($gdeoptions);
|
421 |
-
//echo "\n";
|
422 |
-
//echo "MIME Supported:\n";
|
423 |
-
//print_r(get_allowed_mime_types());
|
424 |
-
?>
|
425 |
-
</textarea>
|
426 |
-
<br/><br/>
|
427 |
-
</div>
|
428 |
-
</div>
|
429 |
-
<div id="debugwarn" style="display:none;color:red;font-weight:bold;">
|
430 |
-
<p><?php _e("I'm less likely to be able to help you if you do not include debug information.", 'gde'); ?></p>
|
431 |
-
</div>
|
432 |
-
<input id="debugsend" class="button-primary" type="submit" value="<?php _e('Send Support Request', 'gde'); ?>" name="submit">
|
433 |
-
<span id="formstatus" style="padding-left:20px;display:none;">
|
434 |
-
<img src="<?php echo GDE_PLUGIN_URL;?>img/in-proc.gif" alt="">
|
435 |
-
</span>
|
436 |
-
</td>
|
437 |
-
</tr>
|
438 |
-
</table>
|
439 |
-
</form>
|
440 |
-
|
441 |
-
</div>
|
442 |
-
<?php
|
443 |
}
|
444 |
|
445 |
?>
|
132 |
}
|
133 |
|
134 |
function gde_validUrl($url) {
|
135 |
+
include_once( ABSPATH . WPINC . '/class-http.php' );
|
136 |
+
|
|
|
|
|
137 |
$request = new WP_Http;
|
138 |
$result = $request->request($url);
|
139 |
if (is_array($result)) {
|
150 |
return array($filename, ''); // no extension (dot is not found in the filename)
|
151 |
} else {
|
152 |
$basename = substr($filename, 0, $pos);
|
153 |
+
$ext = substr($filename, $pos+1);
|
154 |
+
return array($basename, $ext);
|
|
|
155 |
}
|
156 |
}
|
157 |
|
336 |
global $gde_ver, $gdeoptions, $wp_version;
|
337 |
$pdata = gde_get_plugin_data();
|
338 |
|
339 |
+
include_once("libs/form-debug.php");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
340 |
}
|
341 |
|
342 |
?>
|
gviewer.php
CHANGED
@@ -8,11 +8,11 @@ Author: Kevin Davis
|
|
8 |
Author URI: http://www.davistribe.org/
|
9 |
Text Domain: gde
|
10 |
Domain Path: /languages/
|
11 |
-
Version: 2.4.
|
12 |
License: GPLv2
|
13 |
*/
|
14 |
|
15 |
-
$gde_ver = "2.4.
|
16 |
|
17 |
/**
|
18 |
* LICENSE
|
@@ -43,7 +43,7 @@ if ( ! defined( 'GDE_PLUGIN_DIR' ) )
|
|
43 |
define( 'GDE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
44 |
if ( ! defined( 'GDE_PLUGIN_URL' ) )
|
45 |
define( 'GDE_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
46 |
-
|
47 |
include_once('gde-functions.php');
|
48 |
$gdeoptions = get_option('gde_options');
|
49 |
$pUrl = plugins_url(plugin_basename(dirname(__FILE__)));
|
@@ -56,8 +56,10 @@ $supported_exts = array(
|
|
56 |
"docx" => "application/vnd.openxmlformats-officedocument.wordprocessingml",
|
57 |
"dxf" => "application/dxf",
|
58 |
"eps" => "application/postscript",
|
|
|
59 |
"pages" => "application/x-iwork-pages-sffpages",
|
60 |
"pdf" => "application/pdf",
|
|
|
61 |
"ppt" => "application/vnd.ms-powerpoint",
|
62 |
"pptx" => "application/vnd.openxmlformats-officedocument.presentationml",
|
63 |
"ps" => "application/postscript",
|
@@ -88,7 +90,7 @@ function gde_gviewer_func($atts) {
|
|
88 |
'height' => '',
|
89 |
'lang' => $gdeoptions['default_lang'],
|
90 |
'force' => $gdeoptions['bypass_check'],
|
91 |
-
'cache' => $gdeoptions['
|
92 |
'authonly' => $gdeoptions['restrict_dl'],
|
93 |
'theme' => ''
|
94 |
), $atts));
|
@@ -128,8 +130,14 @@ function gde_gviewer_func($atts) {
|
|
128 |
$height .= "px";
|
129 |
}
|
130 |
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
// check link for validity
|
132 |
-
$status = gde_validTests($
|
133 |
if ($status && !is_array($status)) {
|
134 |
if (($gdeoptions['disable_hideerrors'] == "no") || !$gdeoptions['disable_hideerrors']) {
|
135 |
$code = "\n<!-- GDE EMBED ERROR: $status -->\n";
|
@@ -137,26 +145,19 @@ function gde_gviewer_func($atts) {
|
|
137 |
$code = "\n".'<div class="gde-error">Google Doc Embedder '.__('Error', 'gde').": ".$status."</div>\n";
|
138 |
}
|
139 |
} else {
|
140 |
-
$code = "";
|
141 |
-
|
142 |
-
$fn = basename($file);
|
143 |
-
$fnp = gde_splitFilename($fn);
|
144 |
$fsize = gde_formatBytes($status['fsize']);
|
145 |
|
146 |
-
|
147 |
-
$fn = rawurlencode($fn);
|
148 |
-
|
149 |
-
$code .=<<<HERE
|
150 |
%A%
|
151 |
<iframe src="%U%" class="gde-frame" style="width:%W%; height:%H%; border: none;" scrolling="no"></iframe>\n
|
152 |
%B%
|
153 |
HERE;
|
154 |
|
155 |
-
// obfuscate filename if cache disabled
|
156 |
-
if ($gdeoptions['disable_caching'] == "yes" || $cache == "
|
157 |
-
$uefile = $file."
|
158 |
} else {
|
159 |
-
$uefile = $file;
|
160 |
}
|
161 |
// check for proxy
|
162 |
if ($gdeoptions['disable_proxy'] == "no") {
|
@@ -165,7 +166,7 @@ HERE;
|
|
165 |
$lnk = "http://docs.google.com/viewer?url=".$uefile."&hl=".$lang;
|
166 |
}
|
167 |
// check for mobile
|
168 |
-
if (strstr($gdeoptions['
|
169 |
$lnk .= "&mobile=true";
|
170 |
} else {
|
171 |
$lnk .= "&embedded=true";
|
@@ -226,6 +227,8 @@ HERE;
|
|
226 |
$txt = $gdeoptions['link_text'];
|
227 |
if ($gdeoptions['enable_ga'] == "yes") {
|
228 |
$gaLink = " $gaTag";
|
|
|
|
|
229 |
}
|
230 |
$linkcode .= "<p class=\"gde-text\"><a href=\"$dlFile\" target=\"$target\" class=\"gde-link\"$gaLink>$txt</a></p>";
|
231 |
}
|
@@ -235,13 +238,20 @@ HERE;
|
|
235 |
$code = str_replace("%B%", '', $code);
|
236 |
} else {
|
237 |
$code = str_replace("%A%", '', $code);
|
|
|
238 |
$code = str_replace("%B%", $linkcode, $code);
|
239 |
}
|
240 |
$code = str_replace("%U%", $lnk, $code);
|
241 |
$code = str_replace("%W%", $width, $code);
|
242 |
$code = str_replace("%H%", $height, $code);
|
243 |
$code = str_replace("%FN", $fn, $code);
|
244 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
245 |
$code = str_replace("%FS", $fsize, $code);
|
246 |
}
|
247 |
|
8 |
Author URI: http://www.davistribe.org/
|
9 |
Text Domain: gde
|
10 |
Domain Path: /languages/
|
11 |
+
Version: 2.4.4
|
12 |
License: GPLv2
|
13 |
*/
|
14 |
|
15 |
+
$gde_ver = "2.4.4.98";
|
16 |
|
17 |
/**
|
18 |
* LICENSE
|
43 |
define( 'GDE_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
44 |
if ( ! defined( 'GDE_PLUGIN_URL' ) )
|
45 |
define( 'GDE_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
46 |
+
|
47 |
include_once('gde-functions.php');
|
48 |
$gdeoptions = get_option('gde_options');
|
49 |
$pUrl = plugins_url(plugin_basename(dirname(__FILE__)));
|
56 |
"docx" => "application/vnd.openxmlformats-officedocument.wordprocessingml",
|
57 |
"dxf" => "application/dxf",
|
58 |
"eps" => "application/postscript",
|
59 |
+
"otf" => "font/opentype",
|
60 |
"pages" => "application/x-iwork-pages-sffpages",
|
61 |
"pdf" => "application/pdf",
|
62 |
+
"pps" => "application/vnd.ms-powerpoint",
|
63 |
"ppt" => "application/vnd.ms-powerpoint",
|
64 |
"pptx" => "application/vnd.openxmlformats-officedocument.presentationml",
|
65 |
"ps" => "application/postscript",
|
90 |
'height' => '',
|
91 |
'lang' => $gdeoptions['default_lang'],
|
92 |
'force' => $gdeoptions['bypass_check'],
|
93 |
+
'cache' => $gdeoptions['disable_caching'],
|
94 |
'authonly' => $gdeoptions['restrict_dl'],
|
95 |
'theme' => ''
|
96 |
), $atts));
|
130 |
$height .= "px";
|
131 |
}
|
132 |
|
133 |
+
// translate filenames with spaces and other forms of wickedness
|
134 |
+
$fn = basename($file);
|
135 |
+
$fnp = gde_splitFilename($fn);
|
136 |
+
$fnp[0] = rawurlencode($fnp[0]);
|
137 |
+
$cfile = str_replace($fn, $fnp[0] . "." . $fnp[1], $file);
|
138 |
+
|
139 |
// check link for validity
|
140 |
+
$status = gde_validTests($cfile, $force);
|
141 |
if ($status && !is_array($status)) {
|
142 |
if (($gdeoptions['disable_hideerrors'] == "no") || !$gdeoptions['disable_hideerrors']) {
|
143 |
$code = "\n<!-- GDE EMBED ERROR: $status -->\n";
|
145 |
$code = "\n".'<div class="gde-error">Google Doc Embedder '.__('Error', 'gde').": ".$status."</div>\n";
|
146 |
}
|
147 |
} else {
|
|
|
|
|
|
|
|
|
148 |
$fsize = gde_formatBytes($status['fsize']);
|
149 |
|
150 |
+
$code =<<<HERE
|
|
|
|
|
|
|
151 |
%A%
|
152 |
<iframe src="%U%" class="gde-frame" style="width:%W%; height:%H%; border: none;" scrolling="no"></iframe>\n
|
153 |
%B%
|
154 |
HERE;
|
155 |
|
156 |
+
// obfuscate filename if cache disabled (globally or via shortcode)
|
157 |
+
if ($gdeoptions['disable_caching'] == "yes" || $cache == "0") {
|
158 |
+
$uefile = rawurlencode($file."?".time());
|
159 |
} else {
|
160 |
+
$uefile = rawurlencode($file);
|
161 |
}
|
162 |
// check for proxy
|
163 |
if ($gdeoptions['disable_proxy'] == "no") {
|
166 |
$lnk = "http://docs.google.com/viewer?url=".$uefile."&hl=".$lang;
|
167 |
}
|
168 |
// check for mobile
|
169 |
+
if (strstr($gdeoptions['restrict_tb'], 'm') !== false) {
|
170 |
$lnk .= "&mobile=true";
|
171 |
} else {
|
172 |
$lnk .= "&embedded=true";
|
227 |
$txt = $gdeoptions['link_text'];
|
228 |
if ($gdeoptions['enable_ga'] == "yes") {
|
229 |
$gaLink = " $gaTag";
|
230 |
+
} else {
|
231 |
+
$gaLink = "";
|
232 |
}
|
233 |
$linkcode .= "<p class=\"gde-text\"><a href=\"$dlFile\" target=\"$target\" class=\"gde-link\"$gaLink>$txt</a></p>";
|
234 |
}
|
238 |
$code = str_replace("%B%", '', $code);
|
239 |
} else {
|
240 |
$code = str_replace("%A%", '', $code);
|
241 |
+
//$code = str_replace("%A%", '<!-- TEST: '.$test.' -->', $code);
|
242 |
$code = str_replace("%B%", $linkcode, $code);
|
243 |
}
|
244 |
$code = str_replace("%U%", $lnk, $code);
|
245 |
$code = str_replace("%W%", $width, $code);
|
246 |
$code = str_replace("%H%", $height, $code);
|
247 |
$code = str_replace("%FN", $fn, $code);
|
248 |
+
|
249 |
+
// file type replacement
|
250 |
+
$ftype = strtoupper($fnp[1]);
|
251 |
+
if ($ftype == "TIF") {
|
252 |
+
$ftype = "TIFF";
|
253 |
+
}
|
254 |
+
$code = str_replace("%FT", $ftype, $code);
|
255 |
$code = str_replace("%FS", $fsize, $code);
|
256 |
}
|
257 |
|
js/dialog.js
CHANGED
@@ -48,7 +48,7 @@ var GDEInsertDialog = {
|
|
48 |
});
|
49 |
|
50 |
function check_uri() {
|
51 |
-
var type_regex = /\.(doc|docx|pdf|ppt|pptx|tif|tiff|xls|xlsx|pages|ai|psd|dxf|svg|eps|ps|ttf|xps|zip|rar)$/i
|
52 |
var path_regex = /^http/i;
|
53 |
|
54 |
if(!(type_regex.test( jQuery('#url').val() )) & ( jQuery('#url').val() !=0 )) {
|
48 |
});
|
49 |
|
50 |
function check_uri() {
|
51 |
+
var type_regex = /\.(doc|docx|pdf|ppt|pptx|pps|tif|tiff|xls|xlsx|pages|ai|psd|dxf|svg|eps|ps|otf|ttf|xps|zip|rar)$/i
|
52 |
var path_regex = /^http/i;
|
53 |
|
54 |
if(!(type_regex.test( jQuery('#url').val() )) & ( jQuery('#url').val() !=0 )) {
|
js/gde-jquery.js
CHANGED
@@ -89,7 +89,7 @@ jQuery(function ($) {
|
|
89 |
|
90 |
$("#debugsend").attr("disabled","true");
|
91 |
$("#debugsend").attr('class', 'button-secondary');
|
92 |
-
$("#debugsend").css('outline','
|
93 |
$("#formstatus").show();
|
94 |
});
|
95 |
|
89 |
|
90 |
$("#debugsend").attr("disabled","true");
|
91 |
$("#debugsend").attr('class', 'button-secondary');
|
92 |
+
$("#debugsend").css('outline','0')
|
93 |
$("#formstatus").show();
|
94 |
});
|
95 |
|
languages/gde-tr_TR.mo
DELETED
Binary file
|
languages/gde-tr_TR.po
DELETED
@@ -1,439 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Google Doc Embedder\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2012-05-25 10:14-0600\n"
|
6 |
-
"PO-Revision-Date: 2012-05-30 17:01+0200\n"
|
7 |
-
"Last-Translator: LettoBlog <support@lettoblog.com>\n"
|
8 |
-
"Language-Team: LettoBlog Türkiye <support@lettoblog.com>\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Poedit-KeywordsList: __;_e\n"
|
13 |
-
"X-Poedit-Country: TURKEY\n"
|
14 |
-
"X-Poedit-Basepath: .\n"
|
15 |
-
"X-Poedit-SearchPath-0: .\n"
|
16 |
-
|
17 |
-
#: gde-functions.php:32
|
18 |
-
msgid "Download"
|
19 |
-
msgstr "İndir"
|
20 |
-
|
21 |
-
#: gde-functions.php:344
|
22 |
-
#: gviewer.php:292
|
23 |
-
msgid "Support"
|
24 |
-
msgstr "Destek"
|
25 |
-
|
26 |
-
#: gde-functions.php:346
|
27 |
-
msgid "Please review the documentation before submitting a request for support:"
|
28 |
-
msgstr "Lütfen destek isteği göndermeden önce, dökümantasyonu gözden geçirin:"
|
29 |
-
|
30 |
-
#: gde-functions.php:349
|
31 |
-
msgid "Plugin FAQ"
|
32 |
-
msgstr "Eklenti SSS"
|
33 |
-
|
34 |
-
#: gde-functions.php:350
|
35 |
-
msgid "Support Forum"
|
36 |
-
msgstr "Destek Forumu"
|
37 |
-
|
38 |
-
#: gde-functions.php:353
|
39 |
-
msgid "If you're still experiencing a problem, please complete the form below."
|
40 |
-
msgstr "Probleminiz hala devam ediyorsa, lütfen aşağıdaki formu doldurunuz."
|
41 |
-
|
42 |
-
#: gde-functions.php:359
|
43 |
-
msgid "Your Name"
|
44 |
-
msgstr "Adınız"
|
45 |
-
|
46 |
-
#: gde-functions.php:363
|
47 |
-
msgid "Your E-mail"
|
48 |
-
msgstr "E-posta Adresiniz"
|
49 |
-
|
50 |
-
#: gde-functions.php:369
|
51 |
-
msgid "Shortcode"
|
52 |
-
msgstr "Kısakod"
|
53 |
-
|
54 |
-
#: gde-functions.php:371
|
55 |
-
msgid "If you're having a problem getting a specific document to work, paste the shortcode you're trying to use here."
|
56 |
-
msgstr "Eğer özel bir döküman türünde çalışıyorsanız, kısakodu buraya yapıştırınız ve burda kullanmayı deneyiniz."
|
57 |
-
|
58 |
-
#: gde-functions.php:376
|
59 |
-
msgid "Message"
|
60 |
-
msgstr "Mesaj"
|
61 |
-
|
62 |
-
#: gde-functions.php:381
|
63 |
-
msgid "Message Options"
|
64 |
-
msgstr "Mesaj Seçenekleri"
|
65 |
-
|
66 |
-
#: gde-functions.php:383
|
67 |
-
msgid "Send debug information"
|
68 |
-
msgstr "Hata ayıklama bilgilerini gönder"
|
69 |
-
|
70 |
-
#: gde-functions.php:384
|
71 |
-
msgid "View"
|
72 |
-
msgstr "İncele"
|
73 |
-
|
74 |
-
#: gde-functions.php:385
|
75 |
-
msgid "Send me a copy"
|
76 |
-
msgstr "Bana bir kopyasını gönder"
|
77 |
-
|
78 |
-
#: gde-functions.php:391
|
79 |
-
msgid "Debug Information"
|
80 |
-
msgstr "Hata Ayıklama Bilgileri"
|
81 |
-
|
82 |
-
#: gde-functions.php:430
|
83 |
-
msgid "I'm less likely to be able to help you if you do not include debug information."
|
84 |
-
msgstr "Daha hızlı çözüm bulabilmemiz için, hata ayıklama bilgilerini gönderiniz."
|
85 |
-
|
86 |
-
#: gde-functions.php:432
|
87 |
-
msgid "Send Support Request"
|
88 |
-
msgstr "Destek İsteği Gönder"
|
89 |
-
|
90 |
-
#: gviewer.php:137
|
91 |
-
msgid "Error"
|
92 |
-
msgstr "Hata"
|
93 |
-
|
94 |
-
#: gviewer.php:268
|
95 |
-
#: gviewer.php:284
|
96 |
-
#: options.php:130
|
97 |
-
msgid "Settings"
|
98 |
-
msgstr "Ayarlar"
|
99 |
-
|
100 |
-
#: gviewer.php:275
|
101 |
-
msgid "You do not have sufficient permissions to access this page"
|
102 |
-
msgstr "Bu sayfaya erişmek için yeterli izinlere sahip değilsiniz"
|
103 |
-
|
104 |
-
#: gviewer.php:305
|
105 |
-
msgid "Beta version available"
|
106 |
-
msgstr "Bete güncellemesi"
|
107 |
-
|
108 |
-
#: gviewer.php:305
|
109 |
-
msgid "Please deactivate the plug-in and install the current version if you wish to participate. Otherwise, you can turn off beta version checking in GDE Settings. Testers appreciated!"
|
110 |
-
msgstr "Eklentiyi yükseltmek için eklentiyi pasifleştirip, arındandan son sürüme güncelleyiniz. Yada isterseniz, GDE ayarlarından beta versiyon kontrolünü devre dışı bırakabilirsiniz."
|
111 |
-
|
112 |
-
#: gviewer.php:306
|
113 |
-
msgid "Updated beta version available"
|
114 |
-
msgstr "Beta güncellemesi mevcut"
|
115 |
-
|
116 |
-
#: gviewer.php:306
|
117 |
-
msgid "A newer beta has been released. Please deactivate the plug-in and install the current version. Thanks for your help!"
|
118 |
-
msgstr "Yeni bir beta versiyonu yayınlandı. Lütfen eklentiyi pasifleştirerek şimdiki versiyona yükseltiniz. Yardımlarınız için teşekkürler!"
|
119 |
-
|
120 |
-
#: gviewer.php:307
|
121 |
-
msgid "You're running a beta version. Please give feedback."
|
122 |
-
msgstr "Şu anda beta versiyon kullanıyorsunuz. Lütfen geri bildirimde bulununuz."
|
123 |
-
|
124 |
-
#: gviewer.php:307
|
125 |
-
msgid "Thank you for running a test version of Google Doc Embedder. You are running the most current beta version. Please give feedback on this version using the "Support" link above. Thanks for your help!"
|
126 |
-
msgstr "Google Doc Embedder'in test versiyonunu kullandığını için teşekkürler. Şu anda son çıkan beta sürümünü kullanıyorsunuz. Lütfen bize aşağıdaki destek linkinden geri bildirimde bulununuz. Yardımlarınız için teşekkürler!"
|
127 |
-
|
128 |
-
#: gviewer.php:308
|
129 |
-
msgid "more info"
|
130 |
-
msgstr "detay"
|
131 |
-
|
132 |
-
#: gviewer.php:375
|
133 |
-
msgid "plugin"
|
134 |
-
msgstr "eklenti"
|
135 |
-
|
136 |
-
#: gviewer.php:376
|
137 |
-
msgid "Version"
|
138 |
-
msgstr "Sürüm"
|
139 |
-
|
140 |
-
#: options.php:26
|
141 |
-
msgid "Options reset to defaults"
|
142 |
-
msgstr "Seçenekler varsayılan olarak ayarlandı"
|
143 |
-
|
144 |
-
#: options.php:123
|
145 |
-
msgid "Options updated"
|
146 |
-
msgstr "Seçenekler güncellendi"
|
147 |
-
|
148 |
-
#: options.php:141
|
149 |
-
msgid "Viewer Options"
|
150 |
-
msgstr "Görüntüleyici Seçenekleri"
|
151 |
-
|
152 |
-
#: options.php:146
|
153 |
-
msgid "Viewer Selection"
|
154 |
-
msgstr "Görüntüleyici Seçimi"
|
155 |
-
|
156 |
-
#: options.php:147
|
157 |
-
#: options.php:253
|
158 |
-
#: options.php:303
|
159 |
-
msgid "Help"
|
160 |
-
msgstr "Yardım"
|
161 |
-
|
162 |
-
#: options.php:149
|
163 |
-
msgid "Google Standard Viewer"
|
164 |
-
msgstr "Standart Google Görüntüleyici"
|
165 |
-
|
166 |
-
#: options.php:150
|
167 |
-
msgid "Embed the standard Google Viewer."
|
168 |
-
msgstr "Standart Google Görüntüleyiciden Embed"
|
169 |
-
|
170 |
-
#: options.php:151
|
171 |
-
msgid "Enhanced Viewer"
|
172 |
-
msgstr "Gelişmiş Görüntüleyici"
|
173 |
-
|
174 |
-
#: options.php:152
|
175 |
-
msgid "Use this option to enable toolbar customization and fix some display problems (experimental)."
|
176 |
-
msgstr "Bu seçeğeni bazı araç çubuğu düzeltmeleri ve görüntüleme sorunlarını düzeltmek için kullanın. (deneysel)"
|
177 |
-
|
178 |
-
#: options.php:156
|
179 |
-
msgid "Customize Toolbar"
|
180 |
-
msgstr "Araç Çubuğunu Özelleştir"
|
181 |
-
|
182 |
-
#: options.php:160
|
183 |
-
msgid "Hide Zoom In/Out"
|
184 |
-
msgstr "İçeri/Dışarı Yakınlaşma Özelliğini Gizle"
|
185 |
-
|
186 |
-
#: options.php:161
|
187 |
-
msgid "Hide Open in New Window"
|
188 |
-
msgstr "Yeni Pencerede Açma Özelliğini Gizle"
|
189 |
-
|
190 |
-
#: options.php:162
|
191 |
-
msgid "Always Use Mobile Theme"
|
192 |
-
msgstr "Her zaman Mobil Temayı Kullan"
|
193 |
-
|
194 |
-
#: options.php:166
|
195 |
-
msgid "Default Size"
|
196 |
-
msgstr "Varsayılan Boyut"
|
197 |
-
|
198 |
-
#: options.php:167
|
199 |
-
#: libs/gde-dialog.php:61
|
200 |
-
msgid "Width"
|
201 |
-
msgstr "Genişlik"
|
202 |
-
|
203 |
-
#: options.php:171
|
204 |
-
#: libs/gde-dialog.php:57
|
205 |
-
msgid "Height"
|
206 |
-
msgstr "Yükseklik"
|
207 |
-
|
208 |
-
#: options.php:177
|
209 |
-
msgid "Default Language"
|
210 |
-
msgstr "Varsayılan Dil"
|
211 |
-
|
212 |
-
#: options.php:235
|
213 |
-
msgid "Inline (Default)"
|
214 |
-
msgstr "Inline (Varsayılan)"
|
215 |
-
|
216 |
-
#: options.php:236
|
217 |
-
msgid "Collapsible (Open)"
|
218 |
-
msgstr "Collapsible (Açık)"
|
219 |
-
|
220 |
-
#: options.php:237
|
221 |
-
msgid "Collapsible (Closed)"
|
222 |
-
msgstr "Collapsible (Kapalı)"
|
223 |
-
|
224 |
-
#: options.php:249
|
225 |
-
msgid "Download Link Options"
|
226 |
-
msgstr "İndirme Bağlantısı Seçenekleri"
|
227 |
-
|
228 |
-
#: options.php:254
|
229 |
-
msgid "Display the download link by default"
|
230 |
-
msgstr "Varsayılan olarak indirme bağlantısını göster"
|
231 |
-
|
232 |
-
#: options.php:255
|
233 |
-
msgid "Only display download link to logged in users"
|
234 |
-
msgstr "İndirme bağlantısını sadece giriş yapmış kullanıcılara göster"
|
235 |
-
|
236 |
-
#: options.php:256
|
237 |
-
msgid "Track downloads in Google Analytics (tracking script must be installed on your site)"
|
238 |
-
msgstr "İndirmeleri Google Analytics ile takip et (daha önceden google analytics ayarlarını yapılandırmış olmanız gerekmektedir)"
|
239 |
-
|
240 |
-
#: options.php:259
|
241 |
-
msgid "File Base URL"
|
242 |
-
msgstr "Dosya Tabanlı URL"
|
243 |
-
|
244 |
-
#: options.php:261
|
245 |
-
msgid "Any file not starting with <em>http</em> will be prefixed by this value"
|
246 |
-
msgstr "<em>http</em> ile başlamayan dosyalara önek olarak eklenecektir"
|
247 |
-
|
248 |
-
#: options.php:264
|
249 |
-
msgid "Link Text"
|
250 |
-
msgstr "Bağlantı Metni"
|
251 |
-
|
252 |
-
#: options.php:266
|
253 |
-
msgid "You can further customize text using these dynamic replacements:"
|
254 |
-
msgstr "Bu dinamik metinleri kullanarak özelleştirebilirsiniz:"
|
255 |
-
|
256 |
-
#: options.php:267
|
257 |
-
msgid "filename"
|
258 |
-
msgstr "dosya adı"
|
259 |
-
|
260 |
-
#: options.php:268
|
261 |
-
msgid "file type"
|
262 |
-
msgstr "dosya türü"
|
263 |
-
|
264 |
-
#: options.php:269
|
265 |
-
msgid "file size"
|
266 |
-
msgstr "dosya boyutu"
|
267 |
-
|
268 |
-
#: options.php:272
|
269 |
-
msgid "Link Position"
|
270 |
-
msgstr "Bağlantı Konumu"
|
271 |
-
|
272 |
-
#: options.php:274
|
273 |
-
msgid "Above Viewer"
|
274 |
-
msgstr "Görüntüleyicinin Üstünde"
|
275 |
-
|
276 |
-
#: options.php:275
|
277 |
-
msgid "Below Viewer"
|
278 |
-
msgstr "Görüntüleyicinin Altında"
|
279 |
-
|
280 |
-
#: options.php:280
|
281 |
-
msgid "Link Behavior"
|
282 |
-
msgstr "Bağlantı Davranışı"
|
283 |
-
|
284 |
-
#: options.php:282
|
285 |
-
msgid "Browser Default"
|
286 |
-
msgstr "Tarayıcı Varsayılanı"
|
287 |
-
|
288 |
-
#: options.php:283
|
289 |
-
msgid "Force Download"
|
290 |
-
msgstr "İndirmeye Zorla"
|
291 |
-
|
292 |
-
#: options.php:284
|
293 |
-
msgid "Force Download (Mask URL)"
|
294 |
-
msgstr "İndirmeye Zorla (Gizli URL)"
|
295 |
-
|
296 |
-
#: options.php:298
|
297 |
-
msgid "Advanced Options"
|
298 |
-
msgstr "Gelişmiş Seçenekler"
|
299 |
-
|
300 |
-
#: options.php:300
|
301 |
-
msgid "Plugin Behavior"
|
302 |
-
msgstr "Eklenti Davranışları"
|
303 |
-
|
304 |
-
#: options.php:301
|
305 |
-
msgid "Editor Behavior"
|
306 |
-
msgstr "Editör Davranışları"
|
307 |
-
|
308 |
-
#: options.php:305
|
309 |
-
msgid "Display error messages inline (not hidden)"
|
310 |
-
msgstr "Hata mesajlarını açık olarak göster (gizlemeden)"
|
311 |
-
|
312 |
-
#: options.php:306
|
313 |
-
msgid "Disable internal error checking"
|
314 |
-
msgstr "İç hata denetimini devre dışı bırak"
|
315 |
-
|
316 |
-
#: options.php:307
|
317 |
-
msgid "Disable document caching"
|
318 |
-
msgstr "Dökümanları önbelleklemeyi devre dışı bırak"
|
319 |
-
|
320 |
-
#: options.php:308
|
321 |
-
msgid "Disable beta version notifications"
|
322 |
-
msgstr "Beta bildirimlerini devre dışı bırak"
|
323 |
-
|
324 |
-
#: options.php:311
|
325 |
-
msgid "Disable all editor integration"
|
326 |
-
msgstr "Tüm editör entegrasyonlarını devre dışı bırak"
|
327 |
-
|
328 |
-
#: options.php:316
|
329 |
-
msgid "Insert shortcode from Media Library"
|
330 |
-
msgstr "Medya Kütüphanesinden kısakod ekle"
|
331 |
-
|
332 |
-
#: options.php:318
|
333 |
-
msgid "Allow uploads of all supported media types"
|
334 |
-
msgstr "Tüm desteklenen dosya türünde yüklemelere izin ver"
|
335 |
-
|
336 |
-
#: options.php:328
|
337 |
-
msgid "Save Options"
|
338 |
-
msgstr "Seçenekleri Kaydet"
|
339 |
-
|
340 |
-
#: options.php:330
|
341 |
-
msgid "Reset to Defaults"
|
342 |
-
msgstr "Varsayılan Ayarlara Geri Dön"
|
343 |
-
|
344 |
-
#: options.php:330
|
345 |
-
msgid "Are you sure you want to reset all settings to defaults?"
|
346 |
-
msgstr "Seçenekleri sıfırlamak istediğinizden emin misiniz?"
|
347 |
-
|
348 |
-
#: proxy.php:29
|
349 |
-
msgid ""
|
350 |
-
"This function is not supported on your web server. Please add\n"
|
351 |
-
"\t\t\t<code>allow_url_fopen = 1</code> to your php.ini or enable cURL library.\n"
|
352 |
-
"\t\t\tIf you are unable to do this, please switch to Google Standard Viewer in GDE Options."
|
353 |
-
msgstr ""
|
354 |
-
"Bu fonksiyon web sunucunuz tarafından desteklenmiyor. Please add\n"
|
355 |
-
"\t\t\t<code>allow_url_fopen = 1</code> to your php.ini or enable cURL library.\n"
|
356 |
-
"\t\t\tIf you are unable to do this, please switch to Google Standard Viewer in GDE Options."
|
357 |
-
|
358 |
-
#: libs/bootstrap.php:15
|
359 |
-
msgid "Could not find wp-load.php"
|
360 |
-
msgstr "Olamaz! wp-load.php dosyasını bulamadık!"
|
361 |
-
|
362 |
-
#: libs/gde-dialog.php:34
|
363 |
-
msgid "I'll insert the shortcode myself"
|
364 |
-
msgstr "Kısakod'u kendim ekleyeceğim"
|
365 |
-
|
366 |
-
#: libs/gde-dialog.php:36
|
367 |
-
msgid "GDE Shortcode Options"
|
368 |
-
msgstr "GDE Kısakod Seçenekleri"
|
369 |
-
|
370 |
-
#: libs/gde-dialog.php:40
|
371 |
-
msgid "Required"
|
372 |
-
msgstr "Gerekli"
|
373 |
-
|
374 |
-
#: libs/gde-dialog.php:43
|
375 |
-
msgid "URL or Filename"
|
376 |
-
msgstr "URL yada Dosya adı"
|
377 |
-
|
378 |
-
#: libs/gde-dialog.php:43
|
379 |
-
msgid "Full URL or filename to append to File Base URL"
|
380 |
-
msgstr "Tam URL yada dosya temelli url"
|
381 |
-
|
382 |
-
#: libs/gde-dialog.php:45
|
383 |
-
msgid "File Base URL will be prefixed"
|
384 |
-
msgstr "Dosya Tabanlı URL 'e önekleri eklenecektir."
|
385 |
-
|
386 |
-
#: libs/gde-dialog.php:46
|
387 |
-
msgid "Unsupported file type"
|
388 |
-
msgstr "Desteklenmeyen dosya türü"
|
389 |
-
|
390 |
-
#: libs/gde-dialog.php:54
|
391 |
-
msgid "Optional (Override Global Settings)"
|
392 |
-
msgstr "İsteğe Bağlı (genel ayarları geçersiz kılar)"
|
393 |
-
|
394 |
-
#: libs/gde-dialog.php:57
|
395 |
-
#: libs/gde-dialog.php:61
|
396 |
-
msgid "format:"
|
397 |
-
msgstr "format:"
|
398 |
-
|
399 |
-
#: libs/gde-dialog.php:57
|
400 |
-
#: libs/gde-dialog.php:61
|
401 |
-
msgid "or"
|
402 |
-
msgstr "yada"
|
403 |
-
|
404 |
-
#: libs/gde-dialog.php:65
|
405 |
-
msgid "Show Download Link"
|
406 |
-
msgstr "İndirme Bağlantısını Göster"
|
407 |
-
|
408 |
-
#: libs/gde-dialog.php:66
|
409 |
-
msgid "Yes"
|
410 |
-
msgstr "Evet"
|
411 |
-
|
412 |
-
#: libs/gde-dialog.php:66
|
413 |
-
msgid "No"
|
414 |
-
msgstr "Hayır"
|
415 |
-
|
416 |
-
#: libs/gde-dialog.php:71
|
417 |
-
msgid "Show download link only if user is logged in"
|
418 |
-
msgstr "İndirme bağlantısını sadece giriş yapmış kullanıcılara göster"
|
419 |
-
|
420 |
-
#: libs/gde-dialog.php:77
|
421 |
-
msgid "Disable caching (this document is frequently overwritten)"
|
422 |
-
msgstr "Önbelleği devre dışı bırak (sık güncellenen dökümanlar için önerilir)"
|
423 |
-
|
424 |
-
#: libs/gde-dialog.php:84
|
425 |
-
msgid "Disable internal error checking (try if URL is confirmed good but document doesn't display)"
|
426 |
-
msgstr "İç hata denetimini devre dışı bırak ( döküman doğrulanmışsa güzel ama içerik yayınlanmayacaktır )"
|
427 |
-
|
428 |
-
#: libs/gde-dialog.php:94
|
429 |
-
msgid "Shortcode Preview"
|
430 |
-
msgstr "Kısakod Önizleme"
|
431 |
-
|
432 |
-
#: libs/gde-dialog.php:103
|
433 |
-
msgid "Insert"
|
434 |
-
msgstr "Ekle"
|
435 |
-
|
436 |
-
#: libs/gde-dialog.php:107
|
437 |
-
msgid "Cancel"
|
438 |
-
msgstr "İptal"
|
439 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
libs/form-debug.php
ADDED
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Called from gde-functions.php gde_debug()
|
4 |
+
*/
|
5 |
+
|
6 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
7 |
+
exit;
|
8 |
+
}
|
9 |
+
?>
|
10 |
+
<div class="wrap">
|
11 |
+
<h2>Google Doc Embedder <?php _e('Support', 'gde'); ?></h2>
|
12 |
+
|
13 |
+
<p><strong><?php _e('Please review the documentation before submitting a request for support:', 'gde'); ?></strong></p>
|
14 |
+
<ul style="list-style-type:square; padding-left:25px;line-height:1em;">
|
15 |
+
<li><a href="<?php echo $pdata['PluginURI']; ?>">Google Doc Embedder</a></li>
|
16 |
+
<li><a href="<?php echo GDE_WP_URL; ?>faq/"><?php _e('Plugin FAQ', 'gde'); ?></li>
|
17 |
+
<li><a href="<?php echo GDE_FORUM_URL; ?>"><?php _e('Support Forum', 'gde'); ?></a></li>
|
18 |
+
</ul>
|
19 |
+
|
20 |
+
<p><?php _e("If you're still experiencing a problem, please complete the form below.", 'gde'); ?></p>
|
21 |
+
|
22 |
+
<form action="<?php echo GDE_PLUGIN_URL;?>libs/post-debug.php" id="debugForm">
|
23 |
+
|
24 |
+
<table class="form-table" style="border:1px solid #ccc;">
|
25 |
+
<tr valign="top">
|
26 |
+
<th scope="row"><label for="name" id="name_label"><?php _e('Your Name', 'gde'); ?></label></th>
|
27 |
+
<td><input size="50" name="name" id="name" value="" type="text"></td>
|
28 |
+
</tr>
|
29 |
+
<tr valign="top">
|
30 |
+
<th scope="row"><label for="sender" id="sender_label"><?php _e('Your E-mail', 'gde'); ?>*</label></th>
|
31 |
+
<td><input size="50" name="email" id="sender" value="" type="text">
|
32 |
+
<div id="err_email" class="err" style="color:red;font-weight:bold;display:none;">A valid email address is required.</div></td>
|
33 |
+
</td>
|
34 |
+
</tr>
|
35 |
+
<tr valign="top">
|
36 |
+
<th scope="row"><label for="sc" id="sc_label"><?php _e('Shortcode', 'gde'); ?></label></th>
|
37 |
+
<td><input size="50" name="shortcode" id="sc" value="" type="text"><br/>
|
38 |
+
<em><?php _e("If you're having a problem getting a specific document to work, paste the shortcode you're trying to use here.", 'gde'); ?></em></td>
|
39 |
+
</select>
|
40 |
+
</td>
|
41 |
+
</tr>
|
42 |
+
<tr valign="top">
|
43 |
+
<th scope="row"><label for="msg" id="msg_label"><?php _e('Message', 'gde'); ?></label></th>
|
44 |
+
<td><textarea name="message" id="msg" style="width:75%;min-height:50px;"></textarea></td>
|
45 |
+
</td>
|
46 |
+
</tr>
|
47 |
+
<tr valign="top">
|
48 |
+
<th scope="row"><?php _e('Message Options', 'gde'); ?></th>
|
49 |
+
<td>
|
50 |
+
<input type="checkbox" name="senddb" id="senddb" checked="checked"> <label for="senddb" id="senddb_label"><?php _e('Send debug information', 'gde'); ?>
|
51 |
+
(<a href="javascript:void(0);" id="ta_toggle"><?php _e('View'); ?></a>)</label><br/>
|
52 |
+
<input type="checkbox" name="cc" id="cc"> <label for="cc" id="cc_label"><?php _e('Send me a copy', 'gde'); ?></label></td>
|
53 |
+
</td>
|
54 |
+
</tr>
|
55 |
+
<tr>
|
56 |
+
<td colspan="2">
|
57 |
+
<div id="debugblock" style="display:none;">
|
58 |
+
<p><?php _e('Debug Information', 'gde'); ?>:</p>
|
59 |
+
<textarea name="debug" id="debugtxt" style="width:100%;min-height:200px;font-family:monospace;" readonly="readonly">
|
60 |
+
<?php
|
61 |
+
|
62 |
+
echo "--- GDE Debug Information ---\n\n";
|
63 |
+
echo "GDE Version: $gde_ver\n";
|
64 |
+
echo "WordPress Version: $wp_version [".get_locale()."]\n";
|
65 |
+
echo "PHP Version: ".phpversion()."\n";
|
66 |
+
echo "Plugin URL: ".GDE_PLUGIN_URL."\n";
|
67 |
+
echo "Server Env: ".$_SERVER['SERVER_SOFTWARE']."\n";
|
68 |
+
echo "Browser Env: ".$_SERVER['HTTP_USER_AGENT']."\n\n";
|
69 |
+
|
70 |
+
echo "cURL: ";
|
71 |
+
if (function_exists('curl_version')) {
|
72 |
+
$curl = curl_version(); echo $curl['version']."\n";
|
73 |
+
} else { echo "No\n"; }
|
74 |
+
|
75 |
+
echo "allow_url_fopen: ";
|
76 |
+
if (ini_get('allow_url_fopen') !== "1") {
|
77 |
+
echo "No\n";
|
78 |
+
} else { echo "Yes\n"; }
|
79 |
+
|
80 |
+
echo "Rich Editing: ";
|
81 |
+
if (get_user_option('rich_editing')) {
|
82 |
+
echo "Yes\n";
|
83 |
+
} else { echo "No\n"; }
|
84 |
+
|
85 |
+
echo "Viewer: ";
|
86 |
+
if ($gdeoptions['disable_proxy'] == "no") {
|
87 |
+
echo "Enhanced\n\n";
|
88 |
+
} else { echo "Standard\n\n"; }
|
89 |
+
|
90 |
+
echo "Settings Array:\n";
|
91 |
+
print_r($gdeoptions);
|
92 |
+
|
93 |
+
//echo "\n";
|
94 |
+
//echo "MIME Supported:\n";
|
95 |
+
//print_r(get_allowed_mime_types());
|
96 |
+
?>
|
97 |
+
</textarea>
|
98 |
+
<br/><br/>
|
99 |
+
</div>
|
100 |
+
</div>
|
101 |
+
<div id="debugwarn" style="display:none;color:red;font-weight:bold;">
|
102 |
+
<p><?php _e("I'm less likely to be able to help you if you do not include debug information.", 'gde'); ?></p>
|
103 |
+
</div>
|
104 |
+
<input id="debugsend" class="button-primary" type="submit" value="<?php _e('Send Support Request', 'gde'); ?>" name="submit">
|
105 |
+
<span id="formstatus" style="padding-left:20px;display:none;">
|
106 |
+
<img src="<?php echo GDE_PLUGIN_URL;?>img/in-proc.gif" alt="">
|
107 |
+
</span>
|
108 |
+
</td>
|
109 |
+
</tr>
|
110 |
+
</table>
|
111 |
+
</form>
|
112 |
+
|
113 |
+
</div>
|
libs/mobile-check.php
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Mobile detection adapted from:
|
4 |
+
* http://detectmobilebrowsers.com/
|
5 |
+
* This regex ver: 3 July 2012
|
6 |
+
*/
|
7 |
+
|
8 |
+
function gde_is_mobile_browser() {
|
9 |
+
$useragent = $_SERVER['HTTP_USER_AGENT'];
|
10 |
+
|
11 |
+
if (preg_match('/android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|meego.+mobile|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i',$useragent) ||
|
12 |
+
preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i',substr($useragent,0,4))) {
|
13 |
+
return true;
|
14 |
+
} else {
|
15 |
+
return false;
|
16 |
+
}
|
17 |
+
}
|
18 |
+
|
19 |
+
?>
|
options.php
CHANGED
@@ -5,9 +5,11 @@ global $gdeoptions;
|
|
5 |
$himg = plugins_url(plugin_basename(dirname(__FILE__))).'/img/help.png';
|
6 |
|
7 |
// check for debug
|
8 |
-
if ($_GET['debug']) {
|
9 |
$debug = true;
|
10 |
echo gde_debug();
|
|
|
|
|
11 |
}
|
12 |
|
13 |
// get initial tbedit status (prevents FOUC)
|
@@ -124,6 +126,7 @@ if(isset($_REQUEST['defaults'])) {
|
|
124 |
}
|
125 |
|
126 |
if (!$debug) {
|
|
|
127 |
?>
|
128 |
|
129 |
<div class="wrap">
|
@@ -339,7 +342,7 @@ if (!$debug) {
|
|
339 |
|
340 |
function gde_showRadio($value, $id, $option, $title, $event = NULL) {
|
341 |
global $gdeoptions;
|
342 |
-
if ($gdeoptions[$option] == $value) { $chk = ' checked="checked"'; }
|
343 |
?>
|
344 |
<input type="radio" name="<?php echo $option; ?>" value="<?php echo $value; ?>" id="<?php echo $id; ?>"<?php echo $chk; echo $event; ?> />
|
345 |
<label for="<?php echo $id; ?>"><strong><?php echo $title; ?></strong></label>
|
@@ -348,8 +351,8 @@ function gde_showRadio($value, $id, $option, $title, $event = NULL) {
|
|
348 |
|
349 |
function gde_showCheck($option, $title, $link = NULL, $disable = false) {
|
350 |
global $gdeoptions;
|
351 |
-
if ($gdeoptions[$option] == "yes") { $chk = ' checked="checked"'; }
|
352 |
-
if ($disable == "true") { $dis = ' disabled="true"'; }
|
353 |
?>
|
354 |
<input type="checkbox" name="<?php echo $option; ?>" value="1" id="<?php echo $option; ?>"<?php echo $chk; ?><?php echo $dis; ?> />
|
355 |
<label for="<?php echo $option; ?>"><?php echo $title; ?></label>
|
@@ -365,7 +368,7 @@ function gde_showCheckTb($option, $title) {
|
|
365 |
|
366 |
$option = str_replace("gdet_", "", $option);
|
367 |
|
368 |
-
if (strstr($gdet, $option) !== false) { $chk = ' checked="checked"'; }
|
369 |
?>
|
370 |
<input type="checkbox" name="gdet_<?php echo $option; ?>" value="1" id="gdet_<?php echo $option; ?>"<?php echo $chk; ?> />
|
371 |
<label for="gdet_<?php echo $option; ?>"><?php echo $title; ?></label>
|
@@ -374,7 +377,7 @@ function gde_showCheckTb($option, $title) {
|
|
374 |
|
375 |
function gde_showOption($value, $option, $title) {
|
376 |
global $gdeoptions;
|
377 |
-
if ($gdeoptions[$option] == $value) { $chk = ' selected="yes"'; }
|
378 |
?>
|
379 |
<option style="padding-right:5px;" value="<?php echo $value; ?>"<?php echo $chk; ?>><?php echo $title; ?></option>
|
380 |
<?php
|
5 |
$himg = plugins_url(plugin_basename(dirname(__FILE__))).'/img/help.png';
|
6 |
|
7 |
// check for debug
|
8 |
+
if (isset($_GET['debug'])) {
|
9 |
$debug = true;
|
10 |
echo gde_debug();
|
11 |
+
} else {
|
12 |
+
$debug = false;
|
13 |
}
|
14 |
|
15 |
// get initial tbedit status (prevents FOUC)
|
126 |
}
|
127 |
|
128 |
if (!$debug) {
|
129 |
+
$event = ""; // init to avoid WP_DEBUG notices
|
130 |
?>
|
131 |
|
132 |
<div class="wrap">
|
342 |
|
343 |
function gde_showRadio($value, $id, $option, $title, $event = NULL) {
|
344 |
global $gdeoptions;
|
345 |
+
if ($gdeoptions[$option] == $value) { $chk = ' checked="checked"'; } else { $chk = ""; }
|
346 |
?>
|
347 |
<input type="radio" name="<?php echo $option; ?>" value="<?php echo $value; ?>" id="<?php echo $id; ?>"<?php echo $chk; echo $event; ?> />
|
348 |
<label for="<?php echo $id; ?>"><strong><?php echo $title; ?></strong></label>
|
351 |
|
352 |
function gde_showCheck($option, $title, $link = NULL, $disable = false) {
|
353 |
global $gdeoptions;
|
354 |
+
if ($gdeoptions[$option] == "yes") { $chk = ' checked="checked"'; } else { $chk = ""; }
|
355 |
+
if ($disable == "true") { $dis = ' disabled="true"'; } else { $dis = ""; }
|
356 |
?>
|
357 |
<input type="checkbox" name="<?php echo $option; ?>" value="1" id="<?php echo $option; ?>"<?php echo $chk; ?><?php echo $dis; ?> />
|
358 |
<label for="<?php echo $option; ?>"><?php echo $title; ?></label>
|
368 |
|
369 |
$option = str_replace("gdet_", "", $option);
|
370 |
|
371 |
+
if (strstr($gdet, $option) !== false) { $chk = ' checked="checked"'; } else { $chk = ""; }
|
372 |
?>
|
373 |
<input type="checkbox" name="gdet_<?php echo $option; ?>" value="1" id="gdet_<?php echo $option; ?>"<?php echo $chk; ?> />
|
374 |
<label for="gdet_<?php echo $option; ?>"><?php echo $title; ?></label>
|
377 |
|
378 |
function gde_showOption($value, $option, $title) {
|
379 |
global $gdeoptions;
|
380 |
+
if ($gdeoptions[$option] == $value) { $chk = ' selected="yes"'; } else { $chk = ""; }
|
381 |
?>
|
382 |
<option style="padding-right:5px;" value="<?php echo $value; ?>"<?php echo $chk; ?>><?php echo $title; ?></option>
|
383 |
<?php
|
proxy.php
CHANGED
@@ -7,18 +7,22 @@ require_once('libs/bootstrap.php');
|
|
7 |
$gdeoptions = get_option('gde_options');
|
8 |
$tb = $gdeoptions['restrict_tb'];
|
9 |
|
10 |
-
# This proxy code
|
11 |
-
# for some IE users.
|
12 |
-
#
|
|
|
|
|
|
|
|
|
13 |
# proxy workaround remaining enabled.
|
14 |
#
|
15 |
-
# The problem this code
|
16 |
# http://www.google.com/support/forum/p/Google+Docs/thread?tid=22d92671afd5b9b7&hl=en
|
17 |
#
|
18 |
-
#
|
19 |
# http://peterchenadded.herobo.com/gview/
|
20 |
#
|
21 |
-
# Peter's code
|
22 |
# and to reflect changes in the viewer since the code was first released.
|
23 |
|
24 |
// test for allow_url_fopen in php config; try curl for function if disabled
|
@@ -33,10 +37,13 @@ if (ini_get('allow_url_fopen') !== "1") {
|
|
33 |
}
|
34 |
}
|
35 |
|
36 |
-
// check for mobile
|
37 |
-
if (strstr($_SERVER['QUERY_STRING'], 'mobile=true') !== false) {
|
|
|
|
|
|
|
38 |
$mobile = true;
|
39 |
-
} elseif (
|
40 |
$_SERVER['QUERY_STRING'] .= "&mobile=true";
|
41 |
$mobile = true;
|
42 |
}
|
@@ -137,6 +144,12 @@ if (isset($_GET['embedded']) || $_GET['mobile']) {
|
|
137 |
header("Location: https://docs.google.com/viewer?" . $_SERVER['QUERY_STRING']);
|
138 |
}
|
139 |
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
function gde_curl_get_contents($url) {
|
141 |
$ch = curl_init();
|
142 |
$timeout = 5; // set to zero for no timeout
|
@@ -150,4 +163,20 @@ function gde_curl_get_contents($url) {
|
|
150 |
return $file_contents;
|
151 |
}
|
152 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
?>
|
7 |
$gdeoptions = get_option('gde_options');
|
8 |
$tb = $gdeoptions['restrict_tb'];
|
9 |
|
10 |
+
# This proxy code was originally intended as a bypass for a longstanding flaw in Google Docs Viewer
|
11 |
+
# that broke the functionality for some IE users. That use is rarely or not relevant since around the
|
12 |
+
# release of version 1.9.8 of this plugin. However, it's been commandeered to perform other, more
|
13 |
+
# groovy functions.
|
14 |
+
#
|
15 |
+
# If you do not wish to use this code, select Google Standard Viewer rather than
|
16 |
+
# Enhanced Viewer in GDE Settings. Note that viewer customization options depend on this
|
17 |
# proxy workaround remaining enabled.
|
18 |
#
|
19 |
+
# The problem this code originally addressed was discussed at length on Google's Help Forum:
|
20 |
# http://www.google.com/support/forum/p/Google+Docs/thread?tid=22d92671afd5b9b7&hl=en
|
21 |
#
|
22 |
+
# The original proxy code was based on the work of Peter Chen. For more information, see:
|
23 |
# http://peterchenadded.herobo.com/gview/
|
24 |
#
|
25 |
+
# Peter's code was modified to allow for cURL fallback, viewer customization options, mobile versions,
|
26 |
# and to reflect changes in the viewer since the code was first released.
|
27 |
|
28 |
// test for allow_url_fopen in php config; try curl for function if disabled
|
37 |
}
|
38 |
}
|
39 |
|
40 |
+
// check for mobile
|
41 |
+
if (strstr($_SERVER['QUERY_STRING'], 'mobile=true') !== false) { // already set
|
42 |
+
$mobile = true;
|
43 |
+
} elseif (strstr($tb, 'm') !== false) { // specifically requested mobile version
|
44 |
+
$_SERVER['QUERY_STRING'] .= "&mobile=true";
|
45 |
$mobile = true;
|
46 |
+
} elseif (gde_mobile_check()) { // is otherwise a mobile browser, by best guess
|
47 |
$_SERVER['QUERY_STRING'] .= "&mobile=true";
|
48 |
$mobile = true;
|
49 |
}
|
144 |
header("Location: https://docs.google.com/viewer?" . $_SERVER['QUERY_STRING']);
|
145 |
}
|
146 |
|
147 |
+
/**
|
148 |
+
* Fetch remote file source
|
149 |
+
*
|
150 |
+
* @since 1.7.0.0
|
151 |
+
* @return string Contents of remote file
|
152 |
+
*/
|
153 |
function gde_curl_get_contents($url) {
|
154 |
$ch = curl_init();
|
155 |
$timeout = 5; // set to zero for no timeout
|
163 |
return $file_contents;
|
164 |
}
|
165 |
|
166 |
+
/**
|
167 |
+
* Check for mobile browser
|
168 |
+
*
|
169 |
+
* @since 2.5.0.1
|
170 |
+
* @return bool Browser is detected as mobile, or not
|
171 |
+
*/
|
172 |
+
function gde_mobile_check() {
|
173 |
+
include_once("libs/mobile-check.php");
|
174 |
+
|
175 |
+
if (gde_is_mobile_browser()) {
|
176 |
+
return true;
|
177 |
+
} else {
|
178 |
+
return false;
|
179 |
+
}
|
180 |
+
}
|
181 |
+
|
182 |
?>
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Google Doc Embedder ===
|
2 |
Contributors: k3davis
|
3 |
-
Tags: doc, docx, pdf, ppt, pptx, xls, psd, zip, rar, tiff, office, powerpoint, google
|
4 |
Author URI: http://www.davistribe.org/code/
|
5 |
Donate link: http://pledgie.com/campaigns/6048
|
6 |
-
Requires at least:
|
7 |
Tested up to: 3.4
|
8 |
Stable tag: trunk
|
9 |
License: GPLv2 or later
|
@@ -14,18 +14,18 @@ Lets you embed MS Office, PDF, and many other file types in a web page using the
|
|
14 |
|
15 |
Google Doc Embedder lets you embed several types of files into your WordPress pages using the Google Docs Viewer - allowing inline viewing (and optional downloading) of the following file types, with no Flash or PDF browser plug-ins required:
|
16 |
|
17 |
-
* Adobe PDF
|
18 |
* Microsoft Word (DOC/DOCX)
|
19 |
* Microsoft PowerPoint (PPT/PPTX)
|
20 |
* Microsoft Excel (XLS/XLSX)
|
21 |
-
* TIFF Images
|
22 |
* Apple Pages (PAGES)
|
23 |
* Adobe Illustrator (AI)
|
24 |
* Adobe Photoshop (PSD)
|
25 |
* Autodesk AutoCad (DXF)
|
26 |
* Scalable Vector Graphics (SVG)
|
27 |
* PostScript (EPS/PS)
|
28 |
-
* TrueType (TTF)
|
29 |
* XML Paper Specification (XPS)
|
30 |
* Archive Files (ZIP/RAR)
|
31 |
|
@@ -37,7 +37,6 @@ Translations are welcome; see [the FAQ](http://wordpress.org/extend/plugins/goog
|
|
37 |
|
38 |
* English (en\_US), built-in
|
39 |
* Spanish (es\_ES) by [elarequi](http://elarequi.com/propuestastic/ "elarequi"), thanks!
|
40 |
-
* Turkish (tr\_TR) by [LettoBlog](http://profiles.wordpress.org/lettoblog "LettoBlog"), thanks!
|
41 |
|
42 |
== Installation ==
|
43 |
|
@@ -56,18 +55,18 @@ Go to "GDE Settings" (under "Settings" in the admin panel) to change defaults, o
|
|
56 |
= What file types can be embedded? =
|
57 |
This plug-in currently can embed the following:
|
58 |
|
59 |
-
* Adobe PDF
|
60 |
* Microsoft Word (DOC/DOCX)
|
61 |
* Microsoft PowerPoint (PPT/PPTX)
|
62 |
* Microsoft Excel (XLS/XLSX)
|
63 |
-
* TIFF Images
|
64 |
* Apple Pages (PAGES)
|
65 |
* Adobe Illustrator (AI)
|
66 |
* Adobe Photoshop (PSD)
|
67 |
* Autodesk AutoCad (DXF)
|
68 |
* Scalable Vector Graphics (SVG)
|
69 |
* PostScript (EPS/PS)
|
70 |
-
* TrueType (TTF)
|
71 |
* XML Paper Specification (XPS)
|
72 |
* Archive Files (ZIP/RAR)
|
73 |
|
@@ -106,7 +105,7 @@ View the source on the web page where you've embedded the viewer. In order to de
|
|
106 |
This plug-in utilizes the viewer from Google Docs in a standalone fashion. There is no direct integration with Google Docs and even those documents stored there and shared publicly do not embed reliably with their viewer (ironically), so at this time that use is not supported by the plug-in. Please store your original documents somewhere on your web site in their native supported formats.
|
107 |
|
108 |
= How can I translate the plugin? =
|
109 |
-
You can use the [English translation](http://plugins.svn.wordpress.org/google-document-embedder/trunk/
|
110 |
|
111 |
Please email your translation, along with your name and link for credit, to <em>wpp @ tnw . org</em> for inclusion in the plugin.
|
112 |
|
@@ -121,9 +120,16 @@ You can open a topic [on the forum](http://wordpress.org/tags/google-document-em
|
|
121 |
|
122 |
== Changelog ==
|
123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
= 2.4.3 =
|
125 |
* Added: Dark theme shortcode option (EXPERIMENTAL)
|
126 |
-
* Added: Turkish translation (thanks LettoBlog)
|
127 |
* Fixed: Visual editor integration for IIS webhosts (thanks Kristof)
|
128 |
* Changed: Debug information is now a support page from plugin list
|
129 |
|
@@ -141,7 +147,7 @@ You can open a topic [on the forum](http://wordpress.org/tags/google-document-em
|
|
141 |
* Added: Localization support (translations welcome)
|
142 |
* Added: Ability to use mobile theme with Enhanced Viewer
|
143 |
* Fixed: Toolbar customization on mobile with Enhanced Viewer
|
144 |
-
* Fixed: Editor integration
|
145 |
* Fixed: URL changes for plugin, help links, beta checking
|
146 |
* Fixed: "Moved Temporarily" error in Enhanced Viewer (thanks webmonkeywatts)
|
147 |
|
@@ -181,5 +187,5 @@ You can open a topic [on the forum](http://wordpress.org/tags/google-document-em
|
|
181 |
|
182 |
== Upgrade Notice ==
|
183 |
|
184 |
-
= 2.4.
|
185 |
-
|
1 |
=== Google Doc Embedder ===
|
2 |
Contributors: k3davis
|
3 |
+
Tags: doc, docx, pdf, ppt, pptx, xls, psd, zip, rar, tiff, ttf, office, powerpoint, google
|
4 |
Author URI: http://www.davistribe.org/code/
|
5 |
Donate link: http://pledgie.com/campaigns/6048
|
6 |
+
Requires at least: 3.0
|
7 |
Tested up to: 3.4
|
8 |
Stable tag: trunk
|
9 |
License: GPLv2 or later
|
14 |
|
15 |
Google Doc Embedder lets you embed several types of files into your WordPress pages using the Google Docs Viewer - allowing inline viewing (and optional downloading) of the following file types, with no Flash or PDF browser plug-ins required:
|
16 |
|
17 |
+
* Adobe Acrobat (PDF)
|
18 |
* Microsoft Word (DOC/DOCX)
|
19 |
* Microsoft PowerPoint (PPT/PPTX)
|
20 |
* Microsoft Excel (XLS/XLSX)
|
21 |
+
* TIFF Images (TIF, TIFF)
|
22 |
* Apple Pages (PAGES)
|
23 |
* Adobe Illustrator (AI)
|
24 |
* Adobe Photoshop (PSD)
|
25 |
* Autodesk AutoCad (DXF)
|
26 |
* Scalable Vector Graphics (SVG)
|
27 |
* PostScript (EPS/PS)
|
28 |
+
* OpenType/TrueType Fonts (OTF, TTF)
|
29 |
* XML Paper Specification (XPS)
|
30 |
* Archive Files (ZIP/RAR)
|
31 |
|
37 |
|
38 |
* English (en\_US), built-in
|
39 |
* Spanish (es\_ES) by [elarequi](http://elarequi.com/propuestastic/ "elarequi"), thanks!
|
|
|
40 |
|
41 |
== Installation ==
|
42 |
|
55 |
= What file types can be embedded? =
|
56 |
This plug-in currently can embed the following:
|
57 |
|
58 |
+
* Adobe Acrobat (PDF)
|
59 |
* Microsoft Word (DOC/DOCX)
|
60 |
* Microsoft PowerPoint (PPT/PPTX)
|
61 |
* Microsoft Excel (XLS/XLSX)
|
62 |
+
* TIFF Images (TIF, TIFF)
|
63 |
* Apple Pages (PAGES)
|
64 |
* Adobe Illustrator (AI)
|
65 |
* Adobe Photoshop (PSD)
|
66 |
* Autodesk AutoCad (DXF)
|
67 |
* Scalable Vector Graphics (SVG)
|
68 |
* PostScript (EPS/PS)
|
69 |
+
* OpenType/TrueType Fonts (OTF, TTF)
|
70 |
* XML Paper Specification (XPS)
|
71 |
* Archive Files (ZIP/RAR)
|
72 |
|
105 |
This plug-in utilizes the viewer from Google Docs in a standalone fashion. There is no direct integration with Google Docs and even those documents stored there and shared publicly do not embed reliably with their viewer (ironically), so at this time that use is not supported by the plug-in. Please store your original documents somewhere on your web site in their native supported formats.
|
106 |
|
107 |
= How can I translate the plugin? =
|
108 |
+
You can use the [English translation](http://plugins.svn.wordpress.org/google-document-embedder/trunk/languages/gde-en_US.po "English") as a start. After saving the file, you can translate it by using a text editor or [Poedit](http://www.poedit.net/ "Poedit"). Or, you may install and use the [Codestyling Localization](http://wordpress.org/extend/plugins/codestyling-localization/ "Codestyling Localization") plugin.
|
109 |
|
110 |
Please email your translation, along with your name and link for credit, to <em>wpp @ tnw . org</em> for inclusion in the plugin.
|
111 |
|
120 |
|
121 |
== Changelog ==
|
122 |
|
123 |
+
= 2.4.4 =
|
124 |
+
* Added: PPS and OTF support
|
125 |
+
* Fixed: Broken support of international filenames in IE (thanks beredim)
|
126 |
+
* Fixed: More robust file size checking with nonstandard filenames
|
127 |
+
* Fixed: Global disable cache option not always honored
|
128 |
+
* Fixed: (E) Mobile theme not loaded if not globally requested
|
129 |
+
* Changed: Now requires WordPress 3.0+ (mainly for support reasons)
|
130 |
+
|
131 |
= 2.4.3 =
|
132 |
* Added: Dark theme shortcode option (EXPERIMENTAL)
|
|
|
133 |
* Fixed: Visual editor integration for IIS webhosts (thanks Kristof)
|
134 |
* Changed: Debug information is now a support page from plugin list
|
135 |
|
147 |
* Added: Localization support (translations welcome)
|
148 |
* Added: Ability to use mobile theme with Enhanced Viewer
|
149 |
* Fixed: Toolbar customization on mobile with Enhanced Viewer
|
150 |
+
* Fixed: Editor integration no longer loads its own TinyMCE/jquery libs
|
151 |
* Fixed: URL changes for plugin, help links, beta checking
|
152 |
* Fixed: "Moved Temporarily" error in Enhanced Viewer (thanks webmonkeywatts)
|
153 |
|
187 |
|
188 |
== Upgrade Notice ==
|
189 |
|
190 |
+
= 2.4.4 =
|
191 |
+
Bug fix release
|