开发者 | jstar198 |
---|---|
更新时间 | 2009年8月9日 16:43 |
PHP版本: | ? 及以上 |
WordPress版本: | 2.8.3 |
target="_blank"
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
For posts/pages, the plugin will automatically captures any target="_blank"
'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 target="_blank"
so that the functionality is restored after your page has been validated!
For non-post/page content (eg templates/widgets), simply give your outbound links a class name of external
, and the rest will be done automatically while keeping your page XHTML valid.
target="_blank"
will be handled automatically. (This can be turned off by setting EXTERNAL_LINKER_USE_FILTER
to false
in the plugin file.)target="_blank"
simply give your links a class name of external
. (This name can be changed by editing EXTERNAL_LINKER_CLASS_NAME
in the plugin file.)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: class="external my-other-class"
No, it only modifies links on non-admin pages (this is by design).
external
?Yes, simply open external-linker.php
and change the EXTERNAL_LINKER_CLASS_NAME
constant.
Yes, simply open external-linker.php
and change the EXTERNAL_LINKER_USE_FILTER
constant to false
.