Browse files

add classes to interwiki icons

  • Loading branch information...
1 parent 03805c0 commit 47b0d67b42d82b1849df38c6f3e9c8040b818c86 @splitbrain committed Feb 16, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 renderer.php
View
3 renderer.php
@@ -79,6 +79,7 @@ function acronym($acronym) {
/**
* reformat links if needed
*/
+
function _formatLink($link){
// prefix interwiki links with interwiki icon
if($link['name'][0] != '<' && preg_match('/\binterwiki iw_(.\w+)\b/',$link['class'],$m)){
@@ -90,7 +91,7 @@ function _formatLink($link){
$img = DOKU_BASE.'lib/images/interwiki.png';
}
- $link['name'] = '<img src="'.$img.'" width="16" height="16" style="vertical-align: center" />'.$link['name'];
+ $link['name'] = '<img src="'.$img.'" width="16" height="16" style="vertical-align: center" class="'.$link['class'].'" />'.$link['name'];
}
return parent::_formatLink($link);
}

0 comments on commit 47b0d67

Please sign in to comment.