Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add classes to interwiki icons

  • Loading branch information...
commit 47b0d67b42d82b1849df38c6f3e9c8040b818c86 1 parent 03805c0
Andreas Gohr authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  renderer.php
3  renderer.php
View
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.