{"id":32110,"date":"2014-10-07T20:22:06","date_gmt":"2014-10-07T20:22:06","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-open-files-in-new-window\/"},"modified":"2014-10-07T21:04:17","modified_gmt":"2014-10-07T21:04:17","slug":"wp-open-files-in-new-window","status":"publish","type":"plugin","link":"https:\/\/en-ca.wordpress.org\/plugins\/wp-open-files-in-new-window\/","author":107036,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.1","stable_tag":"trunk","tested":"4.0.38","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"Open Files In New Window or Tab","header_author":"Andy Brudtkuhl","header_description":"","assets_banners_color":"f7f7f7","last_updated":"2014-10-07 21:04:17","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/youmetandy.com","header_plugin_uri":"http:\/\/github.com\/abrudtkuhl","header_author_uri":"http:\/\/youmetandy.com","rating":1,"author_block_rating":0,"active_installs":80,"downloads":2266,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":"1","2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":"1003480","resolution":"1544x500","location":"assets"},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"1003478","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[88,175],"plugin_category":[],"plugin_contributors":[82534],"plugin_business_model":[],"class_list":["post-32110","plugin","type-plugin","status-publish","hentry","plugin_tags-files","plugin_tags-links","plugin_contributors-abrudtkuhl","plugin_committers-abrudtkuhl"],"banners":{"banner":"https:\/\/ps.w.org\/wp-open-files-in-new-window\/assets\/banner-772x250.jpg?rev=1003478","banner_2x":"https:\/\/ps.w.org\/wp-open-files-in-new-window\/assets\/banner-1544x500.jpg?rev=1003480","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-open-files-in-new-window_f7f7f7.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin enqueues a simple jQuery script that looks for any anchor tag that has an href property to something with a file extension of 1-5 characters and makes it open in a new window or tab.<\/p>\n\n<p><a href=\"https:\/\/gist.github.com\/abrudtkuhl\/94a6f58d1f76439fa6fb\">see script here<\/a><\/p>\n\n<p>This means any link to a .pdf, .txt, .ppt, .doc, .xls, .xlst, etc will automatically have the property 'target=\"_blank\"' added to it so it opens in a new window or browser tab.<\/p>\n\n<!--section=installation-->\n<p>Upload the plugin files or install from the WordPress.org plugin repository.<\/p>\n\n<p>e.g.<\/p>\n\n<ol>\n<li>Upload <code>wp-open-files-new-window.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>What kind of links will this alter?<\/dt>\n<dd><p>Any link that goes to a file<\/p><\/dd>\n<dt>What does it do<\/dt>\n<dd><p>Ex: This plugin would transform <code>&lt;a href=\"link-to-pdf.pdf\"&gt;Open PDF&lt;\/a&gt;<\/code> to <code>&lt;a href=\"link-to-pdf.pdf\" target=\"_blank\"&gt;Open PDF&lt;\/a&gt;<\/code><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>First version released<\/li>\n<\/ul>","raw_excerpt":"Makes any link to a file open in a new tab by adding &#039;target=&quot;_blank&quot;&#039; to the link.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/32110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=32110"}],"author":[{"embeddable":true,"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/abrudtkuhl"}],"wp:attachment":[{"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=32110"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=32110"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=32110"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=32110"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=32110"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=32110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}