>
Download This Plugin | |
Download Elegant Themes | |
Name | Google DocView Link WordPress plugin |
Version | 1.0.1 |
Author | David R. Woolley |
Rating | 0 |
Last updated | 2012-12-19 02:01:00 |
Downloads |
908
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Google DocView Link WordPress plugin plugin added 36 bytes of resources to the Home page and 18 bytes of resources to the sample Post page.
Google DocView Link WordPress plugin plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Google DocView Link WordPress plugin plugin ads no tables to your Wordpress blog database.The Google Document Viewer requires passing the URL of a document to be shown, and said URL must be URL-encoded. Since it is a pain to URL-encode URLs by hand, and since encoded URLs are hard to read, this plugin provides an easy way to generate url-encoded URLS.
Two shortcodes are provided: [gdocview_url] and [gdocview_link].
[gdocview_url] is passed a URL and returns it URL-encoded.
This shortcode requires you to create your own HTML "a"; tag but allows the complete flexibility to do so however you want. The URL argument may be a full URL (starting with http) or a local URL starting with a slash. If a local URL is passed, your WordPress site URL is automatically prepended.
Examples:
`<a href="[gdocview_url url="http://example.com/my-document.pdf"]">Click here to view</a>;`
`<a href="[gdocview_url url="/wp-content/uploads/2012/05/my-document.pdf"]">See the document</a>;`
[gdocview_link] is passed a URL and an optional text label, and returns a full clickable link. As with [gdocview_url] the URL may be a full URL or a local URL starting with a slash. If no label is passed, the default label "View Online" is used.
Example:
`[gdocview_link url="http://example.com/my-document.pdf" label="View with the Google Viewer"]`