Wikka Mod 002
Type: Feature addition
Credit:
MarkLentczner∞
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;
}
Make this patch:
@@ -57,1 +57,1 @@
- return "<a href=\"$url\">$url</a>".$matches[2];
+ return $wakka->Link($url).$matches[2];