{"id":21278,"date":"2012-12-20T08:01:50","date_gmt":"2012-12-20T08:01:50","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/simple-google-docs-viewer\/"},"modified":"2017-03-22T17:20:10","modified_gmt":"2017-03-22T17:20:10","slug":"simple-google-docs-viewer","status":"publish","type":"plugin","link":"https:\/\/pap-aw.wordpress.org\/plugins\/simple-google-docs-viewer\/","author":1888958,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2","stable_tag":"trunk","tested":"4.7.33","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Simple Google Docs Viewer","header_author":"illuminea","header_description":"","assets_banners_color":"ffffff","last_updated":"2017-03-22 17:20:10","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.illuminea.com\/","header_author_uri":"http:\/\/www.illuminea.com","rating":3.1,"author_block_rating":0,"active_installs":300,"downloads":20801,"num_ratings":8,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":"2","2":"2","3":0,"4":"1","5":"3"},"assets_icons":[],"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"1582610","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1"],"block_files":[],"assets_screenshots":{"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"1619590","resolution":"2","location":"plugin"},"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"1619590","resolution":"1","location":"plugin"}},"screenshots":{"1":"How an embedded document looks in the front-end.","2":"A sample use of the \"gviewer\" shortcode."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[9054,26899,17784,26896],"plugin_category":[],"plugin_contributors":[81525,78559],"plugin_business_model":[],"class_list":["post-21278","plugin","type-plugin","status-publish","hentry","plugin_tags-documents","plugin_tags-embed-pdf","plugin_tags-google-docs","plugin_tags-pdf-viewer","plugin_contributors-illuminea","plugin_contributors-maor","plugin_committers-illuminea","plugin_committers-maor"],"banners":{"banner":"https:\/\/ps.w.org\/simple-google-docs-viewer\/assets\/banner-772x250.jpg?rev=1582610","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/simple-google-docs-viewer_ffffff.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/simple-google-docs-viewer\/trunk\/screenshot-1.jpg?rev=1619590","caption":"How an embedded document looks in the front-end."},{"src":"https:\/\/ps.w.org\/simple-google-docs-viewer\/trunk\/screenshot-2.jpg?rev=1619590","caption":"A sample use of the \"gviewer\" shortcode."}],"raw_content":"<!--section=description-->\n<p>Easily embed documents supported by Google Docs (PDF\/DOC\/DOCX\/PPTX\/etc)with a simple shortcode <code>[gviewer]<\/code><\/p>\n\n<p>Ex. [gviewer file=\u201dhttps:\/\/example.com\/thisismyfile.pdf\u201d]<\/p>\n\n<p>A full list of attributes:<\/p>\n\n<ul>\n<li><code>file<\/code> -- <strong>Required<\/strong>. The URL of the file you wish to show<\/li>\n<li><code>width<\/code> -- Optional. The desired width of the viewer in pixels. If no width is set, the value of the theme's <code>$content_width<\/code> will be used. If no value is set, the width will default to 600 px.<\/li>\n<li><code>height<\/code> -- Optional. The desired height of the viewer in pixels. If height is set, the height will 1.2 times the width. For example, if the width is 100 px, the height will be 120 px.<\/li>\n<li><code>language<\/code> -- The language of the document. If the document is written in a right-to-left (RTL) language (like Hebrew and Arabic), specifying the language will apply RTL settings.<\/li>\n<\/ul>\n\n<p>Another way to embed a Google Document is by using the template tag provided by the plugin in the source code. Here's an example:<\/p>\n\n<pre><code>&lt;?php\n\necho simple_gviewer_embed( 'https:\/\/...\/file.pdf', $args );\n<\/code><\/pre>\n\n<p>The second argument, <code>$args<\/code>, is an associative array. Keys can be found in the list above.<\/p>\n\n<h4>Short Demonstration<\/h4>\n\n<p>[youtube http:\/\/www.youtube.com\/watch?v=aU1Ekd2D-kI]<\/p>\n\n<!--section=installation-->\n<p>Add via the plugin installer, or download the ZIP file and upload from the \"Upload\" tab.<\/p>\n\n<!--section=changelog-->\n<h4>1.2<\/h4>\n\n<ul>\n<li>Fix width shortcode attribute <\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Added support for https<\/li>\n<li>iframes are now responsive out of the box<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Easily embed documents like PDFs, Word documents, and Powerpoint in your site using Google Docs Viewer.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/21278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=21278"}],"author":[{"embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/maor"}],"wp:attachment":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=21278"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=21278"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=21278"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=21278"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=21278"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=21278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}