Skip to content
This repository
Browse code

add classes to interwiki icons

  • Loading branch information...
commit 47b0d67b42d82b1849df38c6f3e9c8040b818c86 1 parent 03805c0
Andreas Gohr authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  renderer.php
3  renderer.php
@@ -79,6 +79,7 @@ function acronym($acronym) {
79 79 /**
80 80 * reformat links if needed
81 81 */
  82 +
82 83 function _formatLink($link){
83 84 // prefix interwiki links with interwiki icon
84 85 if($link['name'][0] != '<' && preg_match('/\binterwiki iw_(.\w+)\b/',$link['class'],$m)){
@@ -90,7 +91,7 @@ function _formatLink($link){
90 91 $img = DOKU_BASE.'lib/images/interwiki.png';
91 92 }
92 93
93   - $link['name'] = '<img src="'.$img.'" width="16" height="16" style="vertical-align: center" />'.$link['name'];
  94 + $link['name'] = '<img src="'.$img.'" width="16" height="16" style="vertical-align: center" class="'.$link['class'].'" />'.$link['name'];
94 95 }
95 96 return parent::_formatLink($link);
96 97 }

0 comments on commit 47b0d67

Please sign in to comment.
Something went wrong with that request. Please try again.