Wiki source for Mod002fExternalLinkTail


Show raw source

==== Wikka Mod 002 ====
Type: Feature addition
----
===Credit:===
** [[http://web.archive.org/web/20040810214904/http://www.wakkawiki.com/MarkLentczner | MarkLentczner]]**
[[http://web.archive.org/web/20040518050852/http://www.wakkawiki.com/LinkFormattingFix | LinkFormattingFix @ WakkaWiki]]
ArchiveLinkFormattingFix
----

This adds two features:
- external links have their own CSS class, so you can style them differently
- external links are followed by a little mark (a small superscripted infinity sign) so you can easily tell which links go off-site.

==wakka.php==
- "Function Link()" modified to include a symbol at the tail of external links.
- $wakkaDefaultConfig array modified to include "external_link_tail" so that the symbol can be changed by editing wakka.config.php.

==css/wakka.css==
Add these CSS classes, editing to suit your taste:
%%a.ext {
color: #933;
}

.exttail {
color: #999;
position: relative;
bottom: 0.5ex;
}
%%

== formatters/wakka.php ==
Make this patch:
%%@@ -57,1 +57,1 @@
- return "<a href=\"$url\">$url</a>".$matches[2];
+ return $wakka->Link($url).$matches[2];
%%
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki