Index: trunk/phase3/skins/common/images/magnify-clip-rtl.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: trunk/phase3/skins/common/images/magnify-clip-rtl.png |
___________________________________________________________________ |
Added: svn:mime-type |
1 | 1 | + image/png |
Index: trunk/phase3/includes/Linker.php |
— | — | @@ -629,7 +629,7 @@ |
630 | 630 | static function makeThumbLink2( Title $title, $file, $frameParams = array(), |
631 | 631 | $handlerParams = array(), $time = false, $query = "" ) |
632 | 632 | { |
633 | | - global $wgStylePath; |
| 633 | + global $wgStylePath, $wgContLang; |
634 | 634 | $exists = $file && $file->exists(); |
635 | 635 | |
636 | 636 | # Shortcuts |
— | — | @@ -707,11 +707,16 @@ |
708 | 708 | if ( isset( $fp['framed'] ) ) { |
709 | 709 | $zoomIcon = ""; |
710 | 710 | } else { |
711 | | - $zoomIcon = '<div class="magnify">' . |
712 | | - '<a href="' . htmlspecialchars( $url ) . '" class="internal" ' . |
713 | | - 'title="' . htmlspecialchars( wfMsg( 'thumbnail-more' ) ) . '">' . |
714 | | - '<img src="' . htmlspecialchars( $wgStylePath ) . '/common/images/magnify-clip.png" ' . |
715 | | - 'width="15" height="11" alt="" /></a></div>'; |
| 711 | + $zoomIcon = Html::rawElement( 'div', array( 'class' => 'magnify' ), |
| 712 | + Html::rawElement( 'a', array( |
| 713 | + 'href' => $url, |
| 714 | + 'class' => 'internal', |
| 715 | + 'title' => wfMsg( 'thumbnail-more' ) ), |
| 716 | + Html::element( 'img', array( |
| 717 | + 'src' => $wgStylePath . '/common/images/magnify-clip' . ( $wgContLang->isRTL() ? '-rtl' : '' ) . '.png', |
| 718 | + 'width' => 15, |
| 719 | + 'height' => 11, |
| 720 | + 'alt' => "" ) ) ) ); |
716 | 721 | } |
717 | 722 | } |
718 | 723 | $s .= ' <div class="thumbcaption">' . $zoomIcon . $fp['caption'] . "</div></div></div>"; |