{"id":18278,"date":"2012-05-24T01:54:30","date_gmt":"2012-05-24T01:54:30","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/google-docview-link\/"},"modified":"2016-08-24T15:55:10","modified_gmt":"2016-08-24T15:55:10","slug":"google-docview-link","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/google-docview-link\/","author":92706,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.2","stable_tag":"trunk","tested":"4.6.30","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Google DocView Link","header_author":"David R. Woolley","header_description":"","assets_banners_color":"","last_updated":"2016-08-24 15:55:10","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/just.thinkofit.com\/google-docview-link\/","header_author_uri":"http:\/\/thinkofit.com\/drwool","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2169,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[32917,175],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-18278","plugin","type-plugin","status-closed","hentry","plugin_tags-google-document-viewer","plugin_tags-links","plugin_committers-drwool"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/google-docview-link.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>The Google Document Viewer requires passing the URL of a document to be shown,\nand said URL must be URL-encoded. Since it is a pain to URL-encode URLs by hand,\nand since encoded URLs are hard to read, this plugin provides an easy way to \ngenerate url-encoded URLS.<\/p>\n\n<p>Two shortcodes are provided: [gdocview_url] and [gdocview_link].<\/p>\n\n<p>[gdocview_url] is passed a URL and returns it URL-encoded.<\/p>\n\n<p>This shortcode requires you to create your own HTML \"a\"; tag but allows the complete flexibility \nto do so however you want. The URL argument may be a full URL (starting with http) or a local URL\nstarting with a slash. If a local URL is passed, your WordPress site URL is automatically prepended.<\/p>\n\n<p>Examples:<\/p>\n\n<pre><code>    &lt;a href='[gdocview_url url=\"http:\/\/example.com\/my-document.pdf\"]'&gt;Click here to view&lt;\/a&gt;;\n    &lt;a href='[gdocview_url url=\"\/wp-content\/uploads\/2016\/04\/my-document.pdf\"]'&gt;See the document&lt;\/a&gt;;\n\nNote that you need to enclose the bracketed shortcode call in single quotes, not double, because if both the\nshortcode call and the URL within it are enclosed in the same type of quotes your browser will be confused.\n<\/code><\/pre>\n\n<p>[gdocview_link] is passed a URL and an optional text label, and returns a full clickable link.\nAs with [gdocview_url] the URL may be a full URL or a local URL starting with a slash. If no label\nis passed, the default label \"View Online\" is used.<\/p>\n\n<p>Example:<\/p>\n\n<pre><code>    [gdocview_link url=\"http:\/\/example.com\/my-document.pdf\" label=\"View with the Google Viewer\"]\n<\/code><\/pre>\n\n<h3>Requirements<\/h3>\n\n<ul>\n<li>PHP 4+<\/li>\n<li>WordPress 3.0+<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Download and unzip the latest release zip file<\/li>\n<li>Upload the entire directory to your <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<ul>\n<li>1.0.0 - 2012-05-22 - Initial release version<\/li>\n<li>1.0.1 - 2012-06-15 - Tweaked documentation<\/li>\n<li>1.0.2 - 2016-04-05 - Tweaked documentation again<\/li>\n<\/ul>","raw_excerpt":"This plugin provides two shortcodes that make it easier to create links to view documents with the Google Document Viewer.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/18278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=18278"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/drwool"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=18278"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=18278"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=18278"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=18278"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=18278"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=18278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}