X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fskins%2FBaseTemplate.php;h=85b17f97d256965793eddd629193c2e6ce2600c6;hb=734ca2b4d2a1246fb0ea1e54b861ab423ab5e257;hp=25df0f9399078e8300321d392c629d4948eaeef9;hpb=6b1a173f07f1a04188735f4688ce6335da14c3b7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/skins/BaseTemplate.php b/includes/skins/BaseTemplate.php index 25df0f9399..85b17f97d2 100644 --- a/includes/skins/BaseTemplate.php +++ b/includes/skins/BaseTemplate.php @@ -358,21 +358,28 @@ abstract class BaseTemplate extends QuickTemplate { if ( isset( $item['href'] ) || isset( $options['link-fallback'] ) ) { $attrs = $item; - foreach ( array( 'single-id', 'text', 'msg', 'tooltiponly', 'context', 'primary' ) as $k ) { + foreach ( array( 'single-id', 'text', 'msg', 'tooltiponly', 'context', 'primary', + 'tooltip-params' ) as $k ) { unset( $attrs[$k] ); } if ( isset( $item['id'] ) && !isset( $item['single-id'] ) ) { $item['single-id'] = $item['id']; } + + $tooltipParams = array(); + if ( isset( $item['tooltip-params'] ) ) { + $tooltipParams = $item['tooltip-params']; + } + if ( isset( $item['single-id'] ) ) { if ( isset( $item['tooltiponly'] ) && $item['tooltiponly'] ) { - $title = Linker::titleAttrib( $item['single-id'] ); + $title = Linker::titleAttrib( $item['single-id'], null, $tooltipParams ); if ( $title !== false ) { $attrs['title'] = $title; } } else { - $tip = Linker::tooltipAndAccesskeyAttribs( $item['single-id'] ); + $tip = Linker::tooltipAndAccesskeyAttribs( $item['single-id'], $tooltipParams ); if ( isset( $tip['title'] ) && $tip['title'] !== false ) { $attrs['title'] = $tip['title']; } @@ -567,7 +574,7 @@ abstract class BaseTemplate extends QuickTemplate { * display the text from footericons instead of the images and don't want a * duplicate copyright statement because footerlinks already rendered one. * @param string $option - * @return string + * @return array */ function getFooterIcons( $option = null ) { // Generate additional footer icons