Changeset 1023572 for google-document-embedder
- Timestamp:
- 11/11/2014 03:12:17 AM (10 years ago)
- Location:
- google-document-embedder
- Files:
-
- 74 added
- 5 edited
- 1 moved
-
tags/2.5.15 (added)
-
tags/2.5.15/css (added)
-
tags/2.5.15/css/admin-styles.css (added)
-
tags/2.5.15/css/admin-styles38.css (added)
-
tags/2.5.15/css/gde-dark.css (added)
-
tags/2.5.15/functions-admin.php (added)
-
tags/2.5.15/functions.php (added)
-
tags/2.5.15/gviewer.php (added)
-
tags/2.5.15/img (added)
-
tags/2.5.15/img/done.gif (added)
-
tags/2.5.15/img/fail.gif (added)
-
tags/2.5.15/img/gde-button.png (added)
-
tags/2.5.15/img/gde-dark-m-sprites.png (added)
-
tags/2.5.15/img/gde-dark-sprites.png (added)
-
tags/2.5.15/img/help.png (added)
-
tags/2.5.15/img/in-proc.gif (added)
-
tags/2.5.15/img/index.php (added)
-
tags/2.5.15/img/sprite-fullscr.png (added)
-
tags/2.5.15/js (added)
-
tags/2.5.15/js/dialog.js (added)
-
tags/2.5.15/js/editor_plugin.js (added)
-
tags/2.5.15/js/gde-jquery.js (added)
-
tags/2.5.15/js/gde-quicktags.js (added)
-
tags/2.5.15/js/index.php (added)
-
tags/2.5.15/js/tb-newwin.php (added)
-
tags/2.5.15/languages (added)
-
tags/2.5.15/languages/gde-cs_CZ.mo (added)
-
tags/2.5.15/languages/gde-cs_CZ.po (added)
-
tags/2.5.15/languages/gde-en_US.mo (added)
-
tags/2.5.15/languages/gde-en_US.po (added)
-
tags/2.5.15/languages/gde-es_ES.mo (added)
-
tags/2.5.15/languages/gde-es_ES.po (added)
-
tags/2.5.15/languages/gde-fr_FR.mo (added)
-
tags/2.5.15/languages/gde-fr_FR.po (added)
-
tags/2.5.15/languages/gde-hu_HU.mo (added)
-
tags/2.5.15/languages/gde-hu_HU.po (added)
-
tags/2.5.15/languages/gde-it_IT.mo (added)
-
tags/2.5.15/languages/gde-it_IT.po (added)
-
tags/2.5.15/languages/gde-nl_NL.mo (added)
-
tags/2.5.15/languages/gde-nl_NL.po (added)
-
tags/2.5.15/languages/gde-ru_RU.mo (added)
-
tags/2.5.15/languages/gde-ru_RU.po (added)
-
tags/2.5.15/languages/gde-tr_TR.mo (added)
-
tags/2.5.15/languages/gde-tr_TR.po (added)
-
tags/2.5.15/languages/gde-uk.mo (added)
-
tags/2.5.15/languages/gde-uk.po (added)
-
tags/2.5.15/languages/gde.pot (added)
-
tags/2.5.15/libs (added)
-
tags/2.5.15/libs/lib-bootstrap.php (added)
-
tags/2.5.15/libs/lib-eddialog.php (added)
-
tags/2.5.15/libs/lib-exts.php (added)
-
tags/2.5.15/libs/lib-formsubmit.php (added)
-
tags/2.5.15/libs/lib-langs.php (added)
-
tags/2.5.15/libs/lib-mobilecheck.php (added)
-
tags/2.5.15/libs/lib-profile.php (added)
-
tags/2.5.15/libs/lib-secure.php (added)
-
tags/2.5.15/libs/lib-service.php (added)
-
tags/2.5.15/libs/lib-setup.php (added)
-
tags/2.5.15/libs/tab-advanced.php (added)
-
tags/2.5.15/libs/tab-general.php (added)
-
tags/2.5.15/libs/tab-profiles.php (added)
-
tags/2.5.15/libs/tab-support.php (added)
-
tags/2.5.15/load.php (added)
-
tags/2.5.15/options.php (added)
-
tags/2.5.15/readme.txt (added)
-
tags/2.5.15/screenshot-1.png (added)
-
tags/2.5.15/screenshot-2.png (added)
-
tags/2.5.15/screenshot-3.png (added)
-
tags/2.5.15/screenshot-4.png (added)
-
tags/2.5.15/screenshot-5.png (added)
-
tags/2.5.15/uninstall.php (added)
-
tags/2.5.15/~view.php (added)
-
trunk/gviewer.php (modified) (4 diffs)
-
trunk/js/gde-jquery.js (modified) (3 diffs)
-
trunk/languages/gde-it_IT.mo (added)
-
trunk/languages/gde-it_IT.po (added)
-
trunk/libs/lib-eddialog.php (modified) (1 diff)
-
trunk/libs/lib-profile.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (5 diffs)
-
trunk/~view.php (moved) (moved from google-document-embedder/trunk/view.php) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
google-document-embedder/trunk/gviewer.php
r939380 r1023572 9 9 Text Domain: gde 10 10 Domain Path: /languages/ 11 Version: 2.5.1 411 Version: 2.5.15 12 12 License: GPLv2 13 13 */ … … 33 33 * @package google-document-embedder 34 34 * @author Kevin Davis <wpp@tnw.org> 35 * @copyright Copyright 201 3Kevin Davis35 * @copyright Copyright 2014 Kevin Davis 36 36 * @license http://www.gnu.org/licenses/gpl.txt GPL 2.0 37 37 * @link http://www.davistribe.org/gde/ … … 39 39 40 40 // boring init junk 41 $gde_ver = "2. 5.14.98";41 $gde_ver = "2.6.0.01"; 42 42 $gde_db_ver = "1.2"; // update also in gde_activate() 43 43 … … 239 239 240 240 // which viewer? 241 if ( $profile['viewer'] == "enhanced" ) {242 $lnk = GDE_PLUGIN_URL . "view.php?url=" . urlencode( $links[0] ) . "&hl=" . $lang . "&gpid=" . $pid;241 //if ( $profile['viewer'] == "enhanced" ) { 242 // $lnk = GDE_PLUGIN_URL . "view.php?url=" . urlencode( $links[0] ) . "&hl=" . $lang . "&gpid=" . $pid; 243 243 // make protocol-agnostic 244 $lnk = preg_replace( '/^https?:/i', '', $lnk );245 } else {244 // $lnk = preg_replace( '/^https?:/i', '', $lnk ); 245 //} else { 246 246 $lnk = "//docs.google.com/viewer?url=" . urlencode( $links[0] ) . "&hl=" . $lang; 247 }247 //} 248 248 249 249 // what mode? 250 if ( $profile['tb_mobile'] == "always" ) {251 $lnk .= "&mobile=true";252 } else {250 //if ( $profile['tb_mobile'] == "always" ) { 251 // $lnk .= "&mobile=true"; 252 //} else { 253 253 $lnk .= "&embedded=true"; 254 }254 //} 255 255 256 256 // build viewer -
google-document-embedder/trunk/js/gde-jquery.js
r889795 r1023572 101 101 allowSecure(); 102 102 }); 103 $('#block').click(function() { 104 if (($('#block').is(':checked')) && ($('#gdet_h').is(':checked'))) { 105 $('#gdet_n').attr('checked', false); 106 } 107 }); 103 108 104 109 $('#vw_bgcolor').attr('data-default-color', '#EBEBEB'); … … 153 158 var isSecurable = false; 154 159 if ($('#link_show').val() == "none") { 155 if ($('#gdet_n').is(':checked') && $('#tb_fullscr').val() !== "default") { 160 if ($('#gdet_h').is(':checked')) { 161 isSecurable = true; 162 } else if (! $('#gdet_h').is(':checked') && $('#tb_fullscr').val() !== "default") { 156 163 isSecurable = true; 157 164 } else if (! $('#gdet_n').is(':checked')) { … … 163 170 } else { 164 171 $('#linkblock').hide(); 172 $('#block').attr('checked', false); 165 173 } 166 174 } -
google-document-embedder/trunk/libs/lib-eddialog.php
r787790 r1023572 1 1 <?php 2 3 // make it work with localization (ie cyrillic languages) 4 header('Content-type: text/html; charset=UTF-8'); 2 5 3 6 // access wp functions externally -
google-document-embedder/trunk/libs/lib-profile.php
r889795 r1023572 53 53 <?php 54 54 gde_profile_option( $p['viewer'], 'standard', __('Standard Viewer', 'gde'), __('Embed the basic viewer only', 'gde') ); 55 gde_profile_option( $p['viewer'], 'enhanced', __('Enhanced Viewer', 'gde'), __('Enable extended viewer options', 'gde') );55 //gde_profile_option( $p['viewer'], 'enhanced', __('Enhanced Viewer', 'gde'), __('Enable extended viewer options', 'gde') ); 56 56 ?> 57 57 </select><br/> … … 61 61 </tbody> 62 62 </table> 63 63 <!-- 64 64 <fieldset class="gde-inner<?php echo $hideenh; ?>" id="gde-enh-fs"> 65 65 <legend><?php _e('Enhanced Viewer Settings', 'gde'); ?></legend> … … 159 159 </table> 160 160 </fieldset> 161 161 --> 162 162 <table class="form-table"> 163 163 <tbody> -
google-document-embedder/trunk/readme.txt
r939380 r1023572 5 5 Donate link: http://www.davistribe.org/gde/donate/ 6 6 Requires at least: 3.5 7 Tested up to: 3.97 Tested up to: 4.0 8 8 Stable tag: trunk 9 9 License: GPLv2 or later … … 12 12 13 13 == Description == 14 15 **NOTE: A recent unannounced Google Viewer update removed much of the functionality of this plugin. Pending a rewrite of the Enhanced Viewer functionality or 16 finding another maintainer, this plugin only works in "Standard Viewer" mode for the time being and does not support the full feature set documented. I regret 17 this inconvenience.** 14 18 15 19 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: … … 47 51 * French (fr\_FR) by [Erwan](http://profiles.wordpress.org/erwanlescop "Erwan"), thanks! 48 52 * Hungarian (hu\_HU) by [szemcse](http://profiles.wordpress.org/szemcse "szemcse"), thanks! 53 * Italian (it\_IT) by [Marco](https://plus.google.com/+MarcoMardegan "Marco"), thanks! 49 54 * Russian (ru\_RU) by Józek, thanks! 50 55 * Spanish (es\_ES) by [elarequi](http://elarequi.com/propuestastic/ "elarequi"), thanks! … … 136 141 137 142 (E) Enhanced Viewer 143 144 = 2.5.15 = 145 * Removed: Enhanced Viewer and moble option, pending rewrite after Google breakage 146 * Added: Italian translation (thanks Marco) 147 * Fixed: Potential block download and hidden toolbar conflict (thanks Tom) 148 * Fixed: Garbled Cyrillic text in editor dialog (thanks bones852) 138 149 139 150 = 2.5.14 = … … 218 229 * Fixed: Erroneous error message when file validation is blocked 219 230 220 = 2.5 =221 * Added: "Profiles" allow each viewer instance to have its own settings222 * Added: (E) Private document support (block downloads of source file)223 * Added: (E) Customize viewer color scheme224 * Added: (E) Full toolbar customization, including removal225 * Added: Backup/Import of settings and viewer profiles226 * Added: page= shortcode attribute to start viewer on designated page227 * Added: Beta delivery API for automatic updates of pre-release versions228 * Added: Media Library and editor integration improvements229 * Added: Support for dynamic protocol document links (thanks Clifford)230 * Added: French translation (thanks Erwan)231 * Added: Ukrainian translation (thanks Józek)232 * Fixed: Uses WordPress HTTP API instead of cURL etc. throughout233 * Fixed: (E) Hidden toolbar buttons still narrowly clickable (thanks rohan)234 * Fixed: Editor dialog and default base URL with non-standard include235 * Fixed: File validation fails if content-length missing (thanks paulod)236 * Fixed: Invalid HTML in support form237 * Changed: Completely rewritten core and administrative interface238 * Changed: (E) Improved default viewer toolbar style239 * Changed: Now requires WordPress 3.2+ (due to necessary PHP5 functions)240 * Changed: Errors now show inline instead of as HTML comments by default241 * Removed: force= shortcode attribute (redundant and confusing)242 243 231 [Full history...](http://www.davistribe.org/gde/changelog/ "Full history") 244 232 -
google-document-embedder/trunk/~view.php
r889795 r1023572 50 50 // get profile 51 51 if ( isset( $_GET['gpid'] ) ) { 52 if ( $profile = gde_get_profile( $_GET['gpid'] ) ) { 52 $gpid = mysql_real_escape_string( $_GET['gpid'] ); 53 if ( $profile = gde_get_profile( $gpid ) ) { 53 54 $tb = $profile['tb_flags']; 54 55 $vw = $profile['vw_flags'];
Note: See TracChangeset
for help on using the changeset viewer.