{"id":6258,"date":"2009-07-27T17:17:41","date_gmt":"2009-07-27T17:17:41","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/external-linker\/"},"modified":"2009-08-09T08:43:59","modified_gmt":"2009-08-09T08:43:59","slug":"external-linker","status":"publish","type":"plugin","link":"https:\/\/szl.wordpress.org\/plugins\/external-linker\/","author":3124305,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.2","stable_tag":"trunk","tested":"2.8.3","requires":"","requires_php":"","requires_plugins":"","header_name":"External Linker","header_author":"John J. Camilleri","header_description":"","assets_banners_color":"","last_updated":"2009-08-09 08:43:59","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/johnjcamilleri.com\/?cat=78","header_author_uri":"http:\/\/johnjcamilleri.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2060,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","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":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[12140,1920,537,1918,724],"plugin_category":[],"plugin_contributors":[80873],"plugin_business_model":[],"class_list":["post-6258","plugin","type-plugin","status-publish","hentry","plugin_tags-blank","plugin_tags-external","plugin_tags-link","plugin_tags-target","plugin_tags-validation","plugin_contributors-jstar198","plugin_committers-jstar198"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/external-linker.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>You know how <code>target=\"_blank\"<\/code> is invalid in XHTML strict? Well, this plugin uses a Javascript hack to get around this. The code was originally taken from this thread I came across: http:\/\/www.webmasterworld.com\/forum21\/11165.htm<\/p>\n\n<p>For posts\/pages, the plugin will automatically captures any <code>target=\"_blank\"<\/code>'s inserted by the WP editor and modifies them to keep the page XHTML Strict valid. Then some small Javascript is inserted into each page which re-inserts <code>target=\"_blank\"<\/code> so that the functionality is restored <em>after<\/em> your page has been validated!<\/p>\n\n<p>For non-post\/page content (eg templates\/widgets), simply give your outbound links a class name of <code>external<\/code>, and the rest will be done automatically while keeping your page XHTML valid.<\/p>\n\n<h3>To Do<\/h3>\n\n<p>Future things I plan to add:<\/p>\n\n<ul>\n<li>Integration into WP edit page to allow use of plugin without manually editing HTML.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload\/Copy plugin to your blog.<\/li>\n<li><p>Activate it.<\/p><\/li>\n<li><p>In posts &amp; pages, links containing <code>target=\"_blank\"<\/code> will be handled automatically. (This can be turned off by setting <code>EXTERNAL_LINKER_USE_FILTER<\/code> to <code>false<\/code> in the plugin file.)<\/p><\/li>\n<li>For templates &amp; widgets, instead of using <code>target=\"_blank\"<\/code> simply give your links a class name of <code>external<\/code>. (This name can be changed by editing <code>EXTERNAL_LINKER_CLASS_NAME<\/code> in the plugin file.)<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How does this affect my styles\/CSS?<\/dt>\n<dd><p>Not at all. The external class name is not used for any styling purposes, and you can just combine it with whatever class names you're already using, eg: <code>class=\"external my-other-class\"<\/code><\/p><\/dd>\n<dt>Does this work on admin pages?<\/dt>\n<dd><p>No, it only modifies links on non-admin pages (this is by design).<\/p><\/dd>\n<dt>Can I change the required class name from `external`?<\/dt>\n<dd><p>Yes, simply open <code>external-linker.php<\/code> and change the <code>EXTERNAL_LINKER_CLASS_NAME<\/code> constant.<\/p><\/dd>\n<dt>Can I turn off the automatic post filter?<\/dt>\n<dd><p>Yes, simply open <code>external-linker.php<\/code> and change the <code>EXTERNAL_LINKER_USE_FILTER<\/code> constant to <code>false<\/code>.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.2<\/h4>\n\n<ul>\n<li>Added automatic post filter.<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>Creation of plugin!<\/li>\n<\/ul>","raw_excerpt":"Allows you to get around using target=&quot;_blank&quot; by converting all your outbound links using Javascript.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/6258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=6258"}],"author":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jstar198"}],"wp:attachment":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=6258"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=6258"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=6258"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=6258"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=6258"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=6258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}